Jump to content

Aligner 2 div situés dans 2 tpl différents (langue et votre compte)


Recommended Posts

Bonjour à tous,

Je souhaiterai que mes petits drapeaux de langues et "votre compte, bienvenue..." soient alignée sur une même ligne horizontale
Je les mets juste en dessous du bandeau (ou logo) en réglant les le global.css
Il y a un petit changement à faire dans les div, mais je tourne en rond...
Merci de votre aide ;)

blocklanguages.tpl

<!-- Block languages module -->


       {foreach from=$languages key=k item=language name="languages"}

               {if $language.iso_code != $lang_iso}getLanguageLink($language.id_lang, $language.name)}" title="{$language.name}">{/if}

               {if $language.iso_code != $lang_iso}{/if}

       {/foreach}


[removed]
   $('ul#first-languages li:not(.selected_language)').css('opacity', 0.3);
   $('ul#first-languages li:not(.selected_language)').hover(function(){ldelim}
       $(this).css('opacity', 1);
   {rdelim}, function(){ldelim}
       $(this).css('opacity', 0.3);
   {rdelim});
[removed]
<!-- /Block languages module -->



blockuserinfo.tpl

<!-- Block user information module HEADER -->



       {l s='Welcome' mod='blockuserinfo'},
       {if $logged}
{$customerName}({l s='Log out' mod='blockuserinfo'})
       {else}
{l s='Log in' mod='blockuserinfo'}
       {/if}



{l s='Cart:' mod='blockuserinfo'}
{if $cart_qties > 0}{$cart_qties}{/if}{l s='product' mod='blockuserinfo'}{l s='products' mod='blockuserinfo'}
{if $cart_qties > 0}{if $priceDisplay == 1}{convertPrice price=$cart->getOrderTotal(false, 4)}{else}{convertPrice price=$cart->getOrderTotal(true, 4)}{/if}{/if}
{l s='(empty)' mod='blockuserinfo'}

{l s='Your Account' mod='blockuserinfo'}


<!-- /Block user information module HEADER -->

Link to comment
Share on other sites

J'ai fait un truc mais c'est un peu gonflé...

blockuserinfo.tpl

<!-- Block user information module HEADER -->






       {foreach from=$languages key=k item=language name="languages"}

               {if $language.iso_code != $lang_iso}getLanguageLink($language.id_lang, $language.name)}" title="{$language.name}">{/if}

               {if $language.iso_code != $lang_iso}{/if}

       {/foreach}








       {l s='Welcome' mod='blockuserinfo'},
       {if $logged}
{$customerName}({l s='Log out' mod='blockuserinfo'})
       {else}
{l s='Log in' mod='blockuserinfo'}
       {/if}


{l s='Cart:' mod='blockuserinfo'}
{if $cart_qties > 0}{$cart_qties}{/if}{l s='product' mod='blockuserinfo'}{l s='products' mod='blockuserinfo'}
{if $cart_qties > 0}{if $priceDisplay == 1}{convertPrice price=$cart->getOrderTotal(false, 4)}{else}{convertPrice price=$cart->getOrderTotal(true, 4)}{/if}{/if}
{l s='(empty)' mod='blockuserinfo'}

{l s='Your Account' mod='blockuserinfo'}

 
<!-- /Block user information module HEADER -->
[removed]
   $('ul#first-languages li:not(.selected_language)').css('opacity', 0.3);
   $('ul#first-languages li:not(.selected_language)').hover(function(){ldelim}
       $(this).css('opacity', 1);
   {rdelim}, function(){ldelim}
       $(this).css('opacity', 0.3);
   {rdelim});
[removed]



Et j'ai tout effacé dans blocklangage.tpl
Cela marche, mais ce n'est pas très distingué...
Avez-vous une méthode moins invasive ?

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...