{assign var=Site value=$this->getAttribute('Site')} {assign var=siteLang value=$Project->getLang()} {assign var=path value=$this->getAttribute('flagFolderPath')} {if count($langs) > 1}
{if $buttonShowFlag} {/if} {if $buttonText && $buttonText === 'abbreviation'} {$siteLang} {elseif $buttonText && $buttonText === 'text'} {locale group='quiqqer/core' var='language.'|cat:{$siteLang}} {/if} {if $showDropdown && $showArrow}
{/if}
{if $showDropdown}
{foreach from=$langs item=lang} {strip} {if $Site->existLang($lang)} {if $dropdownShowFlag} {/if} {if $dropdownText && $dropdownText === 'abbreviation'} {$lang} {elseif $dropdownText && $dropdownText === 'text'} {locale group='quiqqer/core' var='language.'|cat:{$lang}} {/if} {/if} {/strip} {/foreach}
{/if}
{/if}