Extensions

mobileTheme

    Mobile devices are detected with php-mobile-detect. A particular theme may be designated for phones and for tablets. If the connecting device is one of these, the theme will automatically switch to the designated mobile theme.

    Test mode allows you to run your standard desktop client but simulate a phone or a tablet.

    You may place a call on mobileTheme::controlLink(); in your theme(s) to allow the client viewer to override the switch and view your standard gallery theme. If the same call is placed in your gallery theme he will be able to switch back as well.
    NOTE: This link is present only when the browsing client is a mobile device!

    Class mobile methods you can use in your theme:

    • phone is connected.
      • isiPhone()
      • isBlackBerry()
      • isHTC()
      • isNexus()
      • isDellStreak()
      • isMotorola()
      • isSamsung()
      • isSony()
      • isAsus()
      • isPalm()

     

    • tablet is connected
      • isBlackBerryTablet()
      • isiPad()
      • isKindle()
      • isSamsungTablet()
      • isMotorolaTablet()
      • isAsusTablet()

     

     

    • OS on the device
      • isAndroidOS()
      • isBlackBerryOS()
      • isPalmOS()
      • isSymbianOS()
      • isWindowsMobileOS()
      • isiOS()

     

     

    • user agent (browser) on the device
      • isChrome()
      • isDolfin()
      • isOpera()
      • isSkyfire()
      • isIE()
      • isFirefox()
      • isBolt()
      • isTeaShark()
      • isBlazer()
      • isSafari()
      • isMidori()

     

     

    Usage information

    Included in the Zenphoto release.

    For questions and comments please use the forum or discuss on the social networks.


    More by author:

    Related items