diff options
Diffstat (limited to 'public/app/views/xx--admin/admin-menu.php')
| -rw-r--r-- | public/app/views/xx--admin/admin-menu.php | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/public/app/views/xx--admin/admin-menu.php b/public/app/views/xx--admin/admin-menu.php deleted file mode 100644 index 52e8522..0000000 --- a/public/app/views/xx--admin/admin-menu.php +++ /dev/null @@ -1,47 +0,0 @@ -<?php -/** admin panel - * ----------------------------------------------------------------------------- - * - * imported variables: - * --- - * @param $action (string): array of articles - * @param $id (int): id of entity (when editing entity) | 0: new entity - * - * example call: - * --- - * Render::template("sections/admin_panel.php",[ - * 'action' => 'posts', - * 'id' => 4 - * ]) - * ----------------------------------------------------------------------------- - */ - -$admin_options = [ - 'panel' => 'Διαχείριση', - 'edit_lesson' => 'Νέο Μάθημα', - 'lessons' => 'Μαθήματα', - 'categories' => 'Κεφάλαια', - 'pages' => 'Σελίδες', - 'files' => 'Αρχεία', - 'privileges' => 'Πρόσβαση', - 'users' => 'Χρήστες' -]; -?> - -<div class="top-bar"> - - <?php foreach($admin_options as $opt => $label) : ?> - - <?php if (($opt == $action) & (!$id)) : ?> - <span class="btn btn-primary selected"><?=$label?></span> - - <?php else : ?> - <a href="/admin/<?= $opt ?>" class="btn"><?= $label ?></a> - - <?php endif; ?> - - <?php endforeach ?> - - <a href="/logout" class="btn">Logout</a> - -</div>
\ No newline at end of file |
