mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-22 06:46:05 -04:00
Some HTML validation fixes (don't render empty <ul> lists, empty id attributes, use & not &)
This commit is contained in:
@@ -1,7 +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_empty()): // Don't show the menu if it has no choices ?>
|
||||
<? if ($menu->is_root): ?>
|
||||
<ul <?= isset($menu->css_id) ? "id='$menu->css_id'" : "" ?> class="<?= $menu->css_class ?>">
|
||||
<ul <?= $menu->css_id ? "id='$menu->css_id'" : "" ?> class="<?= $menu->css_class ?>">
|
||||
<? foreach ($menu->elements as $element): ?>
|
||||
<?= $element->render() ?>
|
||||
<? endforeach ?>
|
||||
|
||||
Reference in New Issue
Block a user