{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} {assign var=siteId value=1} {if $Site->getId($lang)} {assign var=siteId value=$Site->getId($lang)} {/if} {if $this->getAttribute('showFlags')} {/if} {if $this->getAttribute('showText')} {$lang} {/if} {/if} {/foreach}
{/strip} {/if}