function wptouch_render_general_page($page_options)
{
    wptouch_add_sub_page(WPTOUCH_ADMIN_SETUP_GENERAL, 'setup-general-general', $page_options);
    wptouch_add_sub_page(WPTOUCH_ADMIN_SETUP_COMPAT, 'setup-general-compat', $page_options);
    $these_settings = array(wptouch_add_setting('text', 'site_title', wptouchize_it(__('WPtouch Pro site title', 'wptouch-pro')), __('If the title of your site is long, you can shorten it for display within WPtouch Pro themes.', 'wptouch-pro'), WPTOUCH_SETTING_BASIC, '3.0'), wptouch_add_setting('checkbox', 'show_wptouch_in_footer', wptouchize_it(sprintf(__('Display %sPowered by WPtouch Pro%s in footer', 'wptouch-pro'), '"', '"')), '', WPTOUCH_SETTING_BASIC, 3.0));
    if (!defined('WPTOUCH_IS_FREE')) {
        $these_settings[] = wptouch_add_setting('checkbox', 'add_referral_code', __('Use my WPtouch Pro referral code to earn commission', 'wptouch-pro'), __('Licensed users of WPtouch Pro can earn a commission for each sale they generate from their mobile website', 'wptouch-pro'), WPTOUCH_SETTING_BASIC, 3.2);
    }
    wptouch_add_page_section(WPTOUCH_ADMIN_SETUP_GENERAL, __('Site Title & Byline', 'wptouch-pro'), 'setup-title-byline', $these_settings, $page_options);
    // Build admin panel page here
    wptouch_add_page_section(WPTOUCH_ADMIN_SETUP_GENERAL, __('Regionalization', 'wptouch-pro'), 'setup-regionalization', array(wptouch_add_setting('list', 'force_locale', __('Language', 'wptouch-pro'), wptouchize_it(__('The WPtouch Pro admin panel & supported themes will be shown in this locale.', 'wptouch-pro')), WPTOUCH_SETTING_BASIC, '3.0', wptouch_admin_get_languages()), wptouch_add_setting('checkbox', 'translate_admin', __('Translate administration panel text', 'wptouch-pro'), '', WPTOUCH_SETTING_ADVANCED, '3.0.2')), $page_options);
    wptouch_add_page_section(WPTOUCH_ADMIN_SETUP_GENERAL, __('Display Mode', 'wptouch-pro'), 'setup-display-mode', array(wptouch_add_setting('radiolist', 'display_mode', __('Theme Display', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '3.1', array('normal' => __('Normal (active for all mobile visitors)', 'wptouch-pro'), 'preview' => __('Preview (active only for logged-in site administrators)', 'wptouch-pro'), 'disabled' => __('Disabled (mobile theme will never show)', 'wptouch-pro')))), $page_options);
    wptouch_add_page_section(WPTOUCH_ADMIN_SETUP_GENERAL, __('Landing Page', 'wptouch-pro'), 'setup-landing-page', array(wptouch_add_setting('radiolist', 'homepage_landing', wptouchize_it(__('WPtouch Pro landing page', 'wptouch-pro')), '', WPTOUCH_SETTING_BASIC, '3.0', array('none' => __('Default (same as WordPress)', 'wptouch-pro'), 'select' => __('Select from WordPress pages', 'wptouch-pro'), 'custom' => _x('Custom', 'Refers to a custom landing page', 'wptouch-pro'))), wptouch_add_setting('redirect', 'homepage_redirect_wp_target', '', '', WPTOUCH_SETTING_BASIC, '3.0'), wptouch_add_setting('text', 'homepage_redirect_custom_target', __('Custom Slug or URL', 'wptouch-pro'), __('Enter a Slug (i.e. "/home") or a full URL path', 'wptouch-pro'), WPTOUCH_SETTING_BASIC, '3.0')), $page_options);
    wptouch_add_page_section(WPTOUCH_ADMIN_SETUP_GENERAL, __('Desktop / Mobile Switching', 'wptouch-pro'), 'setup-general', array(wptouch_add_setting('checkbox', 'desktop_is_first_view', __('1st time visitors see desktop theme', 'wptouch-pro'), __('Your regular theme will be shown to 1st time mobile visitors.', 'wptouch-pro'), WPTOUCH_SETTING_ADVANCED, '3.0'), wptouch_add_setting('checkbox', 'show_switch_link', __('Show switch link in mobile view', 'wptouch-pro'), __('Will show toggle buttons in the theme\'s footer allowing users to switch to your desktop theme. Is not shown in Web-App Mode.', 'wptouch-pro'), WPTOUCH_SETTING_ADVANCED, '3.0'), wptouch_add_pro_setting('radiolist', 'mobile_switch_link_target', __('Choose the target for the mobile switch link', 'wptouch-pro'), '', WPTOUCH_SETTING_ADVANCED, '3.0.1', array('current_page' => __('Current page', 'wptouch-pro'), 'home_page' => __('Home page', 'wptouch-pro '))), wptouch_add_pro_setting('radiolist', 'switch_link_method', __('Desktop theme switch buttons', 'wptouch-pro'), __('Allows visitors to switch from your desktop theme to your mobile theme. You can also customize the placement of Switch buttons by placing the wptouch_desktop_switch_link() template tag somewhere in your desktop theme.', 'wptouch-pro'), WPTOUCH_SETTING_ADVANCED, '3.0', array('automatic' => __('Automatically inserted inline', 'wptouch-pro'), 'ajax' => __('Automatically inserted with AJAX (better for caching)', 'wptouch-pro'), 'template_tag' => __('Template tag', 'wptouch-pro')))), $page_options);
    wptouch_add_page_section(WPTOUCH_ADMIN_SETUP_GENERAL, __('Custom Code', 'wptouch-pro'), 'setup-custom-code', array(wptouch_add_setting('textarea', 'custom_stats_code', __('HTML, JavaScript, statistics or custom code', 'wptouch-pro'), __('Enter any custom code here to be output in the theme footer.', 'wptouch-pro'), WPTOUCH_SETTING_BASIC, '3.0')), $page_options);
    wptouch_add_page_section(WPTOUCH_ADMIN_SETUP_GENERAL, __('Custom Stylesheet', 'wptouch-pro'), 'setup-custom-styles', array(wptouch_add_pro_setting('text', 'custom_css_file', __('URL to a custom CSS file to load', 'wptouch-pro'), __('Useful if you have specific compatibility CSS you need to add.', 'wptouch-pro'), WPTOUCH_SETTING_ADVANCED, '3.0')), $page_options);
    wptouch_add_page_section(WPTOUCH_ADMIN_SETUP_COMPAT, __('Shortcodes', 'wptouch-pro'), 'shortcodes-compatibility', array(wptouch_add_pro_setting('checkbox', 'enable_shortcode_compatibility', wptouchize_it(__('Enable shortcode handling', 'wptouch-pro')), __('For shortcodes registered by your desktop theme', 'wptouch-pro'), WPTOUCH_SETTING_BASIC, '3.7'), wptouch_add_pro_setting('radiolist', 'shortcode_compatibility_method', __('Shortcode handling', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '3.7', array('load_content_by_ajax' => wptouchize_it(__('Load content as output by desktop theme (you may need to load CSS/JavaScript)', 'wptouch-pro')), 'remove_shortcodes' => wptouchize_it(__('Remove selected shortcodes from content', 'wptouch-pro')))), wptouch_add_pro_setting('text', 'remove_shortcodes', wptouchize_it(__('Remove these shortcodes when WPtouch Pro is active', 'wptouch-pro')), __('Enter a comma separated list of shortcodes to remove.', 'wptouch-pro'), WPTOUCH_SETTING_BASIC, '3.0')), $page_options);
    wptouch_add_page_section(WPTOUCH_ADMIN_SETUP_COMPAT, __('Filter URLs', 'wptouch-pro'), 'filtered-urls-compatibility', array(wptouch_add_setting('checkbox', 'enable_url_filter', wptouchize_it(__('Limit the function of WPtouch Pro on specific URLs/Pages', 'wptouch-pro')), '', WPTOUCH_SETTING_BASIC, '3.5.3'), wptouch_add_setting('list', 'url_filter_behaviour', '', '', WPTOUCH_SETTING_BASIC, '3.5.3', array('exclude_urls' => wptouchize_it(__('Do not load WPtouch Pro on these URLs/pages', 'wptouch-pro')), 'exclusive_urls' => wptouchize_it(__('Only load WPtouch Pro on these URLs/pages', 'wptouch-pro')))), wptouch_add_setting('textarea', 'filtered_urls', wptouchize_it(__('Apply filter to these URLs/Pages', 'wptouch-pro')), __('Each permalink URL fragment should be on its own line and relative, e.g. "/about" or "/products/store"', 'wptouch-pro'), WPTOUCH_SETTING_BASIC, '3.5.3')), $page_options);
    wptouch_add_page_section(WPTOUCH_ADMIN_SETUP_COMPAT, __('Desktop Theme', 'wptouch-pro'), 'desktop-theme-compatibility', array(wptouch_add_pro_setting('checkbox', 'include_functions_from_desktop_theme', __('Try to include desktop theme functions.php file', 'wptouch-pro'), wptouchize_it(__('This may be required for desktop themes with unique features that are not showing when WPtouch Pro is active.', 'wptouch-pro')), WPTOUCH_SETTING_ADVANCED, '3.0'), wptouch_add_setting('radiolist', 'functions_php_loading_method', __('Method to load file', 'wptouch-pro'), '', WPTOUCH_SETTING_ADVANCED, '3.0', array('direct' => __('Include file directly', 'wptouch-pro'), 'translate' => __('Translate and create new files', 'wptouch-pro')))), $page_options);
    wptouch_add_page_section(WPTOUCH_ADMIN_SETUP_COMPAT, __('Custom User-Agents', 'wptouch-pro'), 'custom-user-agents', array(wptouch_add_setting('textarea', 'custom_user_agents', __('User-agents (line separated)', 'wptouch-pro'), wptouchize_it(__('Adding additional user-agents will force WPtouch Pro to be active for matching browsers.', 'wptouch-pro')), WPTOUCH_SETTING_BASIC, '3.0'), wptouch_add_setting('user-agent-list', '')), $page_options);
    wptouch_add_page_section(WPTOUCH_ADMIN_SETUP_GENERAL, __('Backup &amp; Import', 'wptouch-pro'), 'setup-backup', array(wptouch_add_pro_setting('checkbox', 'automatically_backup_settings', sprintf(__('Automatically backup settings to the %s folder', 'wptouch-pro'), '<em>/wptouch-data/backups</em>'), wptouchize_it(__('WPtouch Pro backups your settings each time they are saved.', 'wptouch-pro')), WPTOUCH_SETTING_BASIC, '3.0'), wptouch_add_pro_setting('custom', 'backup')), $page_options);
    $page_options = apply_filters('wptouch_settings_compat', $page_options);
    wptouch_add_page_section(WPTOUCH_ADMIN_SETUP_GENERAL, __('Tools &amp; Debug', 'wptouch-pro'), 'setup-tools-debug', array(wptouch_add_setting('checkbox', 'use_jquery_2', __('Use jQuery 2.x in themes (faster for mobile devices) instead of WordPress\' version', 'wptouch-pro'), __('jQuery 2.x is significantly smaller and faster than previous jQuery versions - may cause problems with other plugins, use carefully.', 'wptouch-pro'), WPTOUCH_SETTING_ADVANCED, '3.0'), wptouch_add_setting('checkbox', 'show_footer_load_times', __('Show load times and query counts in the footer', 'wptouch-pro'), __('Helps you find slow pages/posts on your site.', 'wptouch-pro'), WPTOUCH_SETTING_ADVANCED, '3.0'), wptouch_add_setting('checkbox', 'debug_log', __('Enable debug log', 'wptouch-pro'), __('Creates a debug file to help diagnose installation issues.', 'wptouch-pro'), WPTOUCH_SETTING_ADVANCED, '3.0'), wptouch_add_setting('debuginfo', 'debug-info', '', '', WPTOUCH_SETTING_ADVANCED, '3.0')), $page_options);
    wptouch_add_page_section(WPTOUCH_ADMIN_SETUP_COMPAT, __('WordPress Plugins', 'wptouch-pro'), 'setup-general-plugin-compat', array(wptouch_add_pro_setting('custom', 'plugin-compat')), $page_options);
    wptouch_add_page_section(WPTOUCH_ADMIN_SETUP_GENERAL, __('Admin Mode', 'wptouch-pro'), 'admin-mode', array(wptouch_add_setting('radiolist', 'settings_mode', __('Admin panel settings shown', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '3.0', array('0' => __('Default', 'wptouch-pro'), '1' => __('Advanced', 'wptouch-pro')))), $page_options);
    return $page_options;
}
function wptouch_render_devices_page($page_options)
{
    wptouch_add_sub_page(WPTOUCH_ADMIN_SETUP_DEVICES, 'setup-devices', $page_options);
    wptouch_add_page_section(WPTOUCH_ADMIN_SETUP_DEVICES, __('Mobile Devices & Browsers', 'wptouch-pro'), 'admin_menu_homescreen_ipad_retina', array(wptouch_add_setting('checkbox', 'enable_ios_phone', 'iOS (iPod, iPhone)', false, WPTOUCH_SETTING_BASIC, '4.0'), wptouch_add_setting('checkbox', 'enable_android_phone', 'Android Stock & Chrome Browsers', false, WPTOUCH_SETTING_BASIC, '4.0'), wptouch_add_setting('checkbox', 'enable_blackberry_phone', 'BlackBerry Browser', false, WPTOUCH_SETTING_BASIC, '4.0'), wptouch_add_setting('checkbox', 'enable_firefox_phone', 'Firefox OS & Mobile Browser', false, WPTOUCH_SETTING_BASIC, '4.0'), wptouch_add_setting('checkbox', 'enable_windows_phone', 'Windows Phone (IE)', false, WPTOUCH_SETTING_BASIC, '4.0'), wptouch_add_setting('checkbox', 'enable_opera_phone', 'Opera Mobile (Opera on Android/iOS, Opera Mini on iOS, Coast)', false, WPTOUCH_SETTING_BASIC, '4.0')), $page_options, 'wptouch_pro', false);
    if (apply_filters('wptouch_allow_tablets', false)) {
        wptouch_add_page_section(WPTOUCH_ADMIN_SETUP_DEVICES, __('Tablets', 'wptouch-pro'), 'admin_menu_tablets', array(wptouch_add_pro_setting('checkbox', 'enable_ios_tablet', 'iOS (iPad)', false, WPTOUCH_SETTING_BASIC, '4.0'), wptouch_add_pro_setting('checkbox', 'enable_android_tablet', 'Android', false, WPTOUCH_SETTING_BASIC, '4.0'), wptouch_add_pro_setting('checkbox', 'enable_windows_tablet', 'Windows Tablet', false, WPTOUCH_SETTING_BASIC, '4.0'), wptouch_add_pro_setting('checkbox', 'enable_kindle_tablet', 'Kindle', false, WPTOUCH_SETTING_BASIC, '4.0'), wptouch_add_pro_setting('checkbox', 'enable_blackberry_tablet', 'BlackBerry', false, WPTOUCH_SETTING_BASIC, '4.0'), wptouch_add_pro_setting('checkbox', 'enable_webos_tablet', 'WebOS', false, WPTOUCH_SETTING_BASIC, '4.0')), $page_options, 'wptouch_pro');
    } else {
        wptouch_add_page_section(WPTOUCH_ADMIN_SETUP_DEVICES, __('Tablet Devices & Browsers', 'wptouch-pro'), 'admin_menu_tablets', array(wptouch_add_pro_setting('custom', 'no_tablet_support', false, false, WPTOUCH_SETTING_BASIC, '4.0')), $page_options, 'wptouch_pro', false, wptouchize_it(__('If your theme supports tablets, devices and browsers WPtouch Pro can be enabled for will be listed below.', 'wptouch-pro')));
    }
    wptouch_add_page_section(WPTOUCH_ADMIN_SETUP_DEVICES, __('Additional User Agents', 'wptouch-pro'), 'custom-user-agents', array(wptouch_add_setting('multiline-newline', 'custom_user_agents', __('User agents to add', 'wptouch-pro'), __('You can enter partial i.e. "nokia" or full agent strings', 'wptouch-pro'), WPTOUCH_SETTING_BASIC, '3.0')), $page_options, 'wptouch_pro');
    return $page_options;
}
Example #3
0
function wptouch_register_theme_menu($menu_info)
{
    $menu = new stdClass();
    $defaults = array('name' => '', 'settings_domain' => 'wptouch_pro', 'friendly_name' => '', 'description' => '', 'tooltip' => '', 'can_be_disabled' => false, 'menu_type' => 'dropdown');
    $menu_info = wp_parse_args($menu_info, $defaults);
    $menu->settings_domain = $menu_info['settings_domain'];
    $menu->setting_name = $menu_info['name'];
    $menu->friendly_name = $menu_info['friendly_name'];
    $menu->description = $menu_info['description'];
    $menu->can_be_disabled = $menu_info['can_be_disabled'];
    $menu->tooltip = $menu_info['tooltip'];
    $menu->menu_type = $menu_info['menu_type'];
    global $wptouch_pro;
    $wptouch_pro->theme_menus[] = $menu;
    register_nav_menu('wptouch_' . $menu_info['name'], wptouchize_it('WPtouch Pro: ') . $menu_info['friendly_name']);
}
Example #4
0
function wptouch_custom_posts_render_theme_settings($page_options)
{
    $custom_post_settings = array();
    $post_types = wptouch_custom_posts_get_list(true);
    if (count($post_types)) {
        wptouch_add_page_section(WPTOUCH_ADMIN_SETUP_COMPAT, __('Custom Post Support', 'wptouch-pro'), 'foundation-web-custom-post-type-support', array(wptouch_add_setting('checkbox', 'enable_custom_post_types', __('Enable custom post-type support', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0')), $page_options, FOUNDATION_SETTING_DOMAIN);
        foreach ($post_types as $post_type) {
            $setting = wptouch_add_setting('post_type', 'enabled_custom_post_types[' . $post_type . ']', sprintf(__('%s', 'wptouch-pro'), $post_type), '', WPTOUCH_SETTING_BASIC, '1.0', FOUNDATION_SETTING_DOMAIN);
            $custom_post_settings[] = $setting;
        }
        $custom_post_settings[] = wptouch_add_setting('checkbox', 'custom_post_types_in_post_index', __('Include custom post-type posts in blog index', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0');
        wptouch_add_page_section(WPTOUCH_ADMIN_SETUP_COMPAT, __('Custom Post Types', 'wptouch-pro'), 'foundation-web-custom-post-types', $custom_post_settings, $page_options, FOUNDATION_SETTING_DOMAIN, false, wptouchize_it(__('Select which custom post types WPtouch Pro should load when displaying your site.', 'wptouch-pro')));
    }
    return $page_options;
}
Example #5
0
 function admin_initialize()
 {
     $is_plugins_page = strpos($_SERVER['REQUEST_URI'], 'plugins.php') !== false;
     $is_wizard_page = strpos($_SERVER['REQUEST_URI'], '?page=wptouch-admin-wizard') !== false;
     // We need the BNCAPI for checking for plugin updates and all the wptouch-pro admin functions
     if ($this->admin_is_wptouch_page() || $is_plugins_page) {
         $this->setup_bncapi();
     }
     // Only check for updates explicitly on plugins page
     if ($is_plugins_page) {
         $can_check_for_update = true;
         if ($can_check_for_update) {
             WPTOUCH_DEBUG(WPTOUCH_INFO, 'Checking for product update');
             $this->check_for_update(true);
         }
     }
     // Remodal, load everywhere except wizard
     if (!$is_wizard_page) {
         wp_enqueue_script('wptouch-remodal', WPTOUCH_URL . '/admin/js/wptouch-admin-remodal.js', array('wptouch-pro-ajax'), md5(WPTOUCH_VERSION), true);
         wp_enqueue_style('wptouch-remodal', WPTOUCH_URL . '/admin/css/wptouch-admin-remodal.css', false, md5(WPTOUCH_VERSION));
     }
     // load the core AJAX on all pages
     $theme_broken = wptouch_migration_is_theme_broken() && !wptouch_can_repair_active_theme();
     if ($this->admin_is_wptouch_page() || $theme_broken) {
         $ajax_params = array('admin_ajax_nonce' => wp_create_nonce('wptouch_admin_ajax'));
         wp_enqueue_script('wptouch-pro-ajax', WPTOUCH_URL . '/admin/js/wptouch-ajax.js', array('jquery'), md5(WPTOUCH_VERSION), true);
         wp_localize_script('wptouch-pro-ajax', 'WPtouchAjax', $ajax_params);
         if ($theme_broken && !defined('WPTOUCH_IS_FREE')) {
             wp_enqueue_script('wptouch-cloud-migrate', WPTOUCH_URL . '/admin/js/wptouch-admin-migrate.js', array('wptouch-pro-ajax'), md5(WPTOUCH_VERSION));
         }
     }
     // Check for broken plugins
     wptouch_migration_check_for_broken_extensions();
     //  load the rest of the admin scripts when we're looking at the WPtouch Pro page
     if ($this->admin_is_wptouch_page()) {
         $localize_params = array('admin_url' => get_bloginfo('wpurl') . '/wp-admin', 'plugin_admin_image_url' => WPTOUCH_ADMIN_URL . '/images', 'admin_nonce' => wp_create_nonce('wptouch_admin'), 'plugin_url' => admin_url('admin.php?page=' . $_GET['page']), 'reset_settings' => wptouchize_it(__("This will reset all WPtouch Pro settings.\nAre you sure?", 'wptouch-pro')), 'reset_delete' => __("This will reset all WPtouch Pro settings and delete the wptouch-data folder.\nAre you sure?", 'wptouch-pro'), 'reset_delete_deactivate' => __("This will reset all WPtouch Pro settings, delete the wptouch-data folder, and deactivate the plugin. Are you sure?", 'wptouch-pro'), 'cloud_download_fail' => __('The item failed to download for this reason: %reason%', 'wptouch-pro'), 'remove_license' => __('You are about to reset your license information. Proceed?', 'wptouch-pro'), 'upload_complete' => __('Upload Complete!', 'wptouch-pro'), 'upload_invalid' => __('Upload Failed: Not a valid image.', 'wptouch-pro'), 'saving_settings' => __('WPtouch is saving settings. Please do not refresh the page while saving.', 'wptouch-pro'), 'install_themes' => __('Install Themes', 'wptouch-pro'), 'install_extensions' => __('Install Extensions', 'wptouch-pro'), 'install' => __('Install', 'wptouch-pro'), 'installing' => __('Installing', 'wptouch-pro'), 'installed' => __('Installed', 'wptouch-pro'), 'download' => __('Download', 'wptouch-pro'), 'is_network_admin' => is_network_admin());
         // 4.0 Adding some easing :)
         wp_enqueue_script('jquery-easing', '//cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js', array('jquery'), md5(WPTOUCH_VERSION), false);
         if (strpos($_SERVER['REQUEST_URI'], 'wptouch-admin-wizard') == true) {
             // 4.0 Wizard Script
             wp_enqueue_script('wptouch-wizard', WPTOUCH_URL . '/admin/js/wptouch-admin-wizard.js', array('jquery', 'wptouch-admin-plugins'), md5(WPTOUCH_VERSION), false);
         }
         wp_enqueue_script('wptouch-admin-plugins', WPTOUCH_URL . '/admin/js/wptouch-admin-plugins.js', array('jquery'), md5(WPTOUCH_VERSION), false);
         wp_localize_script('wptouch-admin-plugins', 'WPtouchCustom', $localize_params);
         if (strpos($_SERVER['REQUEST_URI'], 'wptouch-admin-wizard') == false) {
             wp_enqueue_script('wptouch-pro-admin', WPTOUCH_URL . '/admin/js/wptouch-admin-4.js', array('wptouch-admin-plugins', 'wptouch-pro-ajax', 'jquery', 'jquery-easing'), md5(WPTOUCH_VERSION), false);
             if (defined('WPTOUCH_IS_FREE')) {
                 wp_enqueue_style('wp-color-picker');
                 wp_enqueue_script('wptouch-pro-admin-color', WPTOUCH_URL . '/admin/js/wptouch-admin-color.js', array('wptouch-pro-admin', 'wp-color-picker'), md5(WPTOUCH_VERSION), false);
             }
         }
     } else {
         // Not a WPtouch admin page
         $localize_params = array('admin_url' => get_bloginfo('wpurl') . '/wp-admin', 'admin_nonce' => wp_create_nonce('wptouch_admin'));
         wp_enqueue_script('wptouch-pro-ajax', WPTOUCH_URL . '/admin/js/wptouch-ajax.js', array('jquery'), md5(WPTOUCH_VERSION), false);
         $ajax_params = array('admin_ajax_nonce' => wp_create_nonce('wptouch_admin_ajax'));
         wp_localize_script('wptouch-pro-ajax', 'WPtouchAjax', $ajax_params);
     }
     $this->setup_wptouch_admin_ajax();
 }
        ?>
</p></td>
				</tr>
				</tr>
				<tr>
					<td><input id="erase-and-delete" type="submit" name="wptouch-self-destruct-2"  class="button erase grapefruit" value="<?php 
        _e('Delete & Erase', 'wptouch-pro');
        ?>
" /></td>
					<td><p><?php 
        echo wptouchize_it(sprintf(__('Deletes the %s folder in your %s folder on disk, and erases WPtouch Pro settings', 'wptouch-pro'), 'wptouch-data', 'wp-content'));
        ?>
</p></td>
				</tr>
				<tr>
					<td><input id="erase-delete-deactivate" type="submit" name="wptouch-self-destruct-3"  class="button erase grapefruit" value="<?php 
        _e('Delete, Erase & Deactivate', 'wptouch-pro');
        ?>
" /></td>
					<td><p><?php 
        echo wptouchize_it(sprintf(__('Deletes the %s folder, erases WPtouch settings and deactivates WPtouch Pro', 'wptouch-pro'), 'wptouch-data'));
        ?>
</p></td>
				</tr>
			<?php 
    }
    ?>
		</table>
	</div>
<?php 
}
Example #7
0
<style type="text/css">#switch { display: none; }</style>
<div id="preview-bar">
	<p><?php 
echo wptouchize_it('WPtouch Pro');
?>
 <?php 
_e('Theme Preview', 'wptouch-pro');
?>
</p>
	<div class="refresher"><?php 
_e('Reload', 'wptouch-pro');
?>
</div>
</div>
Example #8
0
if (!is_network_admin() && !defined('WPTOUCH_IS_FREE')) {
    ?>
					<td>
						<i class="icon-theme-customizer"></i>
						<a href="<?php 
    echo admin_url('customize.php');
    ?>
" id="exit_wizard_customizer" class="button"><?php 
    _e('Customize your Theme', 'wptouch-pro');
    ?>
</a>
					</td>
				<?php 
}
?>
				<td>
					<i class="icon-theme-settings"></i>
					<a href="<?php 
echo wptouch_admin_url('admin.php?page=wptouch-admin-general-settings');
?>
" id="exit_wizard_settings" class="button">
						<?php 
echo wptouchize_it(__('Configure Settings', 'wptouch-pro'));
?>
					</a>
				</td>
			</tr>
		</table>
	</section>

</div><!-- wizard-container -->