本文整理汇总了PHP中wptouch_add_page_section函数的典型用法代码示例。如果您正苦于以下问题:PHP wptouch_add_page_section函数的具体用法?PHP wptouch_add_page_section怎么用?PHP wptouch_add_page_section使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了wptouch_add_page_section函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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;
}
开发者ID:sb-xs,项目名称:que-pour-elle,代码行数:27,代码来源:wptouch-admin-general-settings.php
示例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;
}
开发者ID:uwmadisoncals,项目名称:Cluster-Plugins,代码行数:7,代码来源:social-links.php
示例3: wptouch_render_addons
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;
}
开发者ID:StefanBonilla,项目名称:CoupSoup,代码行数:7,代码来源:wptouch-admin-themes-and-addons.php
示例4: wptouch_pro_add_compat_settings
function wptouch_pro_add_compat_settings($page_options)
{
if (function_exists('icl_get_languages')) {
wptouch_add_page_section(WPTOUCH_ADMIN_SETUP_COMPAT, 'WPML', 'compat-wpml', array(wptouch_add_setting('checkbox', 'show_wpml_lang_switcher', __('Show WPML language switcher in theme footer', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '3.2.1')), $page_options);
}
return $page_options;
}
开发者ID:uwmadisoncals,项目名称:Cluster-Plugins,代码行数:7,代码来源:professional.php
示例5: foundation_sharing_settings
function foundation_sharing_settings($page_options)
{
if (wptouch_can_show_page('social_sharing')) {
wptouch_add_page_section(FOUNDATION_PAGE_BRANDING, __('Social Sharing', 'wptouch-pro'), 'social-sharing', array(wptouch_add_setting('checkbox', 'show_share', __('Show sharing links on posts', 'wptouch-pro'), __('Will show Facebook, Twitter, Pinterest and Email buttons.', 'wptouch-pro'), WPTOUCH_SETTING_BASIC, '2.0'), wptouch_add_setting('checkbox', 'share_on_pages', __('Also show on pages', 'wptouch-pro'), false, WPTOUCH_SETTING_BASIC, '2.0'), wptouch_add_setting('radiolist', 'share_location', __('Sharing links location', 'wptouch-pro'), false, WPTOUCH_SETTING_BASIC, '2.0', array('top' => __('Above post content', 'wptouch-pro'), 'bottom' => __('Below post content', 'wptouch-pro'))), wptouch_add_setting('radiolist', 'share_colour_scheme', __('Color scheme', 'wptouch-pro'), false, WPTOUCH_SETTING_BASIC, '2.0', array('default' => __('Theme colors', 'wptouch-pro'), 'vibrant' => __('Social network colors', 'wptouch-pro')))), $page_options, FOUNDATION_SETTING_DOMAIN, true);
}
return $page_options;
}
开发者ID:uwmadisoncals,项目名称:Cluster-Plugins,代码行数:7,代码来源:sharing.php
示例6: foundation_admin_panel
function foundation_admin_panel($page_options)
{
$fonts = foundation_get_google_font_pairings();
if (count($fonts)) {
$font_defaults = array('default' => __('Browser Fonts', 'wptouch-pro'));
foreach ($fonts as $setting_value => $font_info) {
$font_defaults[$setting_value] = sprintf('%s & %s', $font_info[0]->name, $font_info[1]->name);
}
wptouch_add_page_section(FOUNDATION_PAGE_BRANDING, __('Typography', 'wptouch-pro'), 'foundation-typography', array(wptouch_add_setting('list', 'typography_sets', __('Font style', 'wptouch-pro'), __('Choose a Google font pairing designed for this theme, or default browser fonts.', 'wptouch-pro'), WPTOUCH_SETTING_BASIC, '1.0', $font_defaults)), $page_options, FOUNDATION_SETTING_DOMAIN);
}
return $page_options;
}
开发者ID:patrickmetzger,项目名称:adthrive-touch,代码行数:12,代码来源:google-fonts.php
示例7: foundation_twitter_settings
function foundation_twitter_settings($page_options)
{
if (defined('WORDTWIT_WPTOUCH_PRO_EXT')) {
$twitter_accounts = array('none' => __('Disabled', 'wptouch-pro'));
$accounts = wordtwit_wptouch_get_accounts();
foreach ($accounts as $name => $account) {
$twitter_accounts[$name] = $name;
}
wptouch_add_page_section(FOUNDATION_PAGE_GENERAL, 'Twitter', 'foundation-web-mobile-twitter', array(wptouch_add_setting('list', 'twitter_account', __('Twitter account to use for Tweet display', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0', $twitter_accounts)), $page_options, FOUNDATION_SETTING_DOMAIN);
}
return $page_options;
}
开发者ID:liangwei1988,项目名称:wordpress,代码行数:12,代码来源:twitter.php
示例8: 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;
}
开发者ID:StefanBonilla,项目名称:CoupSoup,代码行数:13,代码来源:advertising.php
示例9: wptouch_custom_posts_render_theme_settings
function wptouch_custom_posts_render_theme_settings($page_options)
{
$custom_post_settings = array();
$post_types = wptouch_custom_posts_get_list(true);
if (count($post_types)) {
foreach ($post_types as $post_type) {
$setting = wptouch_add_setting('checkbox', wptouch_custom_posts_get_name_for_post_type($post_type), sprintf(__('Enable %s', 'wptouch-pro'), $post_type), '', WPTOUCH_SETTING_BASIC, '1.0', FOUNDATION_SETTING_DOMAIN);
$custom_post_settings[] = $setting;
}
wptouch_add_page_section(FOUNDATION_PAGE_GENERAL, __('Custom Post Support', 'wptouch-pro'), 'foundation-web-custom-post-type-support', array(wptouch_add_setting('checkbox', 'enable_custom_post_types', __('Enable custom post-type support', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0'), wptouch_add_setting('checkbox', 'show_custom_post_taxonomy', __('Show custom post taxonomy', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0')), $page_options, FOUNDATION_SETTING_DOMAIN);
wptouch_add_page_section(FOUNDATION_PAGE_GENERAL, __('Custom Post Types', 'wptouch-pro'), 'foundation-web-custom-post-types', $custom_post_settings, $page_options, FOUNDATION_SETTING_DOMAIN);
}
return $page_options;
}
开发者ID:sydneyDAD,项目名称:cardguys.com,代码行数:14,代码来源:custom-posts.php
示例10: 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;
}
开发者ID:patrickmetzger,项目名称:adthrive-touch,代码行数:15,代码来源:webapp.php
示例11: wptouch_render_menu_page
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;
}
开发者ID:dtekcth,项目名称:datateknologer.se,代码行数:19,代码来源:wptouch-admin-menus.php
示例12: 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;
}
开发者ID:StefanBonilla,项目名称:CoupSoup,代码行数:23,代码来源:webapp.php
示例13: 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;
}
开发者ID:uwmadisoncals,项目名称:Cluster-Plugins,代码行数:28,代码来源:root-functions.php
示例14: 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;
}
开发者ID:uwmadisoncals,项目名称:Cluster-Plugins,代码行数:20,代码来源:featured.php
示例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;
}
开发者ID:jamesfacts,项目名称:gissler_wp_touch,代码行数:5,代码来源:geolocation.php
示例16: 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,
|
请发表评论