foto: lock characters from icon font
authorMischa POSLAWSKY <perl@shiar.org>
Wed, 1 Jan 2020 09:38:44 +0000 (10:38 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Sat, 5 Dec 2020 00:41:21 +0000 (01:41 +0100)
Match style override to page icons introduced in the previous commit.

foto/index.php

index a97ec1c24ef0073e844df0cbb129834608484f49..0ce4d206aa2a4c72b2336fc8a2b7e3fae665c71d 100644 (file)
@@ -2,15 +2,17 @@
 $rootdir = $Page . $Args;
 
 if ($User->admin('foto')) {
-       $access = '🔓 Openbaar';
        if (!empty($PageAccess)) {
-               $access = "🔒 Bewoners";
+               $access = '<span class="icon icon-locked">&#x1F512;</span> Bewoners';
                if ($PageAccess != $rootdir) {
                        $access .= sprintf(' vanaf <a href="%s">%s</a>',
                                "/$PageAccess", pathinfo($PageAccess, PATHINFO_FILENAME)
                        );
                }
        }
+       else {
+               $access = '<span class="icon icon-locked">&#x1F513;</span> Openbaar';
+       }
        print "<aside>$access</aside>\n\n";
 }