本文整理汇总了PHP中wptouch_add_setting函数的典型用法代码示例。如果您正苦于以下问题:PHP wptouch_add_setting函数的具体用法?PHP wptouch_add_setting怎么用?PHP wptouch_add_setting使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了wptouch_add_setting函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: 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;
}
示例2: 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;
}
示例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;
}
示例4: 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;
}
示例5: 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;
}
示例6: 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;
}
示例7: 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;
}
示例8: 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;
}
示例9: 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;
}
示例10: 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;
}
示例11: wptouch_custom_latest_post_settings
function wptouch_custom_latest_post_settings($settings)
{
$settings[] = wptouch_add_setting('custom-latest-posts', false, false, false, WPTOUCH_SETTING_BASIC, '2.3.3');
return $settings;
}
示例12: 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;
}
示例13: wptouch_custom_latest_post_settings
function wptouch_custom_latest_post_settings($settings)
{
$settings[] = wptouch_add_setting('custom-latest-posts', '', '', '', WPTOUCH_SETTING_ADVANCED, '1.0.4');
return $settings;
}
示例14: 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_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;
}
示例15: bauhaus_page_settings
function bauhaus_page_settings($page_settings)
{
$page_settings[] = wptouch_add_setting('checkbox', 'bauhaus_show_featured_slider_on_front', __('Show featured slider on front page', 'wptouch-pro'), '', WPTOUCH_SETTING_BASIC, '1.0', '', BAUHAUS_SETTING_DOMAIN);
return $page_settings;
}