{block name=boxes_boxLanguage_mobile}
<div class="dropdown">
    <a class="btn btn-default dropdown-toggle" id="language-selection-mobile" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" href="#">
        <span class="flag-icon flag-icon-{if $selected_lang eq 'en'}gb{else}{$selected_lang}{/if} flag-gray"></span>
        <span class="shop-nav-titel">{foreach name=aussen item=box_data from=$lang_data}{if $box_data.code eq $selected_lang}{$box_data.name}{elseif $box_data.code eq $language}{$box_data.name}{/if}{/foreach}</span>
        <span class="caret"></span>
    </a>
    <ul class="dropdown-menu" aria-labelledby="language-selection" onchange="location.href=this.options[this.selectedIndex].value">
        {foreach name=aussen item=box_data from=$lang_data}
        <li {if !$selected_lang && $language == $box_data.code}class="selected"{elseif $selected_lang && $selected_lang == $box_data.code}class="selected"{/if}>
            <a href="{link page='dynamic' params='action=change_lang&new_lang' params_value=$box_data.code}">
                <span class="flag-icon flag-icon-{if $box_data.code eq 'en'}gb{else}{$box_data.code}{/if}"></span> {$box_data.name}
            </a>
        </li>
        {/foreach}
    </ul>
</div>
{/block}