mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-06-08 12:39:17 -04:00
Remove Menu::compact() in favor of putting an if-then clause in
menu.html.php. This serves two purposes: 1) It's more efficient since we're doing less passes over the Menu tree 2) We're allowing themers to decide whether or not to show empty menus
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<?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 ?>">
|
||||
@@ -21,3 +22,4 @@
|
||||
</li>
|
||||
|
||||
<? endif ?>
|
||||
<? endif ?>
|
||||
|
||||
Reference in New Issue
Block a user