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
- Maintenance status: Actively maintained
- Development status: Under active development
- Reported installs: 2,251 sites currently report using this module. View usage statistics.
- Downloads: 9,724
- Last modified: December 2, 2014
Downloads
Recommended releases
| Version | Download | Date |
|---|---|---|
| 7.x-1.3 | tar.gz (12.83 KB) | zip (15.2 KB) | 2012-Nov-05 |
