Revision b251cc22
Von Sven Schöling vor mehr als 9 Jahren hinzugefügt
templates/webpages/menu/menuv3.html | ||
---|---|---|
1 |
<div id="menuv3">[% menu %]</div> |
|
2 |
<div style="clear: both;"></div> |
|
1 |
[%- USE L %] |
|
2 |
[%- USE HTML %] |
|
3 |
<div id="menuv3">[% FOREACH node = menu.tree %][% NEXT UNLESS node.visible %]<ul><li>[% PROCESS submenu top=1 %]</li></ul>[% END %]</div> |
|
4 |
<div style="clear: both;"></div> |
|
5 |
[%- %] |
|
6 |
[%- BLOCK submenu %] |
|
7 |
[%- IF top %]<h2>[% menu.name_for_node(node) | html %]</h2> |
|
8 |
[%- ELSIF node.children %]<div class="x">[% menu.name_for_node(node) | html %]</div> |
|
9 |
[%- ELSE %][% L.link(menu.href_for_node(node), menu.name_for_node(node), title=menu.name_for_node(node), target=node.target) %] |
|
10 |
[%- END %] |
|
11 |
[%- IF node.children %]<ul>[%- FOREACH node = node.children %][% NEXT UNLESS node.visible %]<li>[% PROCESS submenu top=0 %]</li>[% END %]</ul>[%- END %] |
|
12 |
[%- END %] |
Auch abrufbar als: Unified diff
Menüstruktur auf YAML geändert