Overview

Packages

  • admin
  • classes
    • media
  • CodeIgniter
    • Libraries
  • core
  • functions
  • JSMin
  • None
  • OpenID
  • PHP
  • PHPMailer
  • plugins
    • admin
    • development
    • feed
    • mail
    • media
    • misc
    • seo
    • spam
    • uploader
    • users
    • zenpage
    • zenphoto
      • news
  • Services
    • JSON

Classes

  • CI_jsmin
  • CI_load
  • codeIgniter_kludge
  • comment_form
  • contactformOptions
  • GoogleMap
  • hitcounter
  • jquery_rating
  • menu_manager
  • mobile
  • mobileTheme
  • multipleLayoutOptions
  • pagedThumbsNav
  • pagedthumbsOptions
  • print_album_menu
  • tagsuggest
  • TextObject
  • zenpagecms

Functions

  • addGeoCoord
  • checkChosenItemStatus
  • checkChosenMenuset
  • checkIfNew
  • checkLayoutUseForImages
  • checkParentLayouts
  • checkRequiredField
  • checkSelectedAlbum
  • copyLayoutSelection
  • createMenuIfNotExists
  • createRelatedItemsResultArray
  • deleteLayoutSelection
  • get_instance
  • getAlbumGeodata
  • getAlbumStatistic
  • getAllTagsFromAlbum
  • getAllTagsFromAlbum_multi_unique
  • getAllTagsFromZenpage
  • getCurrentMenuItem
  • getField
  • getGeoCoord
  • getHitcounter
  • getImageGeodata
  • getImageStatistic
  • getItem
  • getItemTitleAndURL
  • getLayout
  • getLayoutSelector
  • getMenuFromLink
  • getMenuItemChilds
  • getMenuItems
  • getMenumanagerPredicessor
  • getMenumanagerSuccessor
  • getMenuVisibility
  • getNewsArchiveURL
  • getNewsIndexURL
  • getNumAllSubalbums
  • getParentMenuItems
  • getRating
  • getRelatedItems
  • getSelectedLayout
  • inventMenuItem
  • layoutSelector
  • layoutSelector_album
  • log_message
  • menu_admin_toolbox_global
  • menu_tabs
  • omsAdditions
  • printAlbumMenu
  • printAlbumMenuJump
  • printAlbumMenuList
  • printAlbumMenuListAlbum
  • printAlbumStatistic
  • printAlbumStatisticItem
  • printAllTags
  • printAllTagsFromAlbum
  • printAllTagsFromZenpage
  • printCommentForm
  • printContactForm
  • printCustomMenu
  • printGoogleMap
  • printImageStatistic
  • printLatestAlbums
  • printLatestImages
  • printLatestImagesByDate
  • printLatestImagesByMtime
  • printLatestUpdatedAlbums
  • printMenuemanagerPageList
  • printMenuemanagerPageListWithNav
  • printMenumanagerBreadcrumb
  • printMenumanagerNextLink
  • printMenumanagerPrevLink
  • printMostRatedAlbums
  • printMostRatedImages
  • printPagedThumbsNav
  • printPopularAlbums
  • printPopularImages
  • printRating
  • printRelatedItems
  • printTopRatedAlbums
  • printTopRatedImages
  • saveLayoutSelection
  • saveZenphotoLayoutSelection
  • showOrNotShowField
  • submenuOf
  • tagSuggestJS
  • tagSuggestJS_admin
  • tagSuggestJS_frontend
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated

Class mobile

Mobile Detect Library

Motto: "Every business should have a mobile detection script to detect mobile readers"

Mobile_Detect is a lightweight PHP class for detecting mobile devices (including tablets). It uses the User-Agent string combined with specific HTTP headers to detect the mobile environment.

Mobile_Detect
Extended by mobile
Package: plugins
License: and contributions have 'MIT License' More details: https://github.com/serbanghita/Mobile-Detect/blob/master/LICENSE.txt
Author:

Current authors: Serban Ghita serbanghita@gmail.com Nick Ilyin nick.ilyin@gmail.com

         Original author: Victor Stanciu <vic.stanciu@gmail.com>

Version: 2.8.12
Link:

Homepage: http://mobiledetect.net GitHub Repo: https://github.com/serbanghita/Mobile-Detect Google Code: http://code.google.com/p/php-mobile-detect/ README: https://github.com/serbanghita/Mobile-Detect/blob/master/README.md HOWTO: https://github.com/serbanghita/Mobile-Detect/wiki/Code-examples


Located at zp-extensions/mobileTheme.php
Methods summary
public
# __construct( array $headers,…, string $userAgent,… )

Construct an instance of this class.

Construct an instance of this class.

Parameters

$headers,…

Specify the headers as injection. Should be PHP SERVER flavored. If left empty, will use the global _SERVER['HTTP*'] vars instead.

$userAgent,…

Inject the User-Agent header. If null, will use HTTP_USER_AGENT from the $headers array instead.

Overrides

Mobile_Detect::__construct()
public boolean
# isMobile( null $userAgent = NULL, null $httpHeaders = NULL )

(non-PHPdoc)

(non-PHPdoc)

Parameters

$userAgent
deprecated
$httpHeaders
deprecated

Returns

boolean

See

Mobile_Detect::isMobile()

Overrides

Mobile_Detect::isMobile()
public boolean
# isTablet( string $userAgent = NULL, array $httpHeaders = NULL )

(non-PHPdoc)

(non-PHPdoc)

Parameters

$userAgent
deprecated
$httpHeaders
deprecated

Returns

boolean

See

Mobile_Detect::isTablet()

Overrides

Mobile_Detect::isTablet()
Methods inherited from Mobile_Detect
__call(), checkHttpHeadersForMobile(), getBrowsers(), getHttpHeader(), getHttpHeaders(), getMatchesArray(), getMatchingRegex(), getMobileDetectionRules(), getMobileDetectionRulesExtended(), getMobileHeaders(), getOperatingSystems(), getPhoneDevices(), getProperties(), getRules(), getScriptVersion(), getTabletDevices(), getUaHttpHeaders(), getUserAgent(), getUserAgents(), getUtilities(), is(), match(), matchDetectionRulesAgainstUA(), matchUAAgainstKey(), mobileGrade(), prepareVersionNo(), setDetectionType(), setHttpHeaders(), setUserAgent(), version()
Constants inherited from Mobile_Detect
DETECTION_TYPE_EXTENDED, DETECTION_TYPE_MOBILE, MOBILE_GRADE_A, MOBILE_GRADE_B, MOBILE_GRADE_C, VER, VERSION, VERSION_TYPE_FLOAT, VERSION_TYPE_STRING
Properties inherited from Mobile_Detect
$browsers, $cache, $detectionType, $httpHeaders, $matchesArray, $matchingRegex, $mobileHeaders, $operatingSystems, $phoneDevices, $properties, $tabletDevices, $uaHttpHeaders, $userAgent, $utilities
Zenphoto doc API documentation generated by ApiGen