Changeset 1240215
- Timestamp:
- 09/07/2015 10:54:49 PM (11 years ago)
- Location:
- php-browser-detection
- Files:
-
- 6 edited
- 1 copied
-
tags/3.1.7 (copied) (copied from php-browser-detection/trunk)
-
tags/3.1.7/inc/tests.php (modified) (1 diff)
-
tags/3.1.7/php-browser-detection.php (modified) (4 diffs)
-
tags/3.1.7/readme.txt (modified) (3 diffs)
-
trunk/inc/tests.php (modified) (1 diff)
-
trunk/php-browser-detection.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
php-browser-detection/tags/3.1.7/inc/tests.php
r1232639 r1240215 172 172 </div> 173 173 174 <div style="padding:5px; margin:10px 0; border-radius:5px; background:#E6E6E6"> 175 <p>Shortcodes:</p> 176 177 <div class="post"><p>I've implemented 2 basic shortcodes, if you care to test the new version: 178 <a href="https://github.com/mindsharestudios/php-browser-detection/archive/master.zip" rel="nofollow">https://github.com/mindsharestudios/php-browser-detection/archive/master.zip</a></p> 179 <p>Show content to specific browsers:<br> 180 </p><pre><code>[is_browser name="chrome" version="45"] 181 <p>You are using Chrome 45 or above.</p> 182 [/is_browser]</code></pre> 183 <?php echo do_shortcode('[is_browser name="chrome" version="45"]<strong>You are using Chrome 45 or above.</strong>[/is_browser]'); ?> 184 <hr /> 185 <p>Output all browser info:<br></p> 186 <pre><code>[browser_info]</code></pre> 187 <?php echo do_shortcode('[browser_info]'); ?> 188 </div> 189 190 </div> 191 174 192 <?php endwhile; endif; ?> 175 193 </div> -
php-browser-detection/tags/3.1.7/php-browser-detection.php
r1232661 r1240215 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. 66 Version: 3.1.7 7 7 Author: Mindshare Studios, Inc. 8 8 Author URI: https://mind.sh/are … … 44 44 45 45 require_once('inc/deprecated.php'); 46 require_once('inc/shortcodes.php'); 46 47 47 48 /** … … 59 60 $browscap->remoteIniUrl = apply_filters('php_browser_detection_version', "http://browscap.org/stream?q=Lite_PHP_BrowsCapINI"); 60 61 62 //die(var_export($browscap->getBrowser(NULL, TRUE))); 61 63 return $browscap->getBrowser(NULL, TRUE); 62 64 } … … 94 96 function is_browser($name = '', $version = '') { 95 97 global $browser_info; 98 99 $name = ucwords(trim($name)); 96 100 97 101 if (isset($browser_info['Browser']) && (strpos($browser_info['Browser'], $name) !== FALSE)) { -
php-browser-detection/tags/3.1.7/readme.txt
r1232661 r1240215 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. 65 Version: 3.1.7 6 6 Tested up to: 4.3 7 Stable tag: 3.1. 67 Stable tag: 3.1.7 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. … … 81 81 82 82 `<?php $browser_info = php_browser_info(); ?>` 83 84 **Shortcodes:** 85 86 *Test for specific browsers:* 87 88 ` 89 [is_browser name="chrome" version="45"] 90 <p>You are using Chrome 45 or above.</p> 91 [/is_browser] 92 ` 93 94 *Output all browser info:* 95 ` 96 [browser_info] 97 ` 83 98 84 99 == Installation == … … 99 114 100 115 == Changelog == 116 117 = 3.1.7 = 118 * Added shortcodes 101 119 102 120 = 3.1.6 = -
php-browser-detection/trunk/inc/tests.php
r1232639 r1240215 172 172 </div> 173 173 174 <div style="padding:5px; margin:10px 0; border-radius:5px; background:#E6E6E6"> 175 <p>Shortcodes:</p> 176 177 <div class="post"><p>I've implemented 2 basic shortcodes, if you care to test the new version: 178 <a href="https://github.com/mindsharestudios/php-browser-detection/archive/master.zip" rel="nofollow">https://github.com/mindsharestudios/php-browser-detection/archive/master.zip</a></p> 179 <p>Show content to specific browsers:<br> 180 </p><pre><code>[is_browser name="chrome" version="45"] 181 <p>You are using Chrome 45 or above.</p> 182 [/is_browser]</code></pre> 183 <?php echo do_shortcode('[is_browser name="chrome" version="45"]<strong>You are using Chrome 45 or above.</strong>[/is_browser]'); ?> 184 <hr /> 185 <p>Output all browser info:<br></p> 186 <pre><code>[browser_info]</code></pre> 187 <?php echo do_shortcode('[browser_info]'); ?> 188 </div> 189 190 </div> 191 174 192 <?php endwhile; endif; ?> 175 193 </div> -
php-browser-detection/trunk/php-browser-detection.php
r1232661 r1240215 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. 66 Version: 3.1.7 7 7 Author: Mindshare Studios, Inc. 8 8 Author URI: https://mind.sh/are … … 44 44 45 45 require_once('inc/deprecated.php'); 46 require_once('inc/shortcodes.php'); 46 47 47 48 /** … … 59 60 $browscap->remoteIniUrl = apply_filters('php_browser_detection_version', "http://browscap.org/stream?q=Lite_PHP_BrowsCapINI"); 60 61 62 //die(var_export($browscap->getBrowser(NULL, TRUE))); 61 63 return $browscap->getBrowser(NULL, TRUE); 62 64 } … … 94 96 function is_browser($name = '', $version = '') { 95 97 global $browser_info; 98 99 $name = ucwords(trim($name)); 96 100 97 101 if (isset($browser_info['Browser']) && (strpos($browser_info['Browser'], $name) !== FALSE)) { -
php-browser-detection/trunk/readme.txt
r1232661 r1240215 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. 65 Version: 3.1.7 6 6 Tested up to: 4.3 7 Stable tag: 3.1. 67 Stable tag: 3.1.7 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. … … 81 81 82 82 `<?php $browser_info = php_browser_info(); ?>` 83 84 **Shortcodes:** 85 86 *Test for specific browsers:* 87 88 ` 89 [is_browser name="chrome" version="45"] 90 <p>You are using Chrome 45 or above.</p> 91 [/is_browser] 92 ` 93 94 *Output all browser info:* 95 ` 96 [browser_info] 97 ` 83 98 84 99 == Installation == … … 99 114 100 115 == Changelog == 116 117 = 3.1.7 = 118 * Added shortcodes 101 119 102 120 = 3.1.6 =
Note: See TracChangeset
for help on using the changeset viewer.