Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision c78ea4d3

Von Sven Schöling vor mehr als 9 Jahren hinzugefügt

  • ID c78ea4d36ded43ab950540812584eea11054cbc9
  • Vorgänger 9632e939
  • Nachfolger 5f82b518

Javascript Menü: typos

Unterschiede anzeigen:

templates/webpages/menu/menunew.html
6 6
 [%- SET main_id = '100' %]
7 7
 <ul id="main_menu_model"  style='display:none'>
8 8
 [%- FOREACH node = menu.tree %]
9
  [% NEXT UNLESS node.visible %]
9
  [%- NEXT UNLESS node.visible %]
10 10
  [%- SET main_id = main_id + 1 %]
11 11
  <li id="[% main_id %]"[% IF icon_path(node.icon) %] itemIcon="[% icon_path(node.icon) %]"[% END %]>
12 12
   [% L.link(menu.href_for_node(node) || '#', menu.name_for_node(node), target=node.target) %]
......
14 14
    <ul width="[% max_width(node) %]">
15 15
     [%- SET sub1_id = main_id * 100 %]
16 16
     [%- FOREACH sub1node = node.children %]
17
      [% NEXT UNLESS sub1node.visible %]
17
      [%- NEXT UNLESS sub1node.visible %]
18 18
      [%- SET sub1_id = sub1_id + 1 %]
19 19
      <li id="[% sub1_id %]"[% IF icon_path(sub1node.icon) %] itemIcon="[% icon_path(sub1node.icon) %]"[% END %]>
20 20
       [% L.link(menu.href_for_node(sub1node) || '#', menu.name_for_node(sub1node), target=sub1node.target) %]
21
       [%- IF sub1item.children %]
21
       [%- IF sub1node.children %]
22 22
        <ul width="[% max_width(sub1node) %]">
23 23
         [%- SET sub2_id = sub1_id * 100 %]
24 24
         [%- FOREACH sub2node = sub1node.children %]
25
          [% NEXT UNLESS sub2node.visible %]
25
          [%- NEXT UNLESS sub2node.visible %]
26 26
          [%- SET sub2_id = sub2_id + 1 %]
27
          <li id="[% sub2_id %]"[% IF icon_path(sub2item.icon) %] itemIcon="[% icon_path(sub2item.icon) %]"[% END %]>
27
          <li id="[% sub2_id %]"[% IF icon_path(sub2node.icon) %] itemIcon="[% icon_path(sub2node.icon) %]"[% END %]>
28 28
            [% L.link(menu.href_for_node(sub2node) || '#', menu.name_for_node(sub2node), target=sub2node.target) %]
29 29
          </li>
30 30
         [%- END %]

Auch abrufbar als: Unified diff