diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2009-10-27 14:02:59 -0700 |
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-10-27 14:02:59 -0700 |
| commit | dbf18318f66f5a2b39d8483973a3eca7cac84740 (patch) | |
| tree | af0b29f2c63920a1cc21159ac97de142bce53f8f /modules/gallery/views/menu.html.php | |
| parent | 3228f04ed9b18938365866ed15027ed3c1b59ad7 (diff) | |
| parent | 13faf6035d726f8a77b7dcac7e8e8fa3b24bfaf2 (diff) | |
Merge branch 'master' of git@github.com:gallery/gallery3
Diffstat (limited to 'modules/gallery/views/menu.html.php')
| -rw-r--r-- | modules/gallery/views/menu.html.php | 25 |
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 ?> |
