Newer
Older
{assign var=Site value=$this->getAttribute('Site')}
{assign var=siteLang value=$Project->getLang()}
{assign var=path value=$this->getAttribute('flagFolderPath')}
{if count($langs) > 1}
<div class="quiqqer-control-languageswitch-dropdown quiqqer-control-languageswitch-dropdown__withArrow">
<div class="quiqqer-control-languageswitch-dropdown-button {if !$showDropdown}inactive{/if}">
{if $buttonShowFlag}
<span class="quiqqer-control-languageswitch-dropdown-icon">
<img src="{$smarty.const.URL_BIN_DIR}16x16/flags/{$siteLang}.png" />
{if $buttonText && $buttonText === 'abbreviation'}
<span class="quiqqer-control-languageswitch-dropdown-lang quiqqer-control-languageswitch-dropdown-lang__abbreviation">
{elseif $buttonText && $buttonText === 'text'}
<span class="quiqqer-control-languageswitch-dropdown-lang quiqqer-control-languageswitch-dropdown-lang__text">
{locale group='quiqqer/quiqqer' var='language.'|cat:{$siteLang}}
</span>
{if $showDropdown && $showArrow}
<div class="quiqqer-control-languageswitch-dropdown-arrow fa fa-angle-down"></div>
{/if}
</div>
{if $showDropdown}
<div class="quiqqer-control-languageswitch-dropdown-dd {$dropdownPosition}" style="display: none;">
{strip}
{if $Site->existLang($lang)}
<a class="quiqqer-control-languageswitch-dropdown-dd-entry {if $siteLang == $lang}inactive{/if}"
href="{url id=$Site->getId( $lang ) lang=$lang}">
{if $dropdownShowFlag}
<img class="quiqqer-control-languageswitch-dropdown-dd-icon" src="{$path}{$lang}.png"/>
{/if}
{if $dropdownText && $dropdownText === 'abbreviation'}
<span class="quiqqer-control-languageswitch-dropdown-dd-lang quiqqer-control-languageswitch-dropdown-dd-lang__abbreviation">
{$lang}
</span>
{elseif $dropdownText && $dropdownText === 'text'}
<span class="quiqqer-control-languageswitch-dropdown-dd-lang quiqqer-control-languageswitch-dropdown-dd-lang__text">
{locale group='quiqqer/quiqqer' var='language.'|cat:{$lang}}
</span>
{/if}
</a>
{/strip}