dimanche 24 mai 2009

Changer le logo dans Joomla en fontion de la langue avec Joomfish

Pour ce faire, il faut modifier le fichier index.php du template et tester le langage en cours avec des if.

<?php if($mosConfig_lang== french) : ?>
<div id="logo"><a href="http://monsite.com"><img width="282" height="100" align="bottom" src="http://monsite.com/images/stories/fr-fr-logo.png" alt="votre texte" /></a></div>
<?php endif; ?>
<?php if($mosConfig_lang== english) : ?>
<div id="logo"><a href="http://monsite.com/index.php/en"><img width="282" height="100" align="bottom" src="http://monsite.com/images/stories/en-gb-logo.png" alt="votre texte" /></a></div>
<?php endif; ?>

Aucun commentaire:

Enregistrer un commentaire