Jump to content

[RESOLU] Image différente suivant la langue quand elles sont appelées dans le fichier global.css


Recommended Posts

Bonjour,

J'utilise le bloc permanentlinks pour lequel les images sont appelées dans le fichier global.css et non dans le fichier tpl.

Et c'est bien là le problème...
En effet, je sais comment faire pour que l'image change en fonction de la langue lorsqu'elle est appelée dans les fichiers tpl mais comment faire lorsque l'image est définie en background dans le fichier global.css ?

Est-ce possible ?

Merci d'avance :)

Link to comment
Share on other sites

Hello,

En gros, il suffit de modifier tes css comme ceci:

/* images en Français */
#header_links #header_link_sitemap_fr a { background-image: url('../img/icon/sitemap.gif') }
#header_links #header_link_contact_fr a { background-image: url('../img/icon/contact.gif') }
#header_links #header_link_bookmark_fr a { background-image: url('../img/icon/star.gif') }

/*images en Anglais*/
#header_links #header_link_sitemap_en a { background-image: url('../img/icon/sitemap_en.gif') }
#header_links #header_link_contact_en a { background-image: url('../img/icon/contact_en.gif') }
#header_links #header_link_bookmark_en a { background-image: url('../img/icon/star_en.gif') }



Puis dans le module au niveau du tpl faire ceci

><!-- Block permanent links module HEADER -->
</pre>
<ul>
{l s='contact' mod='blockpermanentlinks'}
{l s='sitemap' mod='blockpermanentlinks'}

       [removed]writeBookmarkLink('{$come_from}', '{$shop_name|addslashes|addslashes}', '{l s='bookmark' mod='blockpermanentlinks'}');[removed]

</ul>
<br><!-- /Block permanent links module HEADER 



J'ai juste rajouté _{$lang_iso}

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