Skip to content

Instantly share code, notes, and snippets.

@xndrdev
Created August 10, 2018 16:29
Show Gist options
  • Save xndrdev/a73d6753e7c5ffa51575f60e0fb4448e to your computer and use it in GitHub Desktop.
Save xndrdev/a73d6753e7c5ffa51575f60e0fb4448e to your computer and use it in GitHub Desktop.
{block name='frontend_index_navigation_categories'}
<div class="navigation--list-wrapper">
{block name='frontend_index_navigation_categories_navigation_list'}
<ul class="navigation--list container" role="menubar" itemscope="itemscope" itemtype="http://schema.org/SiteNavigationElement">
{strip}
{block name='frontend_index_navigation_categories_top_home'}
<li class="navigation--entry{if $sCategoryCurrent == $sCategoryStart && $Controller == 'index'} is--active{/if} is--home" role="menuitem">
{block name='frontend_index_navigation_categories_top_link_home'}
<a class="navigation--link is--first{if $sCategoryCurrent == $sCategoryStart && $Controller == 'index'} active{/if}" href="{url controller='index'}" title="{s name='IndexLinkHome' namespace="frontend/index/categories_top"}{/s}" itemprop="url">
<span itemprop="name">{s name='IndexLinkHome' namespace="frontend/index/categories_top"}{/s}</span>
</a>
{/block}
</li>
{/block}
{block name='frontend_index_navigation_categories_top_before'}{/block}
{foreach $sMainCategories as $sCategory}
{block name='frontend_index_navigation_categories_top_entry'}
{if !$sCategory.hideTop}
<li class="navigation--entry{if $sCategory.flag} is--active{/if}" role="menuitem">
{block name='frontend_index_navigation_categories_top_link'}
<a class="navigation--link{if $sCategory.flag} is--active{/if}" href="{$sCategory.link}" title="{$sCategory.description}" itemprop="url"{if $sCategory.external && $sCategory.externalTarget} target="{$sCategory.externalTarget}"{/if}>
<span itemprop="name">{$sCategory.description}</span>
</a>
{/block}
</li>
{/if}
{/block}
{/foreach}
{block name='frontend_index_navigation_categories_top_after'}{/block}
{/strip}
</ul>
{/block}
</div>
{/block}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment