Revision ca4c56b4
Von Moritz Bunkus vor etwa 12 Jahren hinzugefügt
templates/webpages/menu/menunew.html | ||
---|---|---|
38 | 38 |
[%- FOREACH mainitem = menu_items %] |
39 | 39 |
[%- SET main_id = main_id + 1 %] |
40 | 40 |
<li id="[% main_id %]"[% IF mainitem.image %] itemIcon="[% mainitem.image %]"[% END %]> |
41 |
<a href="[% IF mainitem.href %][% mainitem.href %][% ELSE %]#[% END %]"> |
|
41 |
<a href="[% IF mainitem.href %][% mainitem.href %][% ELSE %]#[% END %]"[% IF mainitem.target && (mainitem.target != 'main_window') %] target="[% HTML.escape(mainitem.target) %]"[% END %]>
|
|
42 | 42 |
[%- HTML.escape(mainitem.title) %] |
43 | 43 |
</a> |
44 | 44 |
[%- IF mainitem.subitems %] |
... | ... | |
47 | 47 |
[%- FOREACH sub1item = mainitem.subitems %] |
48 | 48 |
[%- SET sub1_id = sub1_id + 1 %] |
49 | 49 |
<li id="[% sub1_id %]"[% IF sub1item.image %] itemIcon="[% sub1item.image %]"[% END %]> |
50 |
<a href="[% IF sub1item.href %][% sub1item.href %][% ELSE %]#[% END %]"> |
|
50 |
<a href="[% IF sub1item.href %][% sub1item.href %][% ELSE %]#[% END %]"[% IF sub1item.target && (sub1item.target != 'main_window') %] target="[% HTML.escape(sub1item.target) %]"[% END %]>
|
|
51 | 51 |
[%- HTML.escape(sub1item.title) %] |
52 | 52 |
</a> |
53 | 53 |
[%- IF sub1item.subitems %] |
... | ... | |
56 | 56 |
[%- FOREACH sub2item = sub1item.subitems %] |
57 | 57 |
[%- SET sub2_id = sub2_id + 1 %] |
58 | 58 |
<li id="[% sub2_id %]"[% IF sub2item.image %] itemIcon="[% sub2item.image %]"[% END %]> |
59 |
<a href="[% IF sub2item.href %][% sub2item.href %][% ELSE %]#[% END %]"> |
|
59 |
<a href="[% IF sub2item.href %][% sub2item.href %][% ELSE %]#[% END %]"[% IF sub2item.target && (sub2item.target != 'main_window') %] target="[% HTML.escape(sub2item.target) %]"[% END %]>
|
|
60 | 60 |
[%- HTML.escape(sub2item.title) %] |
61 | 61 |
</a> |
62 | 62 |
</li> |
Auch abrufbar als: Unified diff
Unterstützung für 'href'-Menüeinträge im JavaScript-Menü gefixt