{function name=advCategoryTree nodes=[]} {if $nodes|count} {/if} {/function} {function name=advPanelTree nodes=[]} {if $nodes|count} {/if} {/function} {function name=advNodeCards nodes=[]} {if $nodes|count}
{foreach from=$nodes item=treeNode}
{if $treeNode.uses_sprite && $treeNode.icon_class}
{elseif $treeNode.icon_url} {$treeNode.title|escape:'htmlall':'UTF-8'} {/if}

{$treeNode.title|escape:'htmlall':'UTF-8'}

{if $treeNode.description}

{$treeNode.description|escape:'htmlall':'UTF-8'}

{/if}
{/foreach}
{/if} {/function} {function name=advNodeCardsByType nodes=[] type=''} {assign var=matchingNodes value=[]} {foreach from=$nodes item=treeNode} {if $treeNode.type == $type} {append var='matchingNodes' value=$treeNode} {/if} {/foreach} {if $matchingNodes|count} {advNodeCards nodes=$matchingNodes} {/if} {/function} {function name=advRichContentCards nodes=[]} {if $nodes|count}
{foreach from=$nodes item=treeNode}
{if $treeNode.icon_url}
{$treeNode.title|escape:'htmlall':'UTF-8'}
{/if}

{$treeNode.title|escape:'htmlall':'UTF-8'}

{if $treeNode.description}
{$treeNode.description|escape:'htmlall':'UTF-8'}
{/if} {if $treeNode.custom_link} {l s='Zobacz wszystko' d='Modules.Advancedmegamenu.Shop'} {/if}
{/foreach}
{/if} {/function} {function name=advRichContentIntro node=[]} {if $node.type == 'rich_content'}
{if $node.icon_url}
{$node.title|escape:'htmlall':'UTF-8'}
{/if}
{if $node.title}

{$node.title|escape:'htmlall':'UTF-8'}

{/if} {if $node.description}
{$node.description|escape:'htmlall':'UTF-8'}
{/if} {if $node.custom_link} {l s='Zobacz wszystko' d='Modules.Advancedmegamenu.Shop'} {/if}
{/if} {/function} {function name=advLayoutCards layouts=[]} {if $layouts|count}
{foreach from=$layouts item=layout}
{/foreach}
{/if} {/function} {function name=advMobilePanels nodes=[] depth=0} {foreach from=$nodes item=node} {assign var=panelId value="adv-panel-"|cat:$node.id} {if $node.children|count || $node.category_branch|count || $node.layouts|count || $node.type == 'rich_content'}
{$node.title|escape:'htmlall':'UTF-8'}
{advMobilePanels nodes=$node.children depth=$depth+1} {/if} {/foreach} {/function}