Add Gallery Title Config
This commit is contained in:
parent
1cdc86e565
commit
3dba4e927c
4 changed files with 8 additions and 3 deletions
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
// Basic Settings
|
// Basic Settings
|
||||||
|
|
||||||
|
// Gallery Title
|
||||||
|
$conf['gallery_name'] = "Seiichiro's Gallery";
|
||||||
// Full Filesystem Path to the Base Image Directory
|
// Full Filesystem Path to the Base Image Directory
|
||||||
$conf['fs_imagedir'] = '/data0/Private/Pictures/Gallery';
|
$conf['fs_imagedir'] = '/data0/Private/Pictures/Gallery';
|
||||||
// Full Filesystem Path to the Thumbnails Storage Directory
|
// Full Filesystem Path to the Thumbnails Storage Directory
|
||||||
|
|
|
@ -17,8 +17,8 @@ body {
|
||||||
}
|
}
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
width: 70%;
|
font-size: 2em;
|
||||||
display: inline;
|
vertical-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.images {
|
.images {
|
||||||
|
|
|
@ -14,6 +14,8 @@ $thumbdir = Helpers::end_dir($conf['fs_thumbdir']);
|
||||||
$imageurl = Helpers::end_dir($conf['web_imagedir']);
|
$imageurl = Helpers::end_dir($conf['web_imagedir']);
|
||||||
$thumburl = Helpers::end_dir($conf['web_thumbdir']);
|
$thumburl = Helpers::end_dir($conf['web_thumbdir']);
|
||||||
|
|
||||||
|
$galleryname = $conf['gallery_name'];
|
||||||
|
|
||||||
// Get Parameters or Set Defaults
|
// Get Parameters or Set Defaults
|
||||||
$page = $_GET['p'] ?? $conf['defpage'];
|
$page = $_GET['p'] ?? $conf['defpage'];
|
||||||
$slice = $_GET['s'] ?? $conf['defslice'];
|
$slice = $_GET['s'] ?? $conf['defslice'];
|
||||||
|
@ -60,6 +62,7 @@ $curfiles = array_slice($files, ($page-1)*$slice ,$slice, true);
|
||||||
|
|
||||||
if (count($curfiles) > 0) {
|
if (count($curfiles) > 0) {
|
||||||
// Prepare Generic Data for Template
|
// Prepare Generic Data for Template
|
||||||
|
$data['galleryname'] = $galleryname;
|
||||||
$data['dir'] = $dir;
|
$data['dir'] = $dir;
|
||||||
$data['slice'] = $slice;
|
$data['slice'] = $slice;
|
||||||
$data['filter'] = $filter;
|
$data['filter'] = $filter;
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="page-header">
|
<div class="page-header">
|
||||||
<div class="title">Gallery</div>
|
<div class="title">{{ $galleryname }}</div>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<form class="f-search" action="index.php" method="get">
|
<form class="f-search" action="index.php" method="get">
|
||||||
<input type="text"placeholder="Suche.." name="f" />
|
<input type="text"placeholder="Suche.." name="f" />
|
||||||
|
|
Loading…
Reference in a new issue