Changeset 809392
- Timestamp:
- 11/23/2013 08:13:33 PM (12 years ago)
- Location:
- wpsmart-mobile/trunk
- Files:
-
- 3 edited
-
includes/defaults.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
wpsmart.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wpsmart-mobile/trunk/includes/defaults.php
r807300 r809392 47 47 global $wps_user_agents; 48 48 $wps_user_agents = array( 49 'iPhone', 50 'iPod', 51 'Android', 52 'Windows Phone', 53 'Windows Mobile', 54 'BlackBerry' 49 'iphone', 50 'ipod', 51 'android', 52 'mobile safari', 53 'mobile', 54 'windows phone', 55 'windows mobile', 56 'blackberry' 55 57 ); 56 58 ?> -
wpsmart-mobile/trunk/readme.txt
r807300 r809392 35 35 == Changelog == 36 36 37 = Version 1.0.3.1 = 38 39 * Leftover bug fixes from previous release 40 * Added: Additional user-agents added 41 37 42 = Version 1.0.3 = 38 43 -
wpsmart-mobile/trunk/wpsmart.php
r809391 r809392 7 7 Plugin URI: http://www.wpsmart.com 8 8 Description: Present your Wordpress site in a beautiful theme optimized for touch-based smartphones 9 Version: 1.0.3 9 Version: 1.0.3.1 10 10 Author: WPSmart 11 11 Author URI: http:fwww.wpsmart.com/mobile … … 13 13 */ 14 14 15 define("WPSMART_VERSION", '1.0.3 ');15 define("WPSMART_VERSION", '1.0.3.1'); 16 16 define("WPSMART_BASE_THEME", dirname(__FILE__) . '/themes/base'); 17 17 … … 132 132 add_action( 'wp_footer', array( &$this, 'wps_view_mobile_site' ) ); 133 133 } else { 134 $server_user_agent = $_SERVER['HTTP_USER_AGENT'];134 $server_user_agent = strtolower($_SERVER['HTTP_USER_AGENT']); 135 135 136 foreach( $wps_user_agents as $user_agent ) { 136 foreach( $wps_user_agents as $user_agent ) { 137 137 if( preg_match( "/$user_agent/", $server_user_agent) ) { 138 138 $this->wps_show_mobile = true;
Note: See TracChangeset
for help on using the changeset viewer.