summaryrefslogtreecommitdiff
path: root/modules/gallery/views/menu.html.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/gallery/views/menu.html.php')
-rw-r--r--modules/gallery/views/menu.html.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/modules/gallery/views/menu.html.php b/modules/gallery/views/menu.html.php
new file mode 100644
index 00000000..b4b38c93
--- /dev/null
+++ b/modules/gallery/views/menu.html.php
@@ -0,0 +1,25 @@
+<?php defined("SYSPATH") or die("No direct script access.") ?>
+<? if ($menu->elements): // Don't show the menu if it has no choices ?>
+<? if ($menu->is_root): ?>
+
+<ul class="<?= $menu->css_class ?>">
+ <? foreach ($menu->elements as $element): ?>
+ <?= $element->render() ?>
+ <? endforeach ?>
+</ul>
+
+<? else: ?>
+
+<li title="<?= $menu->label->for_html_attr() ?>">
+ <a href="#">
+ <?= $menu->label->for_html() ?>
+ </a>
+ <ul>
+ <? foreach ($menu->elements as $element): ?>
+ <?= $element->render() ?>
+ <? endforeach ?>
+ </ul>
+</li>
+
+<? endif ?>
+<? endif ?>