Support » Plugin: Mobile Smart » [Plugin: Mobile Smart] Template functions

  • In the plugin description there is this
    “Template functions to help determine which tier of mobile device (touch/smartphone/other) is viewing your site, to allow conditional content inclusion.”

    How can show in template (ex. single.php template) different contents for smartphone mobiles an NOT smartphones mobiles?
    Great plugin,

Viewing 1 replies (of 1 total)
  • Plugin Author dolby_uk


    You will need to switch based on the tier. So you can use something like:

    global $mobile_smart;

    if ($mobile_smart->getCurrentDeviceTier() == MOBILE_DEVICE_TIER_SMARTPHONE)
    // display main content
    // display some other content – perhaps stored in custom meta field?

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Mobile Smart] Template functions’ is closed to new replies.