Add Gallery Title Config

This commit is contained in:
seiichiro 2022-01-10 18:11:45 +01:00
parent 1cdc86e565
commit 3dba4e927c
4 changed files with 8 additions and 3 deletions

View file

@ -2,6 +2,8 @@
// Basic Settings
// Gallery Title
$conf['gallery_name'] = "Seiichiro's Gallery";
// Full Filesystem Path to the Base Image Directory
$conf['fs_imagedir'] = '/data0/Private/Pictures/Gallery';
// Full Filesystem Path to the Thumbnails Storage Directory

View file

@ -17,8 +17,8 @@ body {
}
.title {
width: 70%;
display: inline;
font-size: 2em;
vertical-align: center;
}
.images {

View file

@ -14,6 +14,8 @@ $thumbdir = Helpers::end_dir($conf['fs_thumbdir']);
$imageurl = Helpers::end_dir($conf['web_imagedir']);
$thumburl = Helpers::end_dir($conf['web_thumbdir']);
$galleryname = $conf['gallery_name'];
// Get Parameters or Set Defaults
$page = $_GET['p'] ?? $conf['defpage'];
$slice = $_GET['s'] ?? $conf['defslice'];
@ -60,6 +62,7 @@ $curfiles = array_slice($files, ($page-1)*$slice ,$slice, true);
if (count($curfiles) > 0) {
// Prepare Generic Data for Template
$data['galleryname'] = $galleryname;
$data['dir'] = $dir;
$data['slice'] = $slice;
$data['filter'] = $filter;

View file

@ -5,7 +5,7 @@
{% block content %}
<div class="content">
<div class="page-header">
<div class="title">Gallery</div>
<div class="title">{{ $galleryname }}</div>
<div class="search">
<form class="f-search" action="index.php" method="get">
<input type="text"placeholder="Suche.." name="f" />