145 lines
No EOL
5.8 KiB
PHP
145 lines
No EOL
5.8 KiB
PHP
<?php
|
|
|
|
use App\FileAndDir;
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html data-theme="auto" lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title><?= $config['title']; ?></title>
|
|
|
|
<meta name="author" content="<?= $config['author']; ?>">
|
|
<meta name="generator" content="NanoGal">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta name="description" content="<?= $config['description']; ?>">
|
|
|
|
<meta name="msapplication-TileImage" content="/assets/favicons/ms-icon-144x144.png">
|
|
<meta name="msapplication-TileColor" content="#ffffff">
|
|
<meta name="theme-color" content="#ffffff">
|
|
|
|
<link rel="stylesheet" href="https://theme.knah-tsaeb.org/kt-scheme.css">
|
|
<link href="assets/css/glightbox.min.css" rel="stylesheet">
|
|
<link href="templates/default/default.css" rel="stylesheet">
|
|
<link rel="apple-touch-icon" sizes="57x57" href="/assets/favicons/apple-icon-57x57.png">
|
|
<link rel="apple-touch-icon" sizes="60x60" href="/assets/favicons/apple-icon-60x60.png">
|
|
<link rel="apple-touch-icon" sizes="72x72" href="/assets/favicons/apple-icon-72x72.png">
|
|
<link rel="apple-touch-icon" sizes="76x76" href="/assets/favicons/apple-icon-76x76.png">
|
|
<link rel="apple-touch-icon" sizes="114x114" href="/assets/favicons/apple-icon-114x114.png">
|
|
<link rel="apple-touch-icon" sizes="120x120" href="/assets/favicons/apple-icon-120x120.png">
|
|
<link rel="apple-touch-icon" sizes="144x144" href="/assets/favicons/apple-icon-144x144.png">
|
|
<link rel="apple-touch-icon" sizes="152x152" href="/assets/favicons/apple-icon-152x152.png">
|
|
<link rel="apple-touch-icon" sizes="180x180" href="/assets/favicons/apple-icon-180x180.png">
|
|
<link rel="icon" type="image/png" sizes="192x192" href="/assets/favicons/android-icon-192x192.png">
|
|
<link rel="icon" type="image/png" sizes="96x96" href="/assets/favicons/favicon-96x96.png">
|
|
<link rel="manifest" href="/assets/favicons/manifest.json">
|
|
|
|
<link rel="alternate" href="feed.php" type="application/atom+xml" title="Atom 0.3">
|
|
|
|
<?= $userCss; ?>
|
|
</head>
|
|
|
|
<body>
|
|
<header id="top">
|
|
<nav>
|
|
<h1>
|
|
<svg class="logo" viewBox="0 0 135.467 135.467" xmlns="http://www.w3.org/2000/svg">
|
|
<rect width="85.486" height="85.339" x="25.225" y="25.302" ry="6.619" id="logo-background-color" />
|
|
<g transform="translate(-37.267 -74.664)">
|
|
<path d="M105 110.248l32.15 32.15L105 174.546l-32.15-32.15z" fill="none" stroke-width="2.377" />
|
|
<path
|
|
d="M125.872 142.397A20.872 20.872 0 01105 163.27a20.872 20.872 0 01-20.872-20.873A20.872 20.872 0 01105 121.525a20.872 20.872 0 0120.872 20.872z"
|
|
fill="none" stroke-width="2.338" />
|
|
<ellipse cx="105" cy="142.397" rx="9.621" ry="9.704" fill="#030101" />
|
|
<circle cx="128.534" cy="119.421" r="3.173" />
|
|
<path id="logo-border-color"
|
|
d="M77.916 108.243a7.163 7.163 0 00-7.179 7.178v53.908a7.164 7.164 0 007.18 7.179h53.907a7.163 7.163 0 007.179-7.179v-53.908a7.163 7.163 0 00-7.179-7.178zm-.113 2.475h54.134a4.603 4.603 0 014.613 4.612v54.134a4.603 4.603 0 01-4.613 4.613H77.803a4.603 4.603 0 01-4.613-4.613V115.33a4.603 4.603 0 014.613-4.612z"
|
|
fill="#333" />
|
|
<circle cx="111.946" cy="135.633" r="4.596" fill="#fff" />
|
|
<g fill="none" stroke-width="2.361">
|
|
<path
|
|
d="M73.37 181.786h-2.615a5.133 5.133 0 01-5.144-5.144v-2.607M144.389 174.023v2.62a5.133 5.133 0 01-5.144 5.143h-2.59M136.658 103.009h2.587a5.133 5.133 0 015.144 5.143v2.553M65.611 110.717v-2.565a5.133 5.133 0 015.144-5.143h2.607" />
|
|
</g>
|
|
</g>
|
|
</svg><a href="/"><?= $config['title']; ?></a>
|
|
</h1>
|
|
|
|
<ul>
|
|
<li><a href="">Site</a></li>
|
|
</ul>
|
|
<ul>
|
|
<li><a href="#" onclick="switchTheme();"><svg version="1.1" id="toggleDarkMode" viewBox="0 0 512 512">
|
|
<g id="SVGRepo_bgCarrier" stroke-width="0"></g>
|
|
<g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g>
|
|
<g id="SVGRepo_iconCarrier">
|
|
<path
|
|
d="M256,0C114.842,0,0,114.84,0,256s114.842,256,256,256s256-114.84,256-256S397.158,0,256,0z M322.225,451.558 c-20.797,7.062-43.071,10.894-66.225,10.894c-113.837,0-206.452-92.614-206.452-206.452S142.163,49.548,256,49.548 c23.154,0,45.429,3.832,66.226,10.894C266.612,107.439,231.226,177.657,231.226,256S266.612,404.561,322.225,451.558z">
|
|
</path>
|
|
</g>
|
|
</svg>
|
|
</a></li>
|
|
</ul>
|
|
</nav>
|
|
</header>
|
|
|
|
<section>
|
|
<?php if ($breadcrumb_navigation): ?>
|
|
<nav aria-label="breadcrumb" class="breadcrumb">
|
|
<?= $breadcrumb_navigation; ?>
|
|
</nav>
|
|
<?php endif; ?>
|
|
<?php if ($folderNote): ?>
|
|
<aside>
|
|
<?= $folderNote; ?>
|
|
</aside>
|
|
<?php endif; ?>
|
|
|
|
<?php if (!empty($messages)) : ?>
|
|
<div id="message" class="message">
|
|
<?= $messages; ?>
|
|
</div>
|
|
<?php endif; ?>
|
|
</section>
|
|
|
|
<main>
|
|
<?php foreach ($listDir as $value) : ?>
|
|
<?php foreach ($value as $entry) : ?>
|
|
<article>
|
|
<a href="<?= $entry['link']; ?>" class="<?= FileAndDir::addToLightBox($entry['type']); ?> card-content" data-gallery="gallery" data-glightbox="<?= $entry['dataAttr']; ?>">
|
|
<img src="<?= $entry['thumb']; ?>" loading="lazy" alt="" width="<?= $config['thumbSize']; ?>" height="<?= $config['thumbSize']; ?>">
|
|
</a>
|
|
<p class="card-footer">
|
|
<?= $entry['name']; ?>
|
|
</p>
|
|
<?= $entry['imgCaption']; ?>
|
|
</article>
|
|
<?php endforeach; ?>
|
|
<?php endforeach; ?>
|
|
</main>
|
|
|
|
<a href="#top" id="backtop">Top</a>
|
|
|
|
<footer>
|
|
Gallery by <?= $config['author']; ?> /
|
|
<a href="https://forge.leslibres.org/Knah-Tsaeb/NanoGal" title="Powered by NanoGal" target=" _blank">
|
|
Powered by NanoGal
|
|
</a> Fork of
|
|
<a href="https://github.com/sebsauvage/MinigalNano" title="Original MiniGal Nano" target="_blank">
|
|
MiniGal Nano
|
|
</a>
|
|
<p class="buildTime">
|
|
<% buildTime %>
|
|
</p>
|
|
</footer>
|
|
|
|
<script src="assets/js/glightbox.min.js"></script>
|
|
<script src="assets/js/app.js"></script>
|
|
<script>
|
|
const lightbox = GLightbox({
|
|
autoplayVideos: false,
|
|
descPosition: '<?= $config['imageCaptionPosition']; ?>'
|
|
});
|
|
</script>
|
|
</body>
|
|
|
|
</html>
|