{if jrCore_is_mobile_device()}{/if}

Table of Contents:


Overview
Example
  • Overview

    The jrCore_is_mobile_device() functions tries to detect if the device the site is being looked at on is a mobile device or not.

    If the function thinks the device IS a mobile device, it will return TRUE.

    So using this {if} template block will only show the contents to users who are looking at the site on a mobile device.
  • Example

    The example below tries to detect if the device is a mobile device, and if it finds that it is, then include the 'header_menu_mobile.tpl' file to show to those users.
    {if jrCore_is_mobile_device()}
        {jrCore_include template="header_menu_mobile.tpl"}
    {/if}

Tags