WordPress.org

Plugin Directory

Changeset 556856


Ignore:
Timestamp:
06/12/12 18:32:22 (5 years ago)
Author:
JonasVorwerk
Message:
 
Location:
mobile-theme-switcher/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • mobile-theme-switcher/trunk/mobile-theme-switch.php

    r528795 r556856  
    1414if($_GET['mobile'] == "off"){ 
    1515    $_SESSION[$mobilethemeswitch] = "off";  
    16     unset( $_SESSION[$mobilethemeswitch] );  
    1716} else if($_GET['mobile'] == "on"){ 
    18     $_SESSION[$$mobilethemeswitch] = "on"; 
     17    $_SESSION[$mobilethemeswitch] = "on"; 
    1918} 
    2019 
     
    2524$palmpre = strpos($_SERVER['HTTP_USER_AGENT'],"webOS"); 
    2625$berry = strpos($_SERVER['HTTP_USER_AGENT'],"BlackBerry"); 
    27 $iemobile = strpos($_SERVER['HTTP_USER_AGENT'],"iemobile"); 
     26$iemobile = ( strpos($_SERVER['HTTP_USER_AGENT'],"iemobile") || strpos($_SERVER['HTTP_USER_AGENT'],"IEMobile") ); 
    2827 
    29 if (($iphone || $android || $palmpre || $ipod || $berry || $iemobile == true) || $_SESSION[$mobilethemeswitch] == "on") {  
     28if ( ((($iphone || $android || $palmpre || $ipod || $berry !== FALSE || $iemobile) === true) || $_SESSION[$mobilethemeswitch] == "on") && $_SESSION[$mobilethemeswitch] != "off" ) {  
    3029    add_filter('stylesheet', 'getTemplateStyle'); 
    3130    add_filter('template', 'getTemplateStyle'); 
  • mobile-theme-switcher/trunk/readme.txt

    r528862 r556856  
    33Tags: theme, template, mobile, iphone, android 
    44Requires at least: 2.7 
    5 Tested up to: 3.3.4 
    6 Stable tag: 0.55 
     5Tested up to: 3.3.2 
     6Stable tag: 0.6 
    77 
    88== Description == 
     
    2525== Changelog == 
    2626 
     27= 0.6 = 
     28* Mobile on/off check fixen, thanks to Alfred Gunnarsson 
     29* IEMobile added for some Windows mobile users, thanks to Alfred Gunnarsson 
     30* BlackBerry 5.0 ( and earlier ) isue fixed, thanks to Colin Smillie 
    2731 
    2832= 0.55 = 
Note: See TracChangeset for help on using the changeset viewer.