mobileTheme 04 July 2012 / Updated: 19 January 2015
Mobile devices are detected with php-mobile-detect. A particular theme may be designated for phones and for tablets. If the connecting device is one of these, the theme will automatically switch to the designated mobile theme.
Test mode allows you to run your standard desktop client but simulate a phone or a tablet.
You may place a call on mobileTheme::controlLink(); in your theme(s) to allow the client viewer to override the switch and view your standard gallery theme. If the same call is placed in your gallery theme he will be able to switch back as well.
NOTE: This link is present only when the browsing client is a mobile device!
Class mobile methods you can use in your theme:
- phone is connected.
- tablet is connected
- OS on the device
- user agent (browser) on the device
This extension is officially supported but not included in the ZenphotoCMS release.