Tablets can be be configurated as handheld or pc.
Images are resized to fit the screen of a mobile device portrait/landscape orientation of a mobile device is supported.
Check this site and the image below on your smartphone (tNB! tablets are treated as desktop on this site).
Download and uncompress file cmsimplemobile_XH.zip
Upload the entire cmsimplemobile directory to your "plugins" directory.
See online help in plugins configuration section. To activate image resize on mobile devices you have to embed the content in an id defined in plugin configuration (default is content).
<?php echo content();?>
Bug fix. Redirection url changed to redirection to internal or external url.
CMSimple XH version 1.7.x ready
mobile_content_class changed to mobile_content_id, content must be wrappen in <div id="content">...</div> in mobile template. The id value is defined in $plugin_cf['cmsimplemobile']['mobile_content_id'] in plugin config, default is content.
PHP 7 ready
Solved missing image resize inside div tag
The mobile_content_id (defined in plugin config)) can be used any place in template not only on content (i.e. in footer))
Added jquery script to resize images on mobile devices.
Image size on mobile devices is based on an aspect ratio calculated from the width of the content part of your original website and the width of the screen of a mobile device (portrait or landscape.
Further the mobile content must be embeded in a class with a name defined in Cmsimplemobile plugins configuration (mobile_content_id).
Mobile_Detect class v.2.x by Serban Ghita and Nick Ilyin (released under MIT license)
This CMSimple plugin is distributed in the hope that it will be useful - without any warranty; without even the implied warranty of fitnes for a particualr purpose.
© simpleSolutions, 2012-2018