diff -r 2f6f6f7551ca -r 32102edaa81b web/wp-content/plugins/xilitheme-select/xilithemeselect.php --- a/web/wp-content/plugins/xilitheme-select/xilithemeselect.php Thu Sep 16 15:45:36 2010 +0000 +++ b/web/wp-content/plugins/xilitheme-select/xilithemeselect.php Mon Nov 19 18:26:13 2012 +0100 @@ -4,7 +4,7 @@ Plugin URI: http://dev.xiligroup.com/xilitheme-select/ Description: A plugin for WordPress that automatically redirects your blog's theme for optimized viewing on Apple's iPhone and iPod touch. Author: MS xiligroup dev -Version: 1.0.1 +Version: 1.0.3 Author URI: http://dev.xiligroup.com # inspired initially from iwphone from Robot Content - 2007 - (http://www.contentrobot.com) @@ -33,7 +33,7 @@ */ -define('XILITHEME_VER','1.0.1'); +define('XILITHEME_VER','1.0.3'); class xilithemeselector{ @@ -41,7 +41,7 @@ var $iphone = false; var $currentthemefolder; /*the normal theme used by default*/ var $newfolder; - var $listofdevices = array("iPhone","iPod"); /* if present selector is activated - can be upgraded !*/ + var $listofdevices = array("iPhone","iPod"); /* if present selector is activated - can be upgraded ! - iPad if you need !!*/ var $xitype; /*type of the selected device*/ var $xiversion; /*release of the selected device*/ /**/ @@ -118,7 +118,9 @@ function detectiPhone($query){ /* prepare target theme folders according options and test them */ - $this->currentthemefolder = str_replace(get_theme_root()."/","",get_template_directory()); + + $this->currentthemefolder = str_replace(get_theme_root()."/","",get_stylesheet_directory()); + if($this->isfullname) : /*test if theme with fullname exist*/ $curpath = get_theme_root()."/".$this->xilithemefullname; @@ -333,7 +335,14 @@

Xilitheme select Don't forget to upload a specific theme for ipod touch / iphone with a right folder's name in the wp-content/themes folder.
If an error occur, the current theme is displayed in ipod touch / iphone browser.","xilithemeselect"); ?>

-

".$this->currentthemefolder ?>.
+

".$theme_name ?>.
".$this->currentthemefolder.$this->xilithemeextension." "; $curpath = get_theme_root()."/".$this->currentthemefolder.$this->xilithemeextension; if (file_exists($curpath)) : @@ -387,7 +396,7 @@

-

xilitheme-select logo xilitheme-select - © xiligroup.com™ - msc 2007-9 - v.

+

xilitheme-select logo xilitheme-select - © dev.xiligroup.com™ - msc 2007-2012 - v.

cookienable = 1; /*0 to disable*/ /**** tag insertable in the theme's footer or elsewhere ****/ -/* example 1 (in browser): if (function_exists('the_xilithemelink')) the_xilithemelink('mobbro='); +/* example 1 (in browser): if (function_exists('the_xilithemelink')) the_xilithemelink('mobbro='); */ /* example 2 (in mobilebrowser): if (function_exists('the_xilithemelink')) the_xilithemelink('bro=naviguer en mode normal'); */