Ouhlala... ça pique les yeux ! Il y a une fonction dans l'éditeur de message sur le forum pour mettre en forme le code hein... Mais bref, voici le code corrigé :
<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'}"> <span class="expand-more"><img src="{$urls.img_lang_url}{$current_language.id_lang}.jpg" alt="{$language.iso_code}"/> {$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 src="{$urls.img_lang_url}{$current_language.id_lang}.jpg" alt="{$language.iso_code}"/> {$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}><img src="{$urls.img_lang_url}{$language.id_lang}.jpg" alt="{$language.iso_code}"/> {$language.name_simple}</option> {/foreach} </select> </div> </div> </div>
En gros il faut utiliser les variables mises à disposition par Prestashop