juanunlin Posted May 18, 2015 Share Posted May 18, 2015 hola estoy intentando poner el nombre completo del idioma, lo tenia en un despegable, pero ya he conseguido ponerlos uno al lado del otro, he cambioa lenguaje.iso por name pero no hace nada, el codigo que tengo actualmente es blocklanguajes del template {if count($languages) > 1}<li class="dropdown" id="languages-block-top"> {foreach from=$languages key=k item=language name="languages"} {if $language.iso_code == $lang_iso} <a class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" href="#a"> {$language.iso_code|regex_replace:"/\s.*$/":""} <i class="fa fa-angle-down fa-fw"></i> </a> {/if} {/foreach} <ul id="first-languages" class="dropdown-menu" role="menu"> {foreach from=$languages key=k item=language name="languages"} <li {if $language.iso_code == $lang_iso}class="selected"{/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:'html':'UTF-8'}" title="{$language.name}"> {else} <a href="{$link->getLanguageLink($language.id_lang)|escape:'html':'UTF-8'}" title="{$language.name}"> {/if} {/if} <span>{$language.iso_code|regex_replace:"/\s.*$/":""}</span> {if $language.iso_code != $lang_iso} </a> {/if} </li> {/foreach} </ul></li>{/if} blocklanguaje de prestashop <!-- Block languages module -->{if count($languages) > 1}<div id="languages_block_top"> <div id="countries"> {* @todo fix display current languages, removing the first foreach loop *}{foreach from=$languages key=k item=language name="languages"} {if $language.iso_code == $lang_name} <p class="selected_language"> <img src="{$img_lang_dir}{$language.id_lang}.jpg" alt="{$language.name}" width="30" height="11" /> </p> {/if}{/foreach} <ul id="first-languages" class="countries_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_name} {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} <img src="{$img_lang_dir}{$language.id_lang}.jpg" alt="{$language.name}" width="16" height="11" /> {if $language.iso_code != $lang_iso} </a> {/if} </li> {/foreach} </ul> </div></div><script type="text/javascript">$(document).ready(function () { $("#countries").mouseover(function(){ $(this).addClass("countries_hover"); $(".countries_ul").addClass("countries_ul_hover"); }); $("#countries").mouseout(function(){ $(this).removeClass("countries_hover"); $(".countries_ul").removeClass("countries_ul_hover"); });});</script>{/if}<!-- /Block languages module -->si alguien me puede ayudar se lo agradeceria mucho. Link to comment Share on other sites More sharing options...
juanunlin Posted May 18, 2015 Author Share Posted May 18, 2015 si por supuesto, 608397222 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