Jump to content

[ RESOLU ]Module s3sliders + langue multiple


QuickTel

Recommended Posts

j'ai apparemment trouver une solution je ne sais pas si c'est très correct mais cela fonctionne (en locale)

ci-dessous vous trouverez le code avec les commentaires :

function hookheaderanim($params)// hook perso
   {        
       {
           {
               global $cookie, $smarty;
               $smarty->assign(array(                                        
                   'this_path' => $this->_path
               ));
               $iso = Language::getIsoById(intval($cookie->id_lang));// ligne ajouté

               return $this->display(__FILE__, 's3slider_'.$iso.'.tpl');// ligne modifier
               /*return $this->display(__FILE__, 's3slider.tpl'); code de base */
           }
       }
       return false;
   }



Et il faut donc créer autant de fichier s3slider_"code iso".tpl

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