mobileTheme Jul 04, 2012
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 those, the theme will automatically switch to the designated mobile theme.
Test mode allows you to run your standard desktop client but simulate being either 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
Included in the Zenphoto release.