Jump to content

[SOLVED] language format


Recommended Posts

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>

post-32755-0-34459700-1388747128.png

Edited by tozi (see edit history)
Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...