{block name=boxes_boxLanguage}
    <li>
        <a class="shop-nav-link dropdown link-no-td dropdown-toggle" id="language-selection" 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="{$box_data.link}">
                    <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>
    </li>
{/block}