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_addons($page_options)
{
    require_once WPTOUCH_DIR . '/core/admin-extensions.php';
    wptouch_add_sub_page(WPTOUCH_PRO_ADMIN_ADDONS, 'setup-addons-browser', $page_options);
    wptouch_add_page_section(WPTOUCH_PRO_ADMIN_ADDONS, '', 'handle-addons', array(wptouch_add_setting('custom', 'extension-browser', '', '', WPTOUCH_SETTING_BASIC, '3.1')), $page_options);
    return $page_options;
}
Example #3
0
function foundation_ad_settings($page_options)
{
    wptouch_add_sub_page(FOUNDATION_PAGE_ADVERTISING, 'foundation-page-advertising', $page_options);
    if (!foundation_advertising_enabled()) {
        return $page_options;
    }
    wptouch_add_page_section(FOUNDATION_PAGE_ADVERTISING, __('Service', 'wptouch-pro'), 'service', array(wptouch_add_pro_setting('radiolist', 'advertising_type', __('Choose a service', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0', array('none' => __('None', 'wptouch-pro'), 'google' => __('Google Adsense', 'wptouch-pro'), 'custom' => _x('Custom', 'Refers to a custom advertising service', 'wptouch-pro')))), $page_options, FOUNDATION_SETTING_DOMAIN);
    wptouch_add_page_section(FOUNDATION_PAGE_ADVERTISING, __('Google AdSense', 'wptouch-pro'), 'google-adsense', array(wptouch_add_pro_setting('text', 'google_adsense_id', __('Publisher ID', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0'), wptouch_add_pro_setting('text', 'google_slot_id', __('Slot ID', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0'), wptouch_add_pro_setting('list', 'google_code_type', __('Code Type', 'wptouch-pro'), '', WPTOUCH_SETTING_ADVANCED, '1.0.6', array('sync' => 'Synchronous', 'async' => 'Asynchronous'))), $page_options, FOUNDATION_SETTING_DOMAIN);
    wptouch_add_page_section(FOUNDATION_PAGE_ADVERTISING, __('Custom Ads', 'wptouch-pro'), 'custom-ads', array(wptouch_add_pro_setting('textarea', 'custom_advertising_mobile', __('Mobile advertising script', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0')), $page_options, FOUNDATION_SETTING_DOMAIN);
    wptouch_add_page_section(FOUNDATION_PAGE_ADVERTISING, __('Ad Presentation', 'wptouch-pro'), 'ad-presentation', array(wptouch_add_pro_setting('list', 'advertising_location', __('Theme location', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0', array('header' => __('In the header', 'wptouch-pro'), 'top-content' => __('Above the page content', 'wptouch-pro'), 'bottom-content' => __('Below the page content', 'wptouch-pro')))), $page_options, FOUNDATION_SETTING_DOMAIN);
    wptouch_add_page_section(FOUNDATION_PAGE_ADVERTISING, __('Active Pages', 'wptouch-pro'), 'active-pages', array(wptouch_add_pro_setting('checkbox', 'advertising_blog_listings', __('Blog listings', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0'), wptouch_add_pro_setting('checkbox', 'advertising_single', __('Single posts', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0'), wptouch_add_pro_setting('checkbox', 'advertising_pages', __('Static pages', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0'), wptouch_add_pro_setting('checkbox', 'advertising_taxonomy', __('Taxonomy', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0'), wptouch_add_pro_setting('checkbox', 'advertising_search', __('Search results', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0')), $page_options, FOUNDATION_SETTING_DOMAIN);
    return $page_options;
}
Example #4
0
function foundation_webapp_settings($page_options)
{
    wptouch_add_sub_page(FOUNDATION_PAGE_WEB_APP, 'foundation-page-webapp', $page_options);
    wptouch_add_page_section(FOUNDATION_PAGE_WEB_APP, __('Settings', 'wptouch-pro'), 'foundation-web-app-settings', array(wptouch_add_pro_setting('checkbox', 'webapp_mode_enabled', __('Enable iOS Web-App Mode', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0'), wptouch_add_pro_setting('checkbox', 'webapp_enable_persistence', __('Enable persistence', 'wptouch-pro'), __('Loads the last visited URL for visitors on open.', 'wptouch-pro'), WPTOUCH_SETTING_BASIC, '1.0.2'), wptouch_add_pro_setting('textarea', 'webapp_ignore_urls', __('URLs to ignore in Web-App Mode', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0.2')), $page_options, FOUNDATION_SETTING_DOMAIN);
    wptouch_add_page_section(FOUNDATION_PAGE_WEB_APP, __('Notice Message', 'wptouch-pro'), 'notice-message', array(wptouch_add_pro_setting('checkbox', 'webapp_show_notice', __('Show a notice message for iPhone, iPod touch & iPad visitors about my Web-App', 'wptouch-pro'), __('WPtouch shows a notice bubble on 1st visit letting users know about your Web-App enabled website on iOS devices.', 'wptouch-pro'), WPTOUCH_SETTING_BASIC, '1.0'), wptouch_add_pro_setting('textarea', 'webapp_notice_message', __('Notice message contents', 'wptouch-pro'), __('[device] and [icon] are dynamic and used to determine the device and iOS version. Do not remove these from your message.', 'wptouch-pro'), WPTOUCH_SETTING_ADVANCED, '1.0'), wptouch_add_pro_setting('list', 'webapp_notice_expiry_days', __('the notice message will be shown again for visitors', 'wptouch-pro'), '', WPTOUCH_SETTING_ADVANCED, '1.0', array('1' => __('1 day until', 'wptouch-pro'), '7' => __('7 days until', 'wptouch-pro'), '30' => __('1 month until', 'wptouch-pro'), '0' => __('Every time', 'wptouch-pro')))), $page_options, FOUNDATION_SETTING_DOMAIN);
    /* Startup Screen Area */
    wptouch_add_page_section(FOUNDATION_PAGE_WEB_APP, __('iPhone Startup Screen', 'wptouch-pro'), 'iphone-startup-screen', array(wptouch_add_pro_setting('image-upload', 'startup_screen_iphone_2g_3g', sprintf(__('%d by %d pixels (PNG)', 'wptouch-pro'), 320, 460), '', WPTOUCH_SETTING_BASIC, '1.0')), $page_options, FOUNDATION_SETTING_DOMAIN);
    wptouch_add_page_section(FOUNDATION_PAGE_WEB_APP, __('Retina iPhone Startup Screen', 'wptouch-pro'), 'retina-iphone-startup-screen', array(wptouch_add_pro_setting('image-upload', 'startup_screen_iphone_4_4s', sprintf(__('%d by %d pixels (PNG)', 'wptouch-pro'), 640, 920), '', WPTOUCH_SETTING_BASIC, '1.0')), $page_options, FOUNDATION_SETTING_DOMAIN);
    wptouch_add_page_section(FOUNDATION_PAGE_WEB_APP, __('iPhone 5 Startup Screen', 'wptouch-pro'), 'iphone-5-startup-screen', array(wptouch_add_pro_setting('image-upload', 'startup_screen_iphone_5', sprintf(__('%d by %d pixels (PNG)', 'wptouch-pro'), 640, 1096), '', WPTOUCH_SETTING_BASIC, '1.0')), $page_options, FOUNDATION_SETTING_DOMAIN);
    if (foundation_is_theme_using_module('tablets')) {
        wptouch_add_page_section(FOUNDATION_PAGE_WEB_APP, __('iPad Mini and iPad Startup Screens', 'wptouch-pro'), 'ipad-mini-and-ipad-startup-screens', array(wptouch_add_pro_setting('image-upload', 'startup_screen_ipad_1_portrait', sprintf(__('%d by %d pixels (PNG)', 'wptouch-pro'), 768, 1004), '', WPTOUCH_SETTING_BASIC, '1.0'), wptouch_add_pro_setting('image-upload', 'startup_screen_ipad_1_landscape', sprintf(__('%d by %d pixels (PNG)', 'wptouch-pro'), 1024, 748), '', WPTOUCH_SETTING_BASIC, '1.0')), $page_options, FOUNDATION_SETTING_DOMAIN);
        wptouch_add_page_section(FOUNDATION_PAGE_WEB_APP, __('Retina iPad Startup Screens', 'wptouch-pro'), 'retina-ipad-startup-screens', array(wptouch_add_pro_setting('image-upload', 'startup_screen_ipad_3_portrait', sprintf(__('%d by %d pixels (PNG)', 'wptouch-pro'), 1536, 2008), '', WPTOUCH_SETTING_BASIC, '1.0'), wptouch_add_pro_setting('image-upload', 'startup_screen_ipad_3_landscape', sprintf(__('%d by %d pixels (PNG)', 'wptouch-pro'), 2048, 1496), '', WPTOUCH_SETTING_BASIC, '1.0')), $page_options, FOUNDATION_SETTING_DOMAIN);
    }
    return $page_options;
}
function wptouch_render_menu_page($page_options)
{
    wptouch_add_sub_page(WPTOUCH_ADMIN_MENU_ICONS_OPTIONS, 'menu-icons-options', $page_options);
    wptouch_add_sub_page(WPTOUCH_ADMIN_MENU_ICONS_MENUS, 'menu-icons-menus', $page_options);
    wptouch_add_sub_page(WPTOUCH_ADMIN_MENU_MANAGE_ICON_SETS, 'menu-icons-manage-icon-sets', $page_options);
    global $wptouch_pro;
    $theme_menus = $wptouch_pro->theme_menus;
    if (count($theme_menus)) {
        foreach ($theme_menus as $menu) {
            wptouch_add_page_section(WPTOUCH_ADMIN_MENU_ICONS_OPTIONS, $menu->friendly_name, 'setup-menu-icons-' . $menu->setting_name, array(wptouch_add_setting('list', $menu->setting_name, $menu->description, $menu->tooltip, WPTOUCH_SETTING_BASIC, '3.0', wptouch_get_custom_menu_list(true, $menu->can_be_disabled))), $page_options, $menu->settings_domain);
        }
    }
    wptouch_add_page_section(WPTOUCH_ADMIN_MENU_ICONS_OPTIONS, __('Menu Options', 'wptouch-pro'), 'setup-menu-parent-items', array(wptouch_add_setting('checkbox', 'enable_menu_icons', __('Use menu icons', 'wptouch-pro'), '', WPTOUCH_SETTING_ADVANCED, '3.0')), $page_options);
    wptouch_add_page_section(WPTOUCH_ADMIN_MENU_ICONS_MENUS, '', 'admin_menu_icons_menus', array(wptouch_add_setting('custom', 'icon_menu_area')), $page_options);
    wptouch_add_page_section(WPTOUCH_ADMIN_MENU_MANAGE_ICON_SETS, __('Icon Upload', 'wptouch-pro'), 'admin_menu_icon_upload', array(wptouch_add_setting('custom', 'custom_icon_upload')), $page_options);
    wptouch_add_page_section(WPTOUCH_ADMIN_MENU_MANAGE_ICON_SETS, __('Uploaded Icons', 'wptouch-pro'), 'uploaded-icons', array(wptouch_add_setting('custom', 'custom_icon_management')), $page_options);
    wptouch_add_page_section(WPTOUCH_ADMIN_MENU_MANAGE_ICON_SETS, __('Icon Sets', 'wptouch-pro'), 'admin_menu_icon_sets', array(wptouch_add_setting('custom', 'installed_icon_sets')), $page_options);
    return $page_options;
}
Example #6
0
function foundation_webapp_settings($page_options)
{
    $show_wam_settings = apply_filters('wptouch_allow_wam', true);
    wptouch_add_sub_page(FOUNDATION_PAGE_WEB_APP, 'foundation-page-webapp', $page_options);
    if (!$show_wam_settings) {
        wptouch_add_page_section(FOUNDATION_PAGE_WEB_APP, __('Web-App Mode Unavailable', 'wptouch-pro'), 'foundation-web-app-settings', array(wptouch_add_pro_setting('checkbox', 'webapp_mode_unavailable', apply_filters('wptouch_allow_wam_message', 'Web-App Mode has been disabled by a theme or extension.'), '', WPTOUCH_SETTING_BASIC, '3.6.6')), $page_options, FOUNDATION_SETTING_DOMAIN);
    } else {
        wptouch_add_page_section(FOUNDATION_PAGE_WEB_APP, __('Settings', 'wptouch-pro'), 'foundation-web-app-settings', array(wptouch_add_pro_setting('checkbox', 'webapp_mode_enabled', __('Enable Web-App Mode', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0'), wptouch_add_pro_setting('checkbox', 'webapp_enable_persistence', __('Enable persistence', 'wptouch-pro'), __('Loads the last visited URL for visitors on open.', 'wptouch-pro'), WPTOUCH_SETTING_BASIC, '1.0.2'), $wam_settings[] = wptouch_add_pro_setting('textarea', 'webapp_ignore_urls', __('URLs to ignore in Web-App Mode', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0.2')), $page_options, FOUNDATION_SETTING_DOMAIN);
        wptouch_add_page_section(FOUNDATION_PAGE_WEB_APP, __('Web App Title', 'wptouch-pro'), 'admin_menu_homescreen_icons_options', array(wptouch_add_pro_setting('text', 'homescreen_icon_title', __('Icon title', 'wptouch-pro'), __('When visitors bookmark your website, this will be the title shown.', 'wptouch-pro'), WPTOUCH_SETTING_BASIC, '1.0')), $page_options, FOUNDATION_SETTING_DOMAIN);
        wptouch_add_page_section(FOUNDATION_PAGE_WEB_APP, __('Notice Message', 'wptouch-pro'), 'notice-message', array(wptouch_add_pro_setting('checkbox', 'webapp_show_notice', __('Show a notice message for iPhone, iPod touch & iPad visitors about my Web-App', 'wptouch-pro'), __('WPtouch shows a notice bubble on 1st visit letting users know about your Web-App enabled website on iOS devices.', 'wptouch-pro'), WPTOUCH_SETTING_BASIC, '1.0'), wptouch_add_pro_setting('textarea', 'webapp_notice_message', __('Notice message contents', 'wptouch-pro'), __('[icon] is used to display the appropriate bookmark icon for your device. Do not remove it from your message.', 'wptouch-pro'), WPTOUCH_SETTING_ADVANCED, '1.0'), wptouch_add_pro_setting('list', 'webapp_notice_expiry_days', __('the notice message will be shown again for visitors', 'wptouch-pro'), '', WPTOUCH_SETTING_ADVANCED, '1.0', array('1' => __('1 day until', 'wptouch-pro'), '7' => __('7 days until', 'wptouch-pro'), '30' => __('1 month until', 'wptouch-pro'), '0' => __('Every time', 'wptouch-pro')))), $page_options, FOUNDATION_SETTING_DOMAIN);
        /* Startup Screen Area */
        wptouch_add_page_section(FOUNDATION_PAGE_WEB_APP, __('iPhone Startup Screen', 'wptouch-pro'), 'iphone-startup-screen', array(wptouch_add_pro_setting('image-upload', 'startup_screen_iphone_2g_3g', sprintf(__('%d by %d pixels (PNG)', 'wptouch-pro'), 320, 460), '', WPTOUCH_SETTING_BASIC, '1.0')), $page_options, FOUNDATION_SETTING_DOMAIN);
        wptouch_add_page_section(FOUNDATION_PAGE_WEB_APP, __('Retina iPhone Startup Screen', 'wptouch-pro'), 'retina-iphone-startup-screen', array(wptouch_add_pro_setting('image-upload', 'startup_screen_iphone_4_4s', sprintf(__('%d by %d pixels (PNG)', 'wptouch-pro'), 640, 920), '', WPTOUCH_SETTING_BASIC, '1.0')), $page_options, FOUNDATION_SETTING_DOMAIN);
        wptouch_add_page_section(FOUNDATION_PAGE_WEB_APP, __('iPhone 5 Startup Screen', 'wptouch-pro'), 'iphone-5-startup-screen', array(wptouch_add_pro_setting('image-upload', 'startup_screen_iphone_5', sprintf(__('%d by %d pixels (PNG)', 'wptouch-pro'), 640, 1096), '', WPTOUCH_SETTING_BASIC, '1.0')), $page_options, FOUNDATION_SETTING_DOMAIN);
        wptouch_add_page_section(FOUNDATION_PAGE_WEB_APP, __('iPhone 6 Startup Screen', 'wptouch-pro'), 'iphone-6-startup-screen', array(wptouch_add_pro_setting('image-upload', 'startup_screen_iphone_6', sprintf(__('%d by %d pixels (PNG)', 'wptouch-pro'), 750, 1294), '', WPTOUCH_SETTING_BASIC, '1.0')), $page_options, FOUNDATION_SETTING_DOMAIN);
        wptouch_add_page_section(FOUNDATION_PAGE_WEB_APP, __('iPhone 6+ Startup Screen', 'wptouch-pro'), 'iphone-6plus-startup-screen', array(wptouch_add_pro_setting('image-upload', 'startup_screen_iphone_6plus', sprintf(__('%d by %d pixels (PNG)', 'wptouch-pro'), 1242, 2148), '', WPTOUCH_SETTING_BASIC, '1.0')), $page_options, FOUNDATION_SETTING_DOMAIN);
        if (foundation_is_theme_using_module('tablets')) {
            wptouch_add_page_section(FOUNDATION_PAGE_WEB_APP, __('iPad Mini and iPad Startup Screens', 'wptouch-pro'), 'ipad-mini-and-ipad-startup-screens', array(wptouch_add_pro_setting('image-upload', 'startup_screen_ipad_1_portrait', sprintf(__('%d by %d pixels (PNG)', 'wptouch-pro'), 768, 1004), '', WPTOUCH_SETTING_BASIC, '1.0'), wptouch_add_pro_setting('image-upload', 'startup_screen_ipad_1_landscape', sprintf(__('%d by %d pixels (PNG)', 'wptouch-pro'), 1024, 748), '', WPTOUCH_SETTING_BASIC, '1.0')), $page_options, FOUNDATION_SETTING_DOMAIN);
            wptouch_add_page_section(FOUNDATION_PAGE_WEB_APP, __('Retina iPad Startup Screens', 'wptouch-pro'), 'retina-ipad-startup-screens', array(wptouch_add_pro_setting('image-upload', 'startup_screen_ipad_3_portrait', sprintf(__('%d by %d pixels (PNG)', 'wptouch-pro'), 1536, 2008), '', WPTOUCH_SETTING_BASIC, '1.0'), wptouch_add_pro_setting('image-upload', 'startup_screen_ipad_3_landscape', sprintf(__('%d by %d pixels (PNG)', 'wptouch-pro'), 2048, 1496), '', WPTOUCH_SETTING_BASIC, '1.0')), $page_options, FOUNDATION_SETTING_DOMAIN);
        }
    }
    return $page_options;
}
Example #7
0
function foundation_render_theme_settings($page_options)
{
    wptouch_add_sub_page(FOUNDATION_PAGE_GENERAL, 'foundation-page-general', $page_options);
    wptouch_add_sub_page(FOUNDATION_PAGE_BRANDING, 'foundation-page-branding', $page_options);
    $foundation_blog_settings = array(wptouch_add_setting('text', 'posts_per_page', __('Number of posts in post listings', 'wptouch-pro'), __('Overrides the WordPress Reading settings for "Blog pages show at most"', 'wptouch-pro'), WPTOUCH_SETTING_BASIC, '1.0'), wptouch_add_setting('text', 'excluded_categories', __('Excluded categories', 'wptouch-pro'), __('Comma separated by category name', 'wptouch-pro'), WPTOUCH_SETTING_BASIC, '1.0'), wptouch_add_setting('text', 'excluded_tags', __('Excluded tags', 'wptouch-pro'), __('Comma separated by tag name', 'wptouch-pro'), WPTOUCH_SETTING_BASIC, '1.0'), wptouch_add_setting('checkbox', 'allow_nested_comment_replies', __('Allow nested comment replies from mobile visitors', 'wptouch-pro'), __('Will show a Reply link after each comment', 'wptouch-pro'), WPTOUCH_SETTING_BASIC, '1.0'));
    $foundation_blog_settings = apply_filters('foundation_settings_blog', $foundation_blog_settings);
    wptouch_add_page_section(FOUNDATION_PAGE_GENERAL, __('Blog', 'wptouch-pro'), 'foundation-web-theme-settings', $foundation_blog_settings, $page_options, FOUNDATION_SETTING_DOMAIN);
    $foundation_page_settings = array(wptouch_add_setting('checkbox', 'show_comments_on_pages', __('Show comments on pages', 'wptouch-pro'), __('Overrides the WordPress settings for showing comments on pages.', 'wptouch-pro'), WPTOUCH_SETTING_BASIC, '1.0'));
    $foundation_page_settings = apply_filters('foundation_settings_pages', $foundation_page_settings);
    wptouch_add_page_section(FOUNDATION_PAGE_GENERAL, __('Pages', 'wptouch-pro'), 'foundation-pages', $foundation_page_settings, $page_options, FOUNDATION_SETTING_DOMAIN);
    wptouch_add_sub_page(FOUNDATION_PAGE_HOMESCREEN_ICONS, 'foundation-page-homescreen-icons', $page_options);
    /* Homescreen Icon Area */
    wptouch_add_page_section(FOUNDATION_PAGE_HOMESCREEN_ICONS, __('Icon Title', 'wptouch-pro'), 'admin_menu_homescreen_icons_options', array(wptouch_add_pro_setting('text', 'homescreen_icon_title', __('Icon title', 'wptouch-pro'), __('When visitors bookmark your website, this will be the title shown.', 'wptouch-pro'), WPTOUCH_SETTING_BASIC, '1.0')), $page_options, FOUNDATION_SETTING_DOMAIN);
    wptouch_add_page_section(FOUNDATION_PAGE_HOMESCREEN_ICONS, __('Android', 'wptouch-pro'), 'admin_menu_homescreen_android', array(wptouch_add_setting('image-upload', 'android_others_icon', sprintf(__('%d by %d pixels (PNG)', 'wptouch-pro'), 96, 96), '', WPTOUCH_SETTING_BASIC, '2.0')), $page_options, FOUNDATION_SETTING_DOMAIN);
    wptouch_add_page_section(FOUNDATION_PAGE_HOMESCREEN_ICONS, __('iPhone & iPod touch', 'wptouch-pro'), 'admin_menu_homescreen_iphone_android_retina', array(wptouch_add_setting('image-upload', 'iphone_icon_retina', sprintf(__('%d by %d pixels (PNG)', 'wptouch-pro'), 180, 180), '', WPTOUCH_SETTING_BASIC, '2.0')), $page_options, FOUNDATION_SETTING_DOMAIN);
    if (foundation_has_theme_colors()) {
        $color_settings = array();
        $colors = foundation_get_theme_colors();
        foreach ($colors as $name => $color) {
            $color_settings[] = wptouch_add_setting('color', $color->setting, $color->desc, '', WPTOUCH_SETTING_BASIC, '1.0', '', $color->domain);
        }
        wptouch_add_page_section(FOUNDATION_PAGE_BRANDING, __('Theme Colors', 'wptouch-pro'), 'foundation-colors', $color_settings, $page_options, FOUNDATION_SETTING_DOMAIN);
    }
    $foundation_logo_settings = array(wptouch_add_setting('image-upload', 'logo_image', __('(Scaled by themes to fit logo areas as needed)', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0'));
    $foundation_logo_settings = apply_filters('foundation_settings_logo', $foundation_logo_settings);
    wptouch_add_page_section(FOUNDATION_PAGE_BRANDING, __('Site Logo', 'wptouch-pro'), 'foundation-logo', $foundation_logo_settings, $page_options, FOUNDATION_SETTING_DOMAIN);
    wptouch_add_page_section(FOUNDATION_PAGE_BRANDING, __('Smart App Banner', 'wptouch-pro'), 'foundation-smart-app-banner', array(wptouch_add_setting('text', 'smart_app_banner', sprintf(__('Enter your app\'s %sApp Store ID%s', 'wptouch-pro'), '<a href="http://itunes.apple.com/linkmaker/" target="_blank">', '</a>'), __('Your app\'s unique identifier. Find your ID from the iTunes Link Maker: Search for your app. In the link it provides, your app ID is the nine-digit number in between id and ?mt. For example Angry Birds\'s ID is 343200656.', 'wptouch-pro'), WPTOUCH_SETTING_ADVANCED, '1.0')), $page_options, FOUNDATION_SETTING_DOMAIN);
    wptouch_add_page_section(FOUNDATION_PAGE_BRANDING, __('Theme Footer', 'wptouch-pro'), 'foundation-custom-content', array(wptouch_add_setting('textarea', 'custom_footer_message', __('Custom footer content (HTML is allowed)', 'wptouch-pro'), __('You can add custom footer content that will be displayed below the switch link.', 'wptouch-pro'), WPTOUCH_SETTING_BASIC, '1.0')), $page_options, FOUNDATION_SETTING_DOMAIN);
    // No settings added to this by Foundation
    wptouch_add_sub_page(FOUNDATION_PAGE_CUSTOM, 'foundation-page-custom', $page_options);
    return $page_options;
}
function classic_render_theme_settings($page_options)
{
    wptouch_add_sub_page(CLASSIC_PAGE_TABLETS, 'classic-page-tablets', $page_options);
    wptouch_add_page_section(CLASSIC_PAGE_TABLETS, __('Tablets', 'wptouch-pro'), 'tablet-settings', array(wptouch_add_setting('checkbox', 'tablet_support', __('Add tablet support', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0')), $page_options, CLASSIC_SETTING_DOMAIN);
    wptouch_add_page_section(FOUNDATION_PAGE_GENERAL, __('Header Menu Area', 'wptouch-pro'), 'menu-tab-bar-theme-settings', array(wptouch_add_setting('checkbox', 'menu_button_as_text', __('Drop-down button says "Menu"', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0.2'), wptouch_add_setting('checkbox', 'show_tab_bar', __('Show tab bar', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0'), wptouch_add_setting('list', 'tab_bar_cat_tags', __('Tab-bar shows categories or tags', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0', array('categories_and_tags' => __('Categories and tags', 'wptouch-pro'), 'categories' => __('Categories only', 'wptouch-pro'), 'tags' => __('Tags only', 'wptouch-pro'), 'none' => __('No categories or tags', 'wptouch-pro'))), wptouch_add_setting('list', 'tab_bar_max_cat_tags', __('Max categories / tags', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0', array('5' => '5', '10' => '10', '25' => '25', '50' => '50'))), $page_options, CLASSIC_SETTING_DOMAIN);
    wptouch_add_page_section(FOUNDATION_PAGE_BRANDING, __('CSS Effects', 'wptouch-pro'), 'css-noise', array(wptouch_add_setting('checkbox', 'css_noise', __('Add a noise effect to the header and theme background', 'wptouch-pro'), __('Will apply the effect overtop of any background image you upload.', 'wptouch-pro'), WPTOUCH_SETTING_BASIC, '1.0')), $page_options, CLASSIC_SETTING_DOMAIN);
    return $page_options;
}
function foundation_render_theme_settings($page_options)
{
    wptouch_add_sub_page(FOUNDATION_PAGE_GENERAL, 'foundation-page-theme-settings', $page_options);
    if (!wptouch_admin_use_customizer()) {
        if (foundation_has_theme_colors()) {
            $color_settings = array();
            $colors = foundation_get_theme_colors();
            foreach ($colors as $name => $color) {
                $color_settings[] = wptouch_add_setting('color', $color->setting, $color->desc, '', WPTOUCH_SETTING_BASIC, '1.0', '', $color->domain);
            }
            wptouch_add_page_section(FOUNDATION_PAGE_BRANDING, __('Theme Colors', 'wptouch-pro'), 'foundation-colors', $color_settings, $page_options, FOUNDATION_SETTING_DOMAIN, false, false, 20);
        }
    }
    $foundation_blog_settings = array(wptouch_add_pro_setting('range', 'posts_per_page', __('Number of posts in post listings', 'wptouch-pro'), __('Overrides the WordPress Reading settings for "Blog pages show at most"', 'wptouch-pro'), WPTOUCH_SETTING_BASIC, '1.0', array('min' => 1, 'max' => 15, 'step' => 1)), wptouch_add_pro_setting('text', 'excluded_categories', __('Excluded categories', 'wptouch-pro'), __('Comma separated by category name', 'wptouch-pro'), WPTOUCH_SETTING_BASIC, '1.0'), wptouch_add_pro_setting('text', 'excluded_tags', __('Excluded tags', 'wptouch-pro'), __('Comma separated by tag name', 'wptouch-pro'), WPTOUCH_SETTING_BASIC, '1.0'));
    $foundation_blog_settings = apply_filters('foundation_settings_blog', $foundation_blog_settings);
    $foundation_page_settings = apply_filters('foundation_settings_page', array());
    wptouch_add_page_section(FOUNDATION_PAGE_GENERAL, __('Blog', 'wptouch-pro'), 'foundation-web-theme-settings', $foundation_blog_settings, $page_options, FOUNDATION_SETTING_DOMAIN, true);
    wptouch_add_page_section(FOUNDATION_PAGE_GENERAL, __('Pages', 'wptouch-pro'), 'foundation-page-settings', $foundation_page_settings, $page_options, FOUNDATION_SETTING_DOMAIN, true);
    if (!function_exists('has_site_icon')) {
        wptouch_add_page_section(FOUNDATION_PAGE_GENERAL, __('Site Icon', 'wptouch-pro'), 'admin_menu_homescreen_android', array(wptouch_add_setting('image-upload', 'iphone_icon_retina', sprintf(__('%d by %d pixels (PNG)', 'wptouch-pro'), 192, 192), false, WPTOUCH_SETTING_BASIC, '2.0')), $page_options, FOUNDATION_SETTING_DOMAIN, true, false, 30);
    }
    $foundation_header_settings = array(wptouch_add_setting('image-upload', 'logo_image', __('Site Logo', 'wptouch-pro'), false, WPTOUCH_SETTING_BASIC, false, '1.0'));
    $foundation_header_settings = apply_filters('foundation_settings_header', $foundation_header_settings);
    wptouch_add_page_section(FOUNDATION_PAGE_BRANDING, __('Header', 'wptouch-pro'), 'foundation-header', $foundation_header_settings, $page_options, FOUNDATION_SETTING_DOMAIN, true, false, 10);
    wptouch_add_page_section(FOUNDATION_PAGE_BRANDING, __('Footer', 'wptouch-pro'), 'foundation-custom-content', array(wptouch_add_setting('textarea', 'custom_footer_message', __('Custom footer content (HTML is allowed)', 'wptouch-pro'), false, WPTOUCH_SETTING_BASIC, '1.0')), $page_options, FOUNDATION_SETTING_DOMAIN, true, false, 70);
    wptouch_add_page_section(FOUNDATION_PAGE_BRANDING, __('Custom CSS', 'wptouch-pro'), 'foundation-custom-css-declarations', array(wptouch_add_setting('textarea', 'custom_css_declarations', __('Custom CSS Declarations', 'wptouch-pro'), false, WPTOUCH_SETTING_BASIC, '4.0')), $page_options, FOUNDATION_SETTING_DOMAIN, true, false, 80);
    return $page_options;
}
function wptouch_render_addon_settings($page_options)
{
    wptouch_add_sub_page(WPTOUCH_PRO_ADMIN_ADDON_OPTIONS_GENERAL, 'wptouch-admin-addon-settings-general', $page_options);
    $page_options = apply_filters('wptouch_addon_options', $page_options);
    return $page_options;
}
function wptouch_render_menu_touchboard($page_options)
{
    wptouch_add_sub_page(WPTOUCH_ADMIN_MENU_TOUCHBOARD, 'menu-touchboard', $page_options);
    wptouch_add_page_section(WPTOUCH_ADMIN_MENU_TOUCHBOARD, '', 'admin_menu_touchboard_area', array(wptouch_add_setting('custom', 'touchboard')), $page_options);
    return $page_options;
}
function wptouch_addon_multisite_render_settings($page_options)
{
    wptouch_add_sub_page(ADDON_MULTISITE_OPTIONS_PAGENAME, 'wptouch-addon-multisite', $page_options);
    wptouch_add_page_section(ADDON_MULTISITE_OPTIONS_PAGENAME, __('General Options', 'wptouch-pro'), 'mutisite-setup', array(wptouch_add_setting('list', 'force_network_locale', __('Admin Language', 'wptouch-pro'), false, WPTOUCH_SETTING_BASIC, '3.0', wptouch_admin_get_languages(), 'wptouch_pro'), wptouch_add_setting('checkbox', 'multisite_control', __('Control themes and extension downloads and updates', 'wptouch-pro'), __('If enabled, sub-sites can only activate/deactivate themes and extensions that have been downloaded in the network admin.', 'wptouch-pro'), WPTOUCH_SETTING_BASIC, '4.0', false, 'bncid')), $page_options);
    if (wptouch_has_multisite_support_licensed()) {
        wptouch_add_sub_page(ADDON_MULTISITE_DEPLOYMENT_PAGENAME, 'wptouch-addon-deployment', $page_options);
        wptouch_add_page_section(ADDON_MULTISITE_OPTIONS_PAGENAME, __('Network Defaults', 'wptouch-pro'), 'multisite-options', array(wptouch_add_pro_setting('checkbox', 'multisite_use_master_settings', __('Use my settings for new sites', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0.0'), wptouch_add_pro_setting('list', 'multisite_master_site', __('Source site', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0.0', wptouch_multisite_get_site_array())), $page_options, WPTOUCH_MULTISITE_DOMAIN, false, __('Configure WPtouch to use a site for defaults on new network sites instead of its defaults', 'wptouch-pro'));
        wptouch_add_page_section(ADDON_MULTISITE_OPTIONS_PAGENAME, __('Subsite Customizable Settings', 'wptouch-pro'), 'multisite-options', array(wptouch_add_pro_setting('checkbox', 'multisite_show_general_settings', __('General Settings', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0.0'), wptouch_add_pro_setting('checkbox', 'multisite_show_site_compat', __('Site Compatibility', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0.0'), wptouch_add_pro_setting('checkbox', 'multisite_show_devices', __('Devices', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0.0'), wptouch_add_pro_setting('checkbox', 'multisite_show_menus', __('Menu Settings', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0.0'), wptouch_add_pro_setting('checkbox', 'multisite_show_themes', __('Themes', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0.0'), wptouch_add_pro_setting('checkbox', 'multisite_show_extensions', __('Extensions', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0.0'), wptouch_add_pro_setting('checkbox', 'multisite_show_colors', __('Colors', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0.0'), wptouch_add_pro_setting('checkbox', 'multisite_show_social_media', __('Social Media Links', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0.0'), wptouch_add_pro_setting('checkbox', 'multisite_show_social_sharing', __('Social Sharing', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0.0')), $page_options, WPTOUCH_MULTISITE_DOMAIN, false, __('Select which settings sections are available to users in network subsites (network admins always see settings).', 'wptouch-pro'));
        wptouch_add_page_section(ADDON_MULTISITE_DEPLOYMENT_PAGENAME, __('Source Site', 'wptouch-pro'), 'multisite-deployment-source', array(wptouch_add_pro_setting('list', 'multisite_deployment_source', __('Source site', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0.0', wptouch_multisite_get_site_array()), wptouch_add_pro_setting('checkbox', 'multisite_deploy_general_settings', __('General Settings', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0.0'), wptouch_add_pro_setting('checkbox', 'multisite_deploy_site_compat', __('Site Compatibility', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0.0'), wptouch_add_pro_setting('checkbox', 'multisite_deploy_devices', __('Devices', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0.0'), wptouch_add_pro_setting('checkbox', 'multisite_deploy_menus', __('Menu Settings', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0.0'), wptouch_add_pro_setting('checkbox', 'multisite_deploy_themes', __('Themes', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0.0'), wptouch_add_pro_setting('checkbox', 'multisite_deploy_extensions', __('Extensions', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0.0'), wptouch_add_pro_setting('checkbox', 'multisite_deploy_colors', __('Colors', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0.0'), wptouch_add_pro_setting('checkbox', 'multisite_deploy_social_media', __('Social Media Links', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0.0'), wptouch_add_pro_setting('checkbox', 'multisite_deploy_social_sharing', __('Social Sharing', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0.0')), $page_options, WPTOUCH_MULTISITE_DOMAIN);
        wptouch_add_page_section(ADDON_MULTISITE_DEPLOYMENT_PAGENAME, __('Destination Sites', 'wptouch-pro'), 'multisite-deployment-sites', array(wptouch_add_pro_setting('sites', 'multisite_sites', '', '', WPTOUCH_SETTING_BASIC, '1.0.0')), $page_options, WPTOUCH_MULTISITE_DOMAIN);
    }
    return $page_options;
}