Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 5d98f446

Von Hans P. Schlaepfer vor fast 4 Jahren hinzugefügt

  • ID 5d98f4461f804fba7b994ebad7aae0d7e80937dd
  • Vorgänger 870e0c0a
  • Nachfolger b39c6de8

Neues Design 2019 Standard-Code templates/webpages/menu/menuv3.html

Unterschiede anzeigen:

templates/webpages/menu/menuv3.html
1
<div id="menuv3">[% FOREACH node = menu.tree %][% NEXT UNLESS node.visible %]<ul><li>[% PROCESS submenu top=1 %]</li></ul>[% END %]</div>
2 1
[% USE L %]
3 2
[% USE HTML %]
4 3

  
4
<div id="menuv3">
5
  [% FOREACH node = menu.tree %][% NEXT UNLESS node.visible %]
6
  <ul>
7
    <li>[% PROCESS submenu top=1 %]</li>
8
  </ul>
9
  [% END %]
10
  </div>
5 11
<div style="clear: both;"></div>
6
[%- %]
7
[%- BLOCK submenu %]
8
  [%- IF top              %]<h2>[% menu.name_for_node(node) | html %]</h2>
9
  [%- ELSIF node.children %]<div class="x">[% menu.name_for_node(node) | html %]</div>
10
  [%- ELSE                %][% L.link(menu.href_for_node(node), menu.name_for_node(node), title=menu.name_for_node(node), target=node.target) %]
11
  [%- END %]
12
  [%- IF node.children %]<ul>[%- FOREACH node = node.children %][% NEXT UNLESS node.visible %]<li>[% PROCESS submenu top=0 %]</li>[% END %]</ul>[%- END %]
13
[%- END %]
12
[% %]
13
[% BLOCK submenu %]
14
  [% IF top %]
15
    [% menu.name_for_node(node) | html %]
16
  [% ELSIF node.children %]
17
    <div class="x">[% menu.name_for_node(node) | html %]</div>
18
  [% ELSE                %]
19
    [% IF node.target %]
20
      [% L.link(menu.href_for_node(node), menu.name_for_node(node), title=menu.name_for_node(node), target=node.target) %]
21
    [% ELSE %]
22
      [% L.link(menu.href_for_node(node), menu.name_for_node(node), title=menu.name_for_node(node)) %]
23
    [% END %]
24
  [% END %]
25
  [% IF node.children %]
26
    <ul>
27
      [% FOREACH node = node.children %]
28
        [% NEXT UNLESS node.visible %]<li>[% PROCESS submenu top=0 %]</li>
29
      [% END %]
30
    </ul>
31
  [% END %]
32
[% END %]

Auch abrufbar als: Unified diff