Plugin Directory

Changeset 1388197


Ignore:
Timestamp:
04/06/2016 01:05:58 PM (10 years ago)
Author:
Netbiscuits
Message:

updating smartphone param, adding imagemaxwidth/height

Location:
netbiscuits-device-detection
Files:
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • netbiscuits-device-detection/tags/1.6/nb-dd.php

    r1372870 r1388197  
    33   Plugin Name: Netbiscuits Device Detection
    44   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.5
     5   Version: 1.6
    66   Author: Netbiscuits GmbH
    77   Text Domain: nb_device_detection
     
    8888
    8989    private $header_blacklist = array (
    90         // added to force gzip with the header
    9190        'Accept-Encoding',
    9291        'Host',
     
    107106    */
    108107    private function isSmartphone() {
    109         $os = strtolower($this->response->device->operatingsystem);
     108        /*$os = strtolower($this->response->device->operatingsystem);
    110109        $osversion = strtolower($this->response->device->operatingsystemversion);
    111110        // Smartphone whitelist
     
    121120        } else {
    122121            return false;
    123         }
     122        }*/
     123        return ( $this->response->device->issmartphone === true ? true : false );
    124124    }
    125125
     
    509509        //$this->flexboxtweener
    510510        //$this->flexwrap
    511 /*
    512  ** need to clarify the values for this parameter before exposing...
    513  ** other possible parameters: browserimagemax__, hardwaredisplay__, browserusable__ (dynamic)
    514511        $this->imagemaxwidth = $this->response->image->maxwidth; // Numeric
    515512        $this->imagemaxheight = $this->response->image->maxheight; // Numeric
    516 */
    517513        //$this->pixelratio
    518514        //$this->picture
  • netbiscuits-device-detection/tags/1.6/readme.txt

    r1372870 r1388197  
    66Requires at least: 3.1
    77Tested up to: 4.4.2
    8 Stable tag: 1.5
     8Stable tag: 1.6
    99Text Domain: nb_device_detection
    1010License: GPLv2 or later
  • netbiscuits-device-detection/trunk/nb-dd.php

    r1372870 r1388197  
    33   Plugin Name: Netbiscuits Device Detection
    44   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.5
     5   Version: 1.6
    66   Author: Netbiscuits GmbH
    77   Text Domain: nb_device_detection
     
    8888
    8989    private $header_blacklist = array (
    90         // added to force gzip with the header
    9190        'Accept-Encoding',
    9291        'Host',
     
    107106    */
    108107    private function isSmartphone() {
    109         $os = strtolower($this->response->device->operatingsystem);
     108        /*$os = strtolower($this->response->device->operatingsystem);
    110109        $osversion = strtolower($this->response->device->operatingsystemversion);
    111110        // Smartphone whitelist
     
    121120        } else {
    122121            return false;
    123         }
     122        }*/
     123        return ( $this->response->device->issmartphone === true ? true : false );
    124124    }
    125125
     
    509509        //$this->flexboxtweener
    510510        //$this->flexwrap
    511 /*
    512  ** need to clarify the values for this parameter before exposing...
    513  ** other possible parameters: browserimagemax__, hardwaredisplay__, browserusable__ (dynamic)
    514511        $this->imagemaxwidth = $this->response->image->maxwidth; // Numeric
    515512        $this->imagemaxheight = $this->response->image->maxheight; // Numeric
    516 */
    517513        //$this->pixelratio
    518514        //$this->picture
  • netbiscuits-device-detection/trunk/readme.txt

    r1372870 r1388197  
    66Requires at least: 3.1
    77Tested up to: 4.4.2
    8 Stable tag: 1.5
     8Stable tag: 1.6
    99Text Domain: nb_device_detection
    1010License: GPLv2 or later
Note: See TracChangeset for help on using the changeset viewer.