Plugin providing 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).
Changelog
- Update readme file for compatibility with ClassicPress Directory.
Download
Download from GitHub to manually install; if you already have the plugin installed, an update will be available in the admin dashboard.
Support
If you have any problems to log or features to request, contact me via the ClassicPress Plugin Support Forum or you can log an issue via the GitHub repository.
Issues/Ideas
I’m keen to resolve any issues and happy to consider functionality requests, so please get in touch if you want to report a problem or ask for new functionality.