Plugin Directory

Changeset 1240215


Ignore:
Timestamp:
09/07/2015 10:54:49 PM (11 years ago)
Author:
mindshare
Message:

3.1.7 - Ship

Location:
php-browser-detection
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • php-browser-detection/tags/3.1.7/inc/tests.php

    r1232639 r1240215  
    172172                        </div>
    173173
     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                                               &lt;p&gt;You are using Chrome 45 or above.&lt;/p&gt;
     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
    174192                    <?php endwhile; endif; ?>
    175193            </div>
  • php-browser-detection/tags/3.1.7/php-browser-detection.php

    r1232661 r1240215  
    44Plugin URI: http://wordpress.org/extend/plugins/php-browser-detection/
    55Description: Use PHP to detect browsers for conditional CSS or to detect mobile phones.
    6 Version: 3.1.6
     6Version: 3.1.7
    77Author: Mindshare Studios, Inc.
    88Author URI: https://mind.sh/are
     
    4444
    4545require_once('inc/deprecated.php');
     46require_once('inc/shortcodes.php');
    4647
    4748/**
     
    5960    $browscap->remoteIniUrl = apply_filters('php_browser_detection_version', "http://browscap.org/stream?q=Lite_PHP_BrowsCapINI");
    6061
     62    //die(var_export($browscap->getBrowser(NULL, TRUE)));
    6163    return $browscap->getBrowser(NULL, TRUE);
    6264}
     
    9496function is_browser($name = '', $version = '') {
    9597    global $browser_info;
     98
     99    $name = ucwords(trim($name));
    96100
    97101    if (isset($browser_info['Browser']) && (strpos($browser_info['Browser'], $name) !== FALSE)) {
  • php-browser-detection/tags/3.1.7/readme.txt

    r1232661 r1240215  
    33Donate link: http://mind.sh/are/donate/
    44Tags: php, browser detection, browser, internet explorer, iphone, mobile, browscap, detection
    5 Version: 3.1.6
     5Version: 3.1.7
    66Tested up to: 4.3
    7 Stable tag: 3.1.6
     7Stable tag: 3.1.7
    88
    99PHP Browser Detection is a WordPress plugin used to detect a user's browser. Please report any bugs on the support forums.
     
    8181
    8282`<?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`
    8398
    8499== Installation ==
     
    99114
    100115== Changelog ==
     116
     117= 3.1.7 =
     118* Added shortcodes
    101119
    102120= 3.1.6 =
  • php-browser-detection/trunk/inc/tests.php

    r1232639 r1240215  
    172172                        </div>
    173173
     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                                               &lt;p&gt;You are using Chrome 45 or above.&lt;/p&gt;
     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
    174192                    <?php endwhile; endif; ?>
    175193            </div>
  • php-browser-detection/trunk/php-browser-detection.php

    r1232661 r1240215  
    44Plugin URI: http://wordpress.org/extend/plugins/php-browser-detection/
    55Description: Use PHP to detect browsers for conditional CSS or to detect mobile phones.
    6 Version: 3.1.6
     6Version: 3.1.7
    77Author: Mindshare Studios, Inc.
    88Author URI: https://mind.sh/are
     
    4444
    4545require_once('inc/deprecated.php');
     46require_once('inc/shortcodes.php');
    4647
    4748/**
     
    5960    $browscap->remoteIniUrl = apply_filters('php_browser_detection_version', "http://browscap.org/stream?q=Lite_PHP_BrowsCapINI");
    6061
     62    //die(var_export($browscap->getBrowser(NULL, TRUE)));
    6163    return $browscap->getBrowser(NULL, TRUE);
    6264}
     
    9496function is_browser($name = '', $version = '') {
    9597    global $browser_info;
     98
     99    $name = ucwords(trim($name));
    96100
    97101    if (isset($browser_info['Browser']) && (strpos($browser_info['Browser'], $name) !== FALSE)) {
  • php-browser-detection/trunk/readme.txt

    r1232661 r1240215  
    33Donate link: http://mind.sh/are/donate/
    44Tags: php, browser detection, browser, internet explorer, iphone, mobile, browscap, detection
    5 Version: 3.1.6
     5Version: 3.1.7
    66Tested up to: 4.3
    7 Stable tag: 3.1.6
     7Stable tag: 3.1.7
    88
    99PHP Browser Detection is a WordPress plugin used to detect a user's browser. Please report any bugs on the support forums.
     
    8181
    8282`<?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`
    8398
    8499== Installation ==
     
    99114
    100115== Changelog ==
     116
     117= 3.1.7 =
     118* Added shortcodes
    101119
    102120= 3.1.6 =
Note: See TracChangeset for help on using the changeset viewer.