{assign var=siteLang value=$Project->getLang()} {assign var=all value=$this->getAttribute('all')} {assign var=path value=$this->getAttribute('flagFolderPath')} {if count($langs) > 1} {strip}
{foreach from=$langs item=lang} {if $all || $siteLang != $lang} {assign var=activeLang value=''} {if $siteLang == $lang} {assign var=activeLang value='active'} {/if} {if $Site->getId($lang)} {else} {/if} {if $this->getAttribute('showFlags')} {/if} {if $this->getAttribute('showText')} {$lang} {/if} {/if} {/foreach}
{/strip} {/if}