Mobile Detection

Mobile Detection provides shortcodes and functions to allow different content to be served to different types of device (Desktop, Tablet, Phone); also includes checks on types of device (iOS, iPhone, iPad, Android, Windows Phone) and mobile browsers (Chrome, Firefox, IE, Opera, WebKit).

The following shortcodes are available:

  • ismobile
  • isnotmobile
  • isphone
  • isnotphone
  • istablet
  • isnottablet
  • isios
  • isiphone
  • isipad
  • isandroid
  • iswindowsphone (alternative shortcode iswp)
  • iswindowsmobile (alternative shortcode iswinmo)
  • ischrome
  • isfirefox
  • isie
  • isopera
  • iswebkit
  • istv
  • isconsole

All shortcodes available as functions with an azrcrv_md_ prefix for calling from themes, other plugins, etc. For example, is_mobile available as function azrcrv_md_is_mobile.

Uses PHP Mobile Detect class, the lightweight PHP class for detecting mobile devices (including tablets), from http://mobiledetect.net/.

Download

Download from GitHub.

Installation

To install the Mobile Detection plugin:

  • Download the plugin from GitHub.
  • Upload the entire zip file using the Plugins upload function in your ClassicPress admin panel.
  • Activate the plugin.

Support

Support, including bug reports, feature requests or questions, is available from azurecurve via the azurecurve Community site.

Translations

Translations are usually in the plugins languages folder, but our Translations site will have the most up-to-date versions.

If you can translate the plugin, please request access via the azurecurve Community site.

Changelog

Changes and feature additions for the Mobile Detection plugin:

  • 1.0.0
    1. First version for ClassicPress forked from azurecurve Mobile Detection WordPress Plugin.

Frequently Asked Questions

  1. Can I translate this plugin?

    Yes, this plugin can be translated using the available .pot file or via our Translations site which will have the most up-to-date versions.

    To translate on our translation site, please request access via our Community site.

  2. Is this plugin compatible with both WordPress and ClassicPress?

    This plugin is developed for ClassicPress, but will likely work on WordPress.

Donation

azurecurve plugins are free, open source tools for increasing the potential of ClassicPress as a CMS.

Plugins are a result of many many hours spent to deliver best product possible, reading comments from you and trying to support every ClassicPress release as soon as possible.

You can help support the development by donating a small amount of money.