This is a Context module which integrates Context and PHP Mobile Detect library Mobile_Detect.
Mobile_Detect is a lightweight PHP class for detecting mobile devices. It uses the user-agent string combined with specific HTTP headers to detect the mobile environment.
Important notice: Module preserve drupal page cache working.
Usage:
Once module is installed you are getting new Context Conditions, which are currently:
- Mobile Device (mobile, tablet, desktop)
- Mobile Device Type (iphone, blackberry, htc, etc)
Those are conditions you might used to turn your site mobile-first and responsive very easily.
Similar modules:
This is an improved version of the PHP get_browser() command. Mobile_Detect has a smaller footprint, but Browscap can provide more information and is not mobile-centric.
This is a full-featured module aimed at developing full-featured mobile sites. As such it has a heavier footprint, but also provides more features, such as redirection and theme-swicthing.
Development sponsored by Trellon.
Project information
- 670 sites report using this module
- Created by cr0ss on , updated
- Stable releases for this project are covered by the security advisory policy.
There are currently no supported stable releases.
Releases
Development version: 7.x-2.x-dev updated 12 Apr 2016 at 14:03 UTC