X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/621fc2f9638a1a92aa8535310e7852de5542f11e..7983570288ed2798470a552ec04f64aa646b664a:/foto/index.php diff --git a/foto/index.php b/foto/index.php index a97ec1c..0acd44e 100644 --- a/foto/index.php +++ b/foto/index.php @@ -1,35 +1,37 @@ link; if ($User->admin('foto')) { - $access = 'ð Openbaar'; - if (!empty($PageAccess)) { - $access = "ð Bewoners"; - if ($PageAccess != $rootdir) { + if ($Page->restricted) { + $access = '🔒 Bewoners'; + if ($Page->restricted != $rootdir) { $access .= sprintf(' vanaf %s', - "/$PageAccess", pathinfo($PageAccess, PATHINFO_FILENAME) + "/{$Page->restricted}", pathinfo($Page->restricted, PATHINFO_FILENAME) ); } } + else { + $access = '🔓 Openbaar'; + } print "\n\n"; } $nav = explode('/', $rootdir); $nav[0] = "Foto's"; # override of root 'foto' $title = array_pop($nav); -$Article->title = implode(' ', $nav) . ': ' . $title; +$Page->title = ($nav ? implode(' ', $nav) . ': ' : '') . $title; $link = ''; print "