Sjabloon:Menu: verschil tussen versies
Uit Dorpsbelang Den Hout
(Nieuwe pagina aangemaakt met '{{#if:{{{id|}}}|{{#subobject:Menu-{{{id|}}} |Type={{{type|}}} |Id={{{id|}}} |Text={{{text|}}} |Href={{{href|}}} |Parent={{{parent|}}} |Icon={{{icon|}}} |Order={{{or...') |
|||
(12 tussenliggende versies door 2 gebruikers niet weergegeven) | |||
Regel 1: | Regel 1: | ||
{{#if:{{{id|}}}|{{#subobject:Menu-{{{id|}}} | {{#if:{{{id|}}}|{{#subobject:Menu-{{{id|}}} | ||
|Type={{{type|}}} | |Type={{{type|}}} | ||
− | | | + | |Ids={{{id|}}} |
|Text={{{text|}}} | |Text={{{text|}}} | ||
|Href={{{href|}}} | |Href={{{href|}}} | ||
Regel 10: | Regel 10: | ||
|Subobject of={{FULLPAGENAME}} | |Subobject of={{FULLPAGENAME}} | ||
}} }} | }} }} | ||
− | {{ | + | {{padleft:|{{{level|}}}|*}}{{#ifeq:{{{type|}}}|dropdown|{{#widget:label|for=z{{{order|}}}|text=<i class="fa {{{icon|}}}"></i> <span>{{{text|}}}</span>}}{{#widget:radio|id=z{{{order|}}}|class=d-none check-next}}|{{#widget:link|text={{#if:{{{icon|}}}|<i class="fa {{{icon|}}}"></i> }}{{{text|}}}|href={{#ifeq:{{{type|}}}|external|{{{href|}}}|{{fullurl:{{SERVERNAME}}/{{{href|}}} }} }}|type=a|{{#ifeq:{{{type|}}}|external|target=blank }}}} }}<!-- {{#if:{{#var:counter}}||{{#vardefine:counter|0}}}} |
{{#vardefineecho:counter|{{#expr:{{#var:counter}} + 1}} }} --> | {{#vardefineecho:counter|{{#expr:{{#var:counter}} + 1}} }} --> |