- $access = '🔓 Openbaar';
- if (!empty($PageAccess)) {
- $access = "🔒 Bewoners";
- if ($PageAccess != $rootdir) {
+ if ($Page->restricted) {
+ $access = '<span class="icon icon-locked">🔒</span> Bewoners';
+ if ($Page->restricted != $rootdir) {
print "<aside>$access</aside>\n\n";
}
$nav = explode('/', $rootdir);
$nav[0] = "Foto's"; # override of root 'foto'
$title = array_pop($nav);
print "<aside>$access</aside>\n\n";
}
$nav = explode('/', $rootdir);
$nav[0] = "Foto's"; # override of root 'foto'
$title = array_pop($nav);
$html = '<img src="/'.$cover.'" />';
$html .= "<figcaption>$album</figcaption>";
if (!$User->login and file_exists("$path/.private")) {
$html = '<img src="/'.$cover.'" />';
$html .= "<figcaption>$album</figcaption>";
if (!$User->login and file_exists("$path/.private")) {
foreach ($imgs as $img) {
if ($img == "$rootdir/index.jpg") {
# cover image of current album
foreach ($imgs as $img) {
if ($img == "$rootdir/index.jpg") {
# cover image of current album