Closed (fixed)
Project:
Mobile Detect
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
26 Oct 2012 at 13:27 UTC
Updated:
19 Dec 2012 at 14:10 UTC
Create sub-module for makeing $is_mobile and $is_tablet available to templates.
Comments
Comment #1
mpdonadioA first pass at this has been comitted. Will show up in 7.x-1.x-dev soon.
Right now, the 'html', 'node', 'page', 'region', and 'zone' hooks will have $variables['is_mobile'] and $variables['is_tablet'] available. I don't see a need to make these available to other hooks.
As with the rest of the project, no attempt is made (and likely will never be made) to account for persisting detection and solve caching complications due to device detection. That is best handled by the end user and needs to be customized for their environment.
Comment #2
mpdonadio