git.shiar.nl
/
minimedit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
130231b
)
foto: og metadata for current album title, image
author
Mischa POSLAWSKY
<perl@shiar.org>
Sun, 10 Feb 2019 22:40:25 +0000
(23:40 +0100)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Sun, 10 Feb 2019 22:48:48 +0000
(23:48 +0100)
foto/index.php
patch
|
blob
|
history
diff --git
a/foto/index.php
b/foto/index.php
index cd939f3ab2e5e92ba73fbeff02dc0946ef24952a..ee37df186eb0095ec256a957f22be642d730c33b 100644
(file)
--- a/
foto/index.php
+++ b/
foto/index.php
@@
-19,6
+19,7
@@
if (!empty($User['admin'])) {
$nav = explode('/', $rootdir);
$nav[0] = "Foto's"; # override of root 'foto'
$title = array_pop($nav);
$nav = explode('/', $rootdir);
$nav[0] = "Foto's"; # override of root 'foto'
$title = array_pop($nav);
+$Place['title'] = implode(' ', $nav) . ': ' . $title;
$link = '';
print "<h2>";
$link = '';
print "<h2>";
@@
-76,7
+77,11
@@
if ($imgs = glob("$rootdir/*", GLOB_ONLYDIR)) {
if ($imgs = glob("$rootdir/*.jpg")) {
print '<ul class="gallery album">'."\n";
foreach ($imgs as $img) {
if ($imgs = glob("$rootdir/*.jpg")) {
print '<ul class="gallery album">'."\n";
foreach ($imgs as $img) {
- if ($img == "$rootdir/index.jpg") continue;
+ if ($img == "$rootdir/index.jpg") {
+ # cover image of current album
+ $Place['image'] = "/thumb/640x/$img";
+ continue;
+ }
if (!is_link($img)) continue;
print '<li>'.showthumb($img);
}
if (!is_link($img)) continue;
print '<li>'.showthumb($img);
}