INSERIRE BANDIERA MENU LINGUA PRESTASHOP 1.7.x

Dal nostro sito raggiungere il percorso

themes/classic/modules/ps_languageselector/ps_languageselector.tpl 

e incollare il seguente codice:


<div id="_desktop_language_selector">
<div class="language-selector-wrapper">
<span id="language-selector-label" class="hidden-md-up">{l s='Language:' d='Shop.Theme.Global'}</span>
<div class="language-selector dropdown js-dropdown">
<button data-toggle="dropdown" class="hidden-sm-down btn-unstyle" aria-haspopup="true" aria-expanded="false" aria-label="{l s='Language dropdown' d='Shop.Theme.Global'}">
<img class="lang-flag" src="{$urls.img_lang_url}{$current_language.id_lang}.jpg"/>
<span class="expand-more">{$current_language.name_simple}</span>
<i class="material-icons expand-more"></i>
</button>
<ul class="dropdown-menu hidden-sm-down" aria-labelledby="language-selector-label">
{foreach from=$languages item=language}
<li {if $language.id_lang == $current_language.id_lang} class="current" {/if}>
<a href="{url entity='language' id=$language.id_lang}" class="dropdown-item"><img class="lang-flag" src="{$urls.img_lang_url}{$language.id_lang}.jpg"/>{$language.name_simple}</a>
</li>
{/foreach}
</ul>
<select class="link hidden-md-up" aria-labelledby="language-selector-label">
{foreach from=$languages item=language}
<option value="{url entity='language' id=$language.id_lang}"{if $language.id_lang == $current_language.id_lang} selected="selected"{/if}>{$language.name_simple}</option>
{/foreach}
</select>
</div>
</div>
</div>

Lascia un commento

Il tuo indirizzo email non sarà pubblicato.