init
This commit is contained in:
13
public/templates/404.php
Normal file
13
public/templates/404.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
/**
|
||||
* @var string $uri
|
||||
*/
|
||||
?>
|
||||
|
||||
<h1>Not Found</h1>
|
||||
|
||||
<p>
|
||||
Sorry, Nothing could be found at the requested
|
||||
<?php echo $uri; ?>
|
||||
path;
|
||||
</p>
|
||||
18
public/templates/categories.php
Normal file
18
public/templates/categories.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
/**
|
||||
* @var Category[] $categories
|
||||
*/
|
||||
?>
|
||||
|
||||
<div class="gallery-grid">
|
||||
|
||||
<?php foreach ($categories as $category): ?>
|
||||
|
||||
<a href="./<?php echo $category->name; ?>" class="gallery-item">
|
||||
<img src="<?php echo $category->thumb ?>" alt="<?php echo $category->name; ?>" loading="lazy">
|
||||
<h3><?php echo $category->name; ?></h3>
|
||||
</a>
|
||||
|
||||
<?php endforeach; ?>
|
||||
|
||||
</div>
|
||||
28
public/templates/category.php
Normal file
28
public/templates/category.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/**
|
||||
* @var string $category
|
||||
* @var Image[] $images
|
||||
*/
|
||||
?>
|
||||
|
||||
<header>
|
||||
<a href="./">Back</a>
|
||||
<span>|</span>
|
||||
<h1>Category: <?php echo $category; ?></h1>
|
||||
</header>
|
||||
|
||||
<div class="gallery-grid">
|
||||
|
||||
<?php foreach ($images as $image): ?>
|
||||
|
||||
<a href="<?php echo $image->uri; ?>" target="_blank" class="gallery-item">
|
||||
<img src="<?php echo $image->thumb; ?>" alt="<?php echo $image->name; ?>" loading="lazy">
|
||||
<h3>
|
||||
<?php echo $image->name; ?>
|
||||
<small>[<?php echo $image->width; ?>x<?php echo $image->height; ?>]</small>
|
||||
</h3>
|
||||
</a>
|
||||
|
||||
<?php endforeach; ?>
|
||||
|
||||
</div>
|
||||
18
public/templates/shared/footer.php
Normal file
18
public/templates/shared/footer.php
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
<footer>
|
||||
<p>
|
||||
By <a href="<?php echo $config['author_link']; ?>" target="_blank" rel="noreferrer noopener"><?php echo $config['author_text']; ?></a>
|
||||
</p>
|
||||
<p>|</p>
|
||||
<p>
|
||||
Images are licensed as
|
||||
<a href="<?php echo $config['license_link']; ?>" target="_blank" rel="noreferrer noopener"><?php echo $config['license_text']; ?></a>
|
||||
</p>
|
||||
<p>|</p>
|
||||
<p>
|
||||
<a href="https://github.com/ssddanbrown/gallery" target="_blank" rel="noreferrer noopener">Gallery Source Code</a>
|
||||
</p>
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
12
public/templates/shared/header.php
Normal file
12
public/templates/shared/header.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<base href="<?php echo $config['base_url']; ?>">
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
|
||||
<title><?php echo $config['title']; ?></title>
|
||||
|
||||
<link rel="stylesheet" href="styles.css">
|
||||
</head>
|
||||
<body>
|
||||
Reference in New Issue
Block a user