本文整理汇总了PHP中wptouch_add_pro_setting函数的典型用法代码示例。如果您正苦于以下问题:PHP wptouch_add_pro_setting函数的具体用法?PHP wptouch_add_pro_setting怎么用?PHP wptouch_add_pro_setting使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了wptouch_add_pro_setting函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: wptouch_render_general_page
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 & 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 & 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;
}
示例2: foundation_social_links_settings
function foundation_social_links_settings($page_options)
{
if (wptouch_can_show_page('social_media')) {
wptouch_add_page_section(FOUNDATION_PAGE_BRANDING, __('Social Media Links', 'wptouch-pro'), 'footer-social-links', array(wptouch_add_setting('url', 'social_facebook_url', 'Facebook', __('Full URL to your Facebook page', 'wptouch-pro'), WPTOUCH_SETTING_BASIC, '1.0'), wptouch_add_setting('url', 'social_twitter_url', 'Twitter', __('Full URL to your Twitter profile', 'wptouch-pro'), WPTOUCH_SETTING_BASIC, '1.0'), wptouch_add_setting('url', 'social_google_url', 'Google+', __('Full URL to your Google+ profile', 'wptouch-pro'), WPTOUCH_SETTING_BASIC, '1.0'), wptouch_add_setting('url', 'social_instagram_url', 'Instagram', __('Full URL to your Instagram profile', 'wptouch-pro'), WPTOUCH_SETTING_BASIC, '1.0'), wptouch_add_setting('url', 'social_tumblr_url', __('Tumblr', 'wptouch-pro'), __('Full URL to your Tumblr profile', 'wptouch-pro'), WPTOUCH_SETTING_BASIC, '2.0.1'), wptouch_add_pro_setting('url', 'social_pinterest_url', 'Pinterest', __('Full URL to your Pinterest page', 'wptouch-pro'), WPTOUCH_SETTING_BASIC, '1.0.2'), wptouch_add_pro_setting('url', 'social_vimeo_url', 'Vimeo', __('Full URL to your Vimeo page', 'wptouch-pro'), WPTOUCH_SETTING_BASIC, '1.0.2'), wptouch_add_pro_setting('url', 'social_youtube_url', 'YouTube', sprintf(__('Full URL to your %s profile', 'wptouch-pro'), 'YouTube'), WPTOUCH_SETTING_BASIC, '1.0.5'), wptouch_add_pro_setting('url', 'social_linkedin_url', __('LinkedIn', 'wptouch-pro'), __('Full URL to your LinkedIn profile', 'wptouch-pro'), WPTOUCH_SETTING_BASIC, '1.0.2'), wptouch_add_setting('url', 'social_yelp_url', 'Yelp', __('Full URL to your Yelp profile', 'wptouch-pro'), WPTOUCH_SETTING_BASIC, '1.0'), wptouch_add_setting('url', 'social_email_url', __('E-Mail', 'wptouch-pro'), __('E-Mail address', 'wptouch-pro'), WPTOUCH_SETTING_BASIC, '1.0'), wptouch_add_setting('url', 'social_rss_url', 'RSS', __('Full URL to your RSS feed', 'wptouch-pro'), WPTOUCH_SETTING_BASIC, '1.0.2')), $page_options, FOUNDATION_SETTING_DOMAIN, true);
}
return $page_options;
}
示例3: wptouch_render_devices_page
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;
}
示例4: foundation_ad_settings
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;
}
示例5: foundation_webapp_settings
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;
}
示例6: foundation_webapp_settings
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;
}
示例7: foundation_featured_settings
function foundation_featured_settings($page_options)
{
$settings = foundation_get_settings();
if ($settings->featured_enabled) {
$featured_settings = array(wptouch_add_setting('range', 'featured_max_number_of_posts', __('Maximum number of posts', 'wptouch-pro'), '', WPTOUCH_SETTING_ADVANCED, '2.0', array('min' => 1, 'max' => 10, 'step' => 1)), wptouch_add_setting('checkbox', 'featured_autoslide', __('Automatically slide', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0.2'), wptouch_add_pro_setting('checkbox', 'featured_continuous', __('Continuously slide', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0.2'), wptouch_add_setting('checkbox', 'featured_grayscale', __('Grayscale images (CSS 3 effect)', 'wptouch-pro'), __('Featured slider images will be in grayscale for devices that support CSS filters.', 'wptouch-pro'), WPTOUCH_SETTING_ADVANCED, '1.0'), wptouch_add_setting('checkbox', 'featured_filter_posts', __('Featured slider posts also show in listings', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0.3'), wptouch_add_setting('list', 'featured_speed', __('Slide transition speed', 'wptouch-pro'), '', WPTOUCH_SETTING_ADVANCED, '1.0.2', array('slow' => __('Slow', 'wptouch-pro'), 'normal' => __('Normal', 'wptouch-pro'), 'fast' => __('Fast', 'wptouch-pro'))), wptouch_add_setting('list', 'featured_type', '', '', WPTOUCH_SETTING_BASIC, '1.0', array('latest' => __('Show latest posts', 'wptouch-pro'), 'tag' => __('Show posts from a specific tag', 'wptouch-pro'), 'category' => __('Show posts from a specific category', 'wptouch-pro'), 'post_type' => __('Show posts from a specific post type', 'wptouch-pro'), 'posts' => __('Show only specific posts or pages', 'wptouch-pro'))), wptouch_add_setting('text', 'featured_tag', __('Only this tag', 'wptouch-pro'), __('Enter the tag/category slug name', 'wptouch-pro'), WPTOUCH_SETTING_BASIC, '1.0'), wptouch_add_setting('text', 'featured_tag', __('Only this tag', 'wptouch-pro'), __('Enter the tag/category slug name', 'wptouch-pro'), WPTOUCH_SETTING_BASIC, '1.0', false), wptouch_add_setting('text', 'featured_category', __('Only this category', 'wptouch-pro'), __('Enter the tag/category slug name', 'wptouch-pro'), WPTOUCH_SETTING_BASIC, '1.0', false), wptouch_add_setting('list', 'featured_post_type', __('Only this post type', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '3.5.3', array_merge(array('Select Post Type'), wptouch_custom_posts_get_list())), wptouch_add_setting('text', 'featured_post_ids', __('Comma-separated list of post/page IDs', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0'));
} else {
$featured_settings = array();
}
wptouch_add_page_section(FOUNDATION_PAGE_GENERAL, __('Featured Slider', 'wptouch-pro'), 'foundation-featured-settings', array_merge(array(wptouch_add_setting('checkbox', 'featured_enabled', __('Enable featured slider', 'wptouch-pro'), __('Requires at least 2 entries to contain featured images', 'wptouch-pro'), WPTOUCH_SETTING_BASIC, '1.0')), $featured_settings), $page_options, FOUNDATION_SETTING_DOMAIN, true);
return $page_options;
}
示例8: foundation_render_theme_settings
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;
}
示例9: foundation_render_theme_settings
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;
}
示例10: foundation_featured_settings
function foundation_featured_settings($page_options)
{
$settings = foundation_get_settings();
global $wptouch_pro;
$posts_to_show_label = false;
if (defined('WPTOUCH_IS_FREE')) {
$posts_to_show_label = 'Posts to display';
}
if ($wptouch_pro->get_current_theme() == 'bauhaus' || $wptouch_pro->is_child_theme() && $wptouch_pro->get_parent_theme_info()->base == 'bauhaus') {
$featured_enhanced_setting = array(wptouch_add_setting('list', 'featured_style', __('Featured slider style', 'wptouch-pro'), false, WPTOUCH_SETTING_BASIC, '2.0', array('enhanced' => __('Enhanced', 'wptouch-pro'), 'streamlined' => __('Streamlined', 'wptouch-pro'))));
} else {
$featured_enhanced_setting = array();
}
$featured_settings = array(wptouch_add_pro_setting('range', 'featured_max_number_of_posts', __('Number of posts in slider', 'wptouch-pro'), false, WPTOUCH_SETTING_BASIC, '2.0', array('min' => 1, 'max' => 10, 'step' => 1)), wptouch_add_setting('checkbox', 'featured_comments', __('Show # of comments', 'wptouch-pro'), false, WPTOUCH_SETTING_BASIC, '2.0'), wptouch_add_pro_setting('checkbox', 'featured_autoslide', __('Slide automatically', 'wptouch-pro'), false, WPTOUCH_SETTING_BASIC, '2.0'), wptouch_add_pro_setting('checkbox', 'featured_continuous', __('Slides repeat', 'wptouch-pro'), false, WPTOUCH_SETTING_BASIC, '2.0'), wptouch_add_pro_setting('checkbox', 'featured_grayscale', __('Make images grayscale', 'wptouch-pro'), false, WPTOUCH_SETTING_BASIC, '2.0'), wptouch_add_setting('checkbox', 'featured_filter_posts', __('Slider posts also show in listings', 'wptouch-pro'), false, WPTOUCH_SETTING_BASIC, '2.0'), wptouch_add_pro_setting('list', 'featured_speed', __('Slide transition speed', 'wptouch-pro'), false, WPTOUCH_SETTING_BASIC, '2.0', array('slow' => __('Slow', 'wptouch-pro'), 'normal' => __('Normal', 'wptouch-pro'), 'fast' => __('Fast', 'wptouch-pro'))), wptouch_add_setting('list', 'featured_type', $posts_to_show_label, false, WPTOUCH_SETTING_BASIC, '2.0', array('latest' => __('Show latest posts', 'wptouch-pro'), 'tag' => __('Show posts from a specific tag', 'wptouch-pro'), 'category' => __('Show posts from a specific category', 'wptouch-pro'), 'post_type' => __('Show posts from a specific post type', 'wptouch-pro'), 'posts' => __('Show only specific posts or pages', 'wptouch-pro'))), wptouch_add_setting('text', 'featured_tag', __('Only this tag', 'wptouch-pro'), __('Enter the tag/category slug name', 'wptouch-pro'), WPTOUCH_SETTING_BASIC, '2.0', false), wptouch_add_setting('text', 'featured_category', __('Only this category', 'wptouch-pro'), __('Enter the tag/category slug name', 'wptouch-pro'), WPTOUCH_SETTING_BASIC, '2.0', false), wptouch_add_setting('text', 'featured_post_ids', __('Comma-separated list of post/page IDs', 'wptouch-pro'), false, WPTOUCH_SETTING_BASIC, '2.0'));
if (function_exists('wptouch_custom_posts_get_list')) {
$featured_settings[] = wptouch_add_pro_setting('list', 'featured_post_type', __('Only this post type', 'wptouch-pro'), false, WPTOUCH_SETTING_BASIC, '2.0', array_merge(array('Select Post Type'), wptouch_custom_posts_get_list()));
}
wptouch_add_page_section(FOUNDATION_PAGE_GENERAL, __('Featured Slider', 'wptouch-pro'), 'foundation-featured-settings', array_merge(array(wptouch_add_setting('checkbox', 'featured_enabled', __('Enable featured slider', 'wptouch-pro'), false, WPTOUCH_SETTING_BASIC, '2.0')), $featured_enhanced_setting, apply_filters('wptouch_featured_slider_settings', $featured_settings)), $page_options, FOUNDATION_SETTING_DOMAIN, true, false, 30);
return $page_options;
}
示例11: bauhaus_blog_settings
function bauhaus_blog_settings($blog_settings)
{
$blog_settings[] = wptouch_add_setting('list', 'bauhaus_use_thumbnails', __('Post thumbnails', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0', array('none' => __('No thumbnails', 'wptouch-pro'), 'index' => __('Blog listing only', 'wptouch-pro'), 'index_single' => __('Blog listing, single posts', 'wptouch-pro'), 'index_single_page' => __('Blog listing, single posts & pages', 'wptouch-pro'), 'all' => __('All (blog, single, pages, search & archive)', 'wptouch-pro')), BAUHAUS_SETTING_DOMAIN);
$blog_settings[] = wptouch_add_setting('radiolist', 'bauhaus_thumbnail_type', __('Thumbnail Selection', 'wptouch-pro'), '', WPTOUCH_SETTING_ADVANCED, '1.0', array('featured' => __('Post featured image', 'wptouch-pro'), 'custom_field' => __('Post custom field', 'wptouch-pro')), BAUHAUS_SETTING_DOMAIN);
$blog_settings[] = wptouch_add_setting('text', 'bauhaus_thumbnail_custom_field', __('Thumbnail custom field name', 'wptouch-pro'), '', WPTOUCH_SETTING_ADVANCED, '1.0', '', BAUHAUS_SETTING_DOMAIN);
$blog_settings[] = wptouch_add_setting('checkbox', 'bauhaus_show_taxonomy', __('Show post categories and tags', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0', '', BAUHAUS_SETTING_DOMAIN);
$blog_settings[] = wptouch_add_setting('checkbox', 'bauhaus_show_date', __('Show post date', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0', '', BAUHAUS_SETTING_DOMAIN);
$blog_settings[] = wptouch_add_setting('checkbox', 'bauhaus_show_author', __('Show post author', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0', '', BAUHAUS_SETTING_DOMAIN);
$blog_settings[] = wptouch_add_setting('checkbox', 'bauhaus_show_comment_bubbles', __('Show comment bubbles on posts', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0.5', '', BAUHAUS_SETTING_DOMAIN);
$blog_settings[] = wptouch_add_setting('checkbox', 'bauhaus_show_search', __('Show search in header', 'wptouch-pro'), __('Adds Search capability in the site header.', 'wptouch-pro'), WPTOUCH_SETTING_BASIC, '1.0', '', BAUHAUS_SETTING_DOMAIN);
$blog_settings[] = wptouch_add_pro_setting('checkbox', 'bauhaus_use_infinite_scroll', __('Use infinite scrolling for blog', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0', '', BAUHAUS_SETTING_DOMAIN);
return $blog_settings;
}
示例12: foundation_media_settings
function foundation_media_settings($page_options)
{
wptouch_add_page_section(FOUNDATION_PAGE_GENERAL, __('Video Handling', 'wptouch-pro'), 'foundation-media-settings', array(wptouch_add_pro_setting('list', 'video_handling_type', '', '', WPTOUCH_SETTING_BASIC, '1.0', array('none' => __('None', 'wptouch-pro'), 'css' => __('CSS only (HTML5 videos)', 'wptouch-pro'), 'fitvids' => __('FitVids Method', 'wptouch-pro'), 'fluidvids' => __('Fluid-Width Method', 'wptouch-pro')))), $page_options, FOUNDATION_SETTING_DOMAIN);
return $page_options;
}
示例13: foundation_related_posts_settings
function foundation_related_posts_settings($page_options)
{
wptouch_add_page_section(FOUNDATION_PAGE_GENERAL, __('Related Posts', 'wptouch-pro'), 'foundation-related-posts-settings', array(wptouch_add_pro_setting('checkbox', 'related_posts_enabled', __('Enable display of related content on single posts', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0.7'), wptouch_add_pro_setting('checkbox', 'related_posts_skip_tags', __('Ignore tags when identifying related posts', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0.7'), wptouch_add_pro_setting('radiolist', 'related_posts_max', __('Maximum number of related posts to show', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0.7', array('2' => '2', '3' => '3', '4' => '4'))), $page_options, FOUNDATION_SETTING_DOMAIN);
return $page_options;
}
示例14: wptouch_addon_multisite_render_settings
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;
}
示例15: wptouch_geolocation_settings
function wptouch_geolocation_settings($page_options)
{
wptouch_add_page_section(FOUNDATION_PAGE_GENERAL, __('Local Promotions', 'wptouch-pro'), 'foundation-location-settings', array(wptouch_add_pro_setting('checkbox', 'geolocation_enabled', __('Enable location detection', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0'), wptouch_add_pro_setting('text', 'geolocation_address', __('Address on which to center the geofence', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0'), wptouch_add_pro_setting('numeric', 'geolocation_radius', __('Geofence Radius (in km)', 'wptouch-pro'), '', WPTOUCH_SETTING_ADVANCED, '1.0'), wptouch_add_pro_setting('textarea', 'geolocation_html', __('Text to show to nearby visitors', 'wptouch-pro'), 'HTML is permitted.', WPTOUCH_SETTING_BASIC, '1.0'), wptouch_add_pro_setting('hidden', 'geolocation_geocoded', __('Encoded Location', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0')), $page_options, FOUNDATION_SETTING_DOMAIN);
return $page_options;
}