Changeset 1240305
- Timestamp:
- 09/08/2015 02:46:05 AM (11 years ago)
- Location:
- php-browser-detection/trunk
- Files:
-
- 3 edited
-
inc/tests.php (modified) (2 diffs)
-
php-browser-detection.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
php-browser-detection/trunk/inc/tests.php
r1240215 r1240305 13 13 */ 14 14 include_once('../../../../wp-blog-header.php'); 15 /* 16 function browser_detection_version($version) { 17 $version = 'http://browscap.org/stream?q=PHP_BrowsCapINI'; 18 return $version; 19 } 20 21 add_filter('php_browser_detection_version', 'browser_detection_version');*/ 22 15 23 if (array_key_exists('test-id', $_GET) && isset($_GET['test-id'])) { 16 24 $id = $_GET['test-id']; … … 19 27 } 20 28 $q = new WP_Query('page_id=' . $id); 29 21 30 get_header(); 31 22 32 ?> 23 33 <div id="main" class="site-main"> -
php-browser-detection/trunk/php-browser-detection.php
r1240215 r1240305 4 4 Plugin URI: http://wordpress.org/extend/plugins/php-browser-detection/ 5 5 Description: Use PHP to detect browsers for conditional CSS or to detect mobile phones. 6 Version: 3.1. 76 Version: 3.1.8 7 7 Author: Mindshare Studios, Inc. 8 8 Author URI: https://mind.sh/are … … 34 34 */ 35 35 36 // TODO refactor into class using object oriented code, filters aren't currently working 37 36 38 if (!defined('PBD_DIR_PATH')) { 37 39 define('PBD_DIR_PATH', plugin_dir_path(__FILE__)); // /.../wp-content/plugins/php-browser-detection/ 38 40 } 39 41 42 /** 43 * Global variable with browser information. 44 * 45 * @global 46 */ 47 $browser_info = array(); 48 49 /** 50 * PHP Browser Detection initialization 51 * 52 * @private 53 */ 54 40 55 require_once('inc/admin.php'); 41 56 require_once('lib/Browscap.php'); … … 44 59 45 60 require_once('inc/deprecated.php'); 46 require_once('inc/shortcodes.php');61 include_once('inc/shortcodes.php'); 47 62 48 63 /** … … 60 75 $browscap->remoteIniUrl = apply_filters('php_browser_detection_version', "http://browscap.org/stream?q=Lite_PHP_BrowsCapINI"); 61 76 62 //die(var_export($browscap->getBrowser(NULL, TRUE))); 77 // die(var_export($browscap->remoteIniUrl)); 78 // die(var_export($browscap->getBrowser(NULL, TRUE))); 79 63 80 return $browscap->getBrowser(NULL, TRUE); 64 81 } -
php-browser-detection/trunk/readme.txt
r1240215 r1240305 3 3 Donate link: http://mind.sh/are/donate/ 4 4 Tags: php, browser detection, browser, internet explorer, iphone, mobile, browscap, detection 5 Version: 3.1. 75 Version: 3.1.8 6 6 Tested up to: 4.3 7 Stable tag: 3.1. 77 Stable tag: 3.1.8 8 8 9 9 PHP Browser Detection is a WordPress plugin used to detect a user's browser. Please report any bugs on the support forums. … … 114 114 115 115 == Changelog == 116 117 = 3.1.8 = 118 * Add missing include file 119 * Confirm filters aren't working (needs refactor) 116 120 117 121 = 3.1.7 =
Note: See TracChangeset
for help on using the changeset viewer.