Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@elmarputz
Created December 9, 2019 10:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elmarputz/af53cc7ac8be8567183ef0e15cc65272 to your computer and use it in GitHub Desktop.
Save elmarputz/af53cc7ac8be8567183ef0e15cc65272 to your computer and use it in GitHub Desktop.
Contac.html language
<f:if condition="{languageNavigation}">
<ul id="language" class="language-menu">
<f:for each="{languageNavigation}" as="item">
<li class="{f:if(condition: item.active, then: 'active')}{f:if(condition: item.available, else: ' text-muted')}">
<f:if condition="{item.available}">
<f:then>
<a href="{item.link}" hreflang="{item.hreflang}" title="{item.navigationTitle}">
<span>{item.navigationTitle}</span>
</a>
</f:then>
<f:else>
<span>{item.navigationTitle}</span>
</f:else>
</f:if>
</li>
</f:for>
</ul>
</f:if>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment