botmez Posted May 26, 2011 Share Posted May 26, 2011 BonjourJ'aimerai switcher de thème en fonction d'une naviguation iphone ou non...Et je pense que tout se passe ds le fichier "settings.inc.php"Voici un debut de if, avec le module "PSF theme switcher"...mais j'aimerai l'adapter pour une naviguation iphone... <?phpdefine('__PS_BASE_URI__', '/');if (!isset($_COOKIE['psf_themes'])) { define('_THEME_NAME_', 'defaulttheme'); }elseif (!file_exists( realpath(dirname(__FILE__).'/..').'/themes/'.$_COOKIE['psf_themes'] )) { define('_THEME_NAME_', 'chocolatesummer'); }else { define('_THEME_NAME_', $_COOKIE['psf_themes']); } Comment faire ?Cdlt,Nadine Link to comment Share on other sites More sharing options...
botmez Posted May 30, 2011 Author Share Posted May 30, 2011 Pas de réponses ? 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