_e('Load in WPtouch', 'fapro'); ?> :</label> </th> <td> <input type="checkbox" name="load_in_wptouch" id="load_in_wptouch" value="1"<?php fa_checked($settings['load_in_wptouch']); ?> /> <span class="description"> <?php _e('By enabling this option you will allow slideshows to be displayed and run into your WPtouch mobile version website.', 'fapro'); ?> <br /> <?php if (!fa_is_wptouch_exclusive()) { ?> <?php _e('Please note that if you have enabled WPtouch <strong>Restricted Mode</strong> setting, no slideshows will be displayed into your website mobile version.', 'fapro'); ?> <?php } else { ?> <strong style="color:red;"><?php _e('WPtouch Restrictive Mode is ON.', 'fapro'); ?> </strong> <?php _e('Even if you enable this option, none of the slideshows published into your pages will be displayed into your website mobile version.', 'fapro'); ?> <?php
/** * Verifies if the plugin is allowed to display slideshows. * @return bool */ function fa_load_in_mobile() { // by default, slideshows will be displayed into WP $display = true; // check if it's a mobile WPtouch theme if (fa_is_wptouch_mobile()) { // get option to display in mobile versions $options = FA_plugin_options(); if (!$options['load_in_wptouch'] || fa_is_wptouch_exclusive()) { $display = false; } } return $display; }