diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2009-11-06 13:03:48 -0800 |
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-11-06 13:03:48 -0800 |
| commit | b01056da917e7da2921a5cd4c65b129489cbc19f (patch) | |
| tree | 31d1de86506d6b18543ac57684739813414c9c6d /modules/gallery/views | |
| parent | a2d5d8091f68263812624f8ed1092cbf5338e744 (diff) | |
Modify the Menu_Element class to allow for the specification of a custom view. Also allow the root element to specify a css id.
Diffstat (limited to 'modules/gallery/views')
| -rw-r--r-- | modules/gallery/views/menu.html.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/gallery/views/menu.html.php b/modules/gallery/views/menu.html.php index b4b38c93..cb49bcdf 100644 --- a/modules/gallery/views/menu.html.php +++ b/modules/gallery/views/menu.html.php @@ -1,8 +1,7 @@ <?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 ?>"> +<ul <?= isset($menu->css_id) ? "id='$menu->css_id'" : "" ?> class="<?= $menu->css_class ?>"> <? foreach ($menu->elements as $element): ?> <?= $element->render() ?> <? endforeach ?> |
