Changeset 1399441
- Timestamp:
- 04/19/2016 02:38:42 PM (10 years ago)
- Location:
- netbiscuits-device-detection
- Files:
-
- 2 edited
- 3 copied
-
tags/1.7 (copied) (copied from netbiscuits-device-detection/trunk)
-
tags/1.7/nb-dd.php (copied) (copied from netbiscuits-device-detection/trunk/nb-dd.php) (6 diffs)
-
tags/1.7/readme.txt (copied) (copied from netbiscuits-device-detection/trunk/readme.txt) (2 diffs)
-
trunk/nb-dd.php (modified) (6 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
netbiscuits-device-detection/tags/1.7/nb-dd.php
r1388197 r1399441 3 3 Plugin Name: Netbiscuits Device Detection 4 4 Description: Take advantage of the world's largest device database, within your server code, by adding Netbiscuits Device Detection to your site. Make intelligent, device-specific adaptations to your pages before sending them to the user's device; send only what they need, and nothing they don't. 5 Version: 1. 65 Version: 1.7 6 6 Author: Netbiscuits GmbH 7 7 Text Domain: nb_device_detection … … 20 20 * 21 21 * @since 1.0.0 22 * @var string22 * @var string 23 23 */ 24 24 protected $version = '2.0.0'; … … 208 208 // make sure we have an account set-up 209 209 if ( !$client_key || !$account || !$profile ) { 210 return;210 return; 211 211 } 212 212 … … 386 386 * @since 1.0.0 387 387 */ 388 public function __get($property) { 389 if (property_exists($this, $property)) { 390 return $this->$property; 391 } else { 392 return "Unknown"; 393 } 394 } 388 395 // browser parameteres 389 396 public function BrowserCanTelMakeCall() { … … 472 479 $devicetype = 'desktop'; 473 480 } 474 if (($devicetype === 'Mobile Phone' || $ this->devicetype === 'MediaPlayer') && $this->isSmartphone()) {481 if (($devicetype === 'Mobile Phone' || $devicetype === 'MediaPlayer') && $this->isSmartphone()) { 475 482 $devicetype = 'smartphone'; 476 483 } 477 if (($devicetype === 'Mobile Phone' || $ this->devicetype === 'MediaPlayer') && !$this->isSmartphone()) {484 if (($devicetype === 'Mobile Phone' || $devicetype === 'MediaPlayer') && !$this->isSmartphone()) { 478 485 $devicetype = 'featurephone'; 479 486 } … … 548 555 // For older code 549 556 function dcs() { 550 $dcs = dd::get_instance();551 $GLOBALS['DCS'] = $dcs;552 $GLOBALS['dd'] = $dcs;553 return $dcs;557 $dcs = dd::get_instance(); 558 $GLOBALS['DCS'] = $dcs; 559 $GLOBALS['dd'] = $dcs; 560 return $dcs; 554 561 } 555 562 556 563 // New API 557 564 function dd() { 558 $dd = DCS::get_instance();559 $GLOBALS['dd'] = $dd;560 return $dd;565 $dd = DCS::get_instance(); 566 $GLOBALS['dd'] = $dd; 567 return $dd; 561 568 } -
netbiscuits-device-detection/tags/1.7/readme.txt
r1388197 r1399441 6 6 Requires at least: 3.1 7 7 Tested up to: 4.4.2 8 Stable tag: 1. 68 Stable tag: 1.7 9 9 Text Domain: nb_device_detection 10 10 License: GPLv2 or later … … 51 51 == Changelog == 52 52 53 = 1.7 54 Added __get method to handle any missing params 55 53 56 = 1.5 54 57 Cleaned dupe appearance in plugins admin screen, synced version numbers -
netbiscuits-device-detection/trunk/nb-dd.php
r1388197 r1399441 3 3 Plugin Name: Netbiscuits Device Detection 4 4 Description: Take advantage of the world's largest device database, within your server code, by adding Netbiscuits Device Detection to your site. Make intelligent, device-specific adaptations to your pages before sending them to the user's device; send only what they need, and nothing they don't. 5 Version: 1. 65 Version: 1.7 6 6 Author: Netbiscuits GmbH 7 7 Text Domain: nb_device_detection … … 20 20 * 21 21 * @since 1.0.0 22 * @var string22 * @var string 23 23 */ 24 24 protected $version = '2.0.0'; … … 208 208 // make sure we have an account set-up 209 209 if ( !$client_key || !$account || !$profile ) { 210 return;210 return; 211 211 } 212 212 … … 386 386 * @since 1.0.0 387 387 */ 388 public function __get($property) { 389 if (property_exists($this, $property)) { 390 return $this->$property; 391 } else { 392 return "Unknown"; 393 } 394 } 388 395 // browser parameteres 389 396 public function BrowserCanTelMakeCall() { … … 472 479 $devicetype = 'desktop'; 473 480 } 474 if (($devicetype === 'Mobile Phone' || $ this->devicetype === 'MediaPlayer') && $this->isSmartphone()) {481 if (($devicetype === 'Mobile Phone' || $devicetype === 'MediaPlayer') && $this->isSmartphone()) { 475 482 $devicetype = 'smartphone'; 476 483 } 477 if (($devicetype === 'Mobile Phone' || $ this->devicetype === 'MediaPlayer') && !$this->isSmartphone()) {484 if (($devicetype === 'Mobile Phone' || $devicetype === 'MediaPlayer') && !$this->isSmartphone()) { 478 485 $devicetype = 'featurephone'; 479 486 } … … 548 555 // For older code 549 556 function dcs() { 550 $dcs = dd::get_instance();551 $GLOBALS['DCS'] = $dcs;552 $GLOBALS['dd'] = $dcs;553 return $dcs;557 $dcs = dd::get_instance(); 558 $GLOBALS['DCS'] = $dcs; 559 $GLOBALS['dd'] = $dcs; 560 return $dcs; 554 561 } 555 562 556 563 // New API 557 564 function dd() { 558 $dd = DCS::get_instance();559 $GLOBALS['dd'] = $dd;560 return $dd;565 $dd = DCS::get_instance(); 566 $GLOBALS['dd'] = $dd; 567 return $dd; 561 568 } -
netbiscuits-device-detection/trunk/readme.txt
r1388197 r1399441 6 6 Requires at least: 3.1 7 7 Tested up to: 4.4.2 8 Stable tag: 1. 68 Stable tag: 1.7 9 9 Text Domain: nb_device_detection 10 10 License: GPLv2 or later … … 51 51 == Changelog == 52 52 53 = 1.7 54 Added __get method to handle any missing params 55 53 56 = 1.5 54 57 Cleaned dupe appearance in plugins admin screen, synced version numbers
Note: See TracChangeset
for help on using the changeset viewer.