Skip to content

Instantly share code, notes, and snippets.

@xndrdev
Created August 10, 2018 16:37
Show Gist options
  • Save xndrdev/54d402158e6a6d26c3c51e35bb98df56 to your computer and use it in GitHub Desktop.
Save xndrdev/54d402158e6a6d26c3c51e35bb98df56 to your computer and use it in GitHub Desktop.
Navigation mit Animation
{extends file="parent:frontend/index/main-navigation.tpl"}
{block name='frontend_index_navigation_categories_top_home'}
<li class="navigation--entry hvr-buzz {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_entry'}
{if !$sCategory.hideTop}
<li class="navigation--entry hvr-buzz {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}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment