tozi Posted January 3, 2014 Share Posted January 3, 2014 (edited) Hi all, Is it possible to format the flag in this form? I need only display iso of languages. blocklanguages.tpl <ul> {foreach from=$languages key=k item=language name="languages"} <li {if $language.iso_code == $lang_iso}class="selected_language"{/if}> {if $language.iso_code != $lang_iso} {assign var=indice_lang value=$language.id_lang} {if isset($lang_rewrite_urls.$indice_lang)} <a href="{$lang_rewrite_urls.$indice_lang|escape:htmlall}" title="{$language.name}"> {else} <a href="{$link->getLanguageLink($language.id_lang)|escape:htmlall}" title="{$language.name}"> {/if} {/if} {$language.name} {if $language.iso_code != $lang_iso} </a> {/if} </li> {/foreach} </ul> Edited January 3, 2014 by tozi (see edit history) Link to comment Share on other sites More sharing options...
CartExpert.net Posted January 3, 2014 Share Posted January 3, 2014 Hi. <ul> {foreach from=$languages key=k item=language name="languages"} <li {if $language.iso_code == $lang_iso}class="selected_language"{/if}> {if $language.iso_code != $lang_iso} {assign var=indice_lang value=$language.id_lang} {if isset($lang_rewrite_urls.$indice_lang)} <a href="{$lang_rewrite_urls.$indice_lang|escape:htmlall}" title="{$language.name}"> {else} <a href="{$link->getLanguageLink($language.id_lang)|escape:htmlall}" title="{$language.name}"> {/if} {/if} {$language.iso_code} {if $language.iso_code != $lang_iso} </a> {/if} </li> {/foreach} </ul> Regards.Robin.The CartExpert Team Link to comment Share on other sites More sharing options...
tozi Posted January 3, 2014 Author Share Posted January 3, 2014 Great. Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now