当前位置: 首页>>代码示例>>PHP>>正文


PHP genesis_add_option_filter函数代码示例

本文整理汇总了PHP中genesis_add_option_filter函数的典型用法代码示例。如果您正苦于以下问题:PHP genesis_add_option_filter函数的具体用法?PHP genesis_add_option_filter怎么用?PHP genesis_add_option_filter使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了genesis_add_option_filter函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: sanitization_filters

 /**
  * Set sanitizations
  *
  * @since 0.8
  */
 function sanitization_filters()
 {
     // bbp_forum_layout
     genesis_add_option_filter('no_html', GENESIS_SETTINGS_FIELD, array('bbp_forum_layout'));
     // bbp_forum_sidebar
     genesis_add_option_filter('one_zero', GENESIS_SETTINGS_FIELD, array('bbp_forum_sidebar'));
 }
开发者ID:norcross,项目名称:bbPress-Genesis-Extend,代码行数:12,代码来源:bbpress-genesis-extend-settings.php

示例2: sanitization_filters

 /** 
  * Set up Sanitization Filters
  *
  * See /lib/classes/sanitization.php for all available filters.
  *
  * @since 1.1.0
  */
 function sanitization_filters()
 {
     genesis_add_option_filter('no_html', $this->settings_field, array());
     genesis_add_option_filter('safe_html', $this->settings_field, array());
     genesis_add_option_filter('one_zero', $this->settings_field, array('move_nav', 'move_subnav'));
     genesis_add_option_filter('requires_unfiltered_html', $this->settings_field, array());
 }
开发者ID:freezvd,项目名称:Genesis-Sandbox,代码行数:14,代码来源:gs-settings.php

示例3: sanitizer_filters

 /**
  * Register each of the settings with a sanitization filter type.
  *
  * @since 1.7.0
  *
  * @uses genesis_add_option_filter() Assign filter to array of settings.
  *
  * @see \Genesis_Settings_Sanitizer::add_filter() Add sanitization filters to options.
  */
 public function sanitizer_filters()
 {
     // No filter: doctitle_seplocation, home_h1_on
     genesis_add_option_filter('one_zero', $this->settings_field, array('append_description_home', 'append_site_title', 'semantic_headings', 'home_noindex', 'home_nofollow', 'home_noarchive', 'head_adjacent_posts_rel_link', 'head_wlwmanifest_link', 'head_shortlink', 'noindex_cat_archive', 'noindex_tag_archive', 'noindex_author_archive', 'noindex_date_archive', 'noindex_search_archive', 'noarchive', 'noarchive_cat_archive', 'noarchive_tag_archive', 'noarchive_author_archive', 'noarchive_date_archive', 'noarchive_search_archive', 'noodp', 'noydir'));
     genesis_add_option_filter('absint', $this->settings_field, array('home_author'));
     genesis_add_option_filter('no_html', $this->settings_field, array('home_doctitle', 'home_description', 'home_keywords', 'doctitle_sep'));
 }
开发者ID:nkeat12,项目名称:dv,代码行数:16,代码来源:seo-settings.php

示例4: sanitizer_filters

 /**
  * Registers each of the settings with a sanitization filter type.
  *
  * @since 1.7.0
  *
  * @uses genesis_add_option_filter() Assign filter to array of settings
  *
  * @see Genesis_Settings_Sanitizer::add_filter()
  */
 public function sanitizer_filters()
 {
     genesis_add_option_filter('one_zero', $this->settings_field, array('show_info', 'update', 'update_email', 'redirect_feed', 'redirect_comments_feed', 'nav', 'nav_superfish', 'nav_extras_enable', 'subnav', 'subnav_superfish', 'breadcrumb_home', 'breadcrumb_single', 'breadcrumb_page', 'breadcrumb_archive', 'breadcrumb_404', 'breadcrumb_attachment', 'comments_posts', 'comments_pages', 'trackbacks_posts', 'trackbacks_pages', 'content_archive_thumbnail'));
     genesis_add_option_filter('no_html', $this->settings_field, array('style_selection'));
     genesis_add_option_filter('requires_unfiltered_html', $this->settings_field, array('header_scripts', 'footer_scripts'));
     genesis_add_option_filter('url', $this->settings_field, array('feed_uri', 'comments_feed_uri'));
 }
开发者ID:adisonc,项目名称:MaineLearning,代码行数:16,代码来源:theme-settings.php

示例5: sanitizer_filters

 /**
  * Register each of the settings with a sanitization filter type.
  *
  * @since 1.0.5
  *
  * @uses genesis_add_option_filter() Assign filter to array of settings.
  *
  * @see \Genesis_Settings_Sanitizer::add_filter()
  */
 public function sanitizer_filters()
 {
     genesis_add_option_filter('no_html', $this->settings_field, array('baconbar_button_text', 'baconbar_position', 'baconbar_size'));
     genesis_add_option_filter('safe_html', $this->settings_field, array('baconbar_teaser_text'));
     genesis_add_option_filter('one_zero', $this->settings_field, array('baconbar_target_blank', 'baconbar_is_sticky', 'baconbar_has_border'));
     genesis_add_option_filter('url', $this->settings_field, array('baconbar_button_url'));
 }
开发者ID:sbusso,项目名称:genesis-bacon-bar,代码行数:16,代码来源:class-settings.php

示例6: genesis_register_core_sanitization_filters

/**
 * Registers Genesis core option sanitization filters
 * @since 1.7.0
 */
function genesis_register_core_sanitization_filters()
{
    genesis_add_option_filter('one_zero', GENESIS_SEO_SETTINGS_FIELD, array('append_description_home', 'append_site_title', 'home_noindex', 'home_nofollow', 'home_noarchive', 'head_index_rel_link', 'head_parent_post_rel_link', 'head_start_post_rel_link', 'head_adjacent_posts_rel_link', 'head_wlwmanifest_link', 'head_shortlink', 'noindex_cat_archive', 'noindex_tag_archive', 'noindex_author_archive', 'noindex_date_archive', 'noindex_search_archive', 'noarchive', 'noarchive_cat_archive', 'noarchive_tag_archive', 'noarchive_author_archive', 'noarchive_date_archive', 'noarchive_search_archive', 'noodp', 'noydir', 'canonical_archives'));
    genesis_add_option_filter('no_html', GENESIS_SEO_SETTINGS_FIELD, array('home_doctitle', 'home_description', 'home_keywords', 'doctitle_sep'));
    genesis_add_option_filter('one_zero', GENESIS_SETTINGS_FIELD, array('show_info', 'update', 'update_email', 'redirect_feed', 'redirect_comments_feed', 'nav', 'nav_superfish', 'nav_extras_enable', 'subnav', 'subnav_superfish', 'breadcrumb_home', 'breadcrumb_single', 'breadcrumb_page', 'breadcrumb_archive', 'breadcrumb_404', 'comments_posts', 'comments_pages', 'trackbacks_posts', 'trackbacks_pages', 'content_archive_thumbnail'));
    genesis_add_option_filter('requires_unfiltered_html', GENESIS_SETTINGS_FIELD, array('header_scripts', 'footer_scripts'));
}
开发者ID:elderxavier,项目名称:ALLAN-JUNIOR-IAN,代码行数:11,代码来源:theme-settings.php

示例7: sanitizer_filters

 /** Sanitizing the plugin options **/
 function sanitizer_filters()
 {
     genesis_add_option_filter('one_zero', $this->settings_field, array('gfb_footer_menu', 'gfb_date_format'));
     genesis_add_option_filter('no_html', $this->settings_field, array('gfb_brand'));
     genesis_add_option_filter('absint', $this->settings_field, array('gfb_privacy', 'gfb_disclaimer'));
     genesis_add_option_filter('safe_html', $this->settings_field, array('gfb_output'));
     genesis_add_option_filter('url', $this->settings_field, array('gfb_affiliate_link'));
 }
开发者ID:JosephWesker,项目名称:InfoTrash-Web,代码行数:9,代码来源:gfb-admin.php

示例8: sanitization

 /** 
  * Sitewide Setting - Sanitization
  * @link http://www.billerickson.net/genesis-theme-options/
  *
  */
 function sanitization()
 {
     $fields = array();
     $post_types = apply_filters('be_title_toggle_post_types', array('page'));
     foreach ($post_types as $post_type) {
         $fields[] = 'be_title_toggle_' . $post_type;
     }
     genesis_add_option_filter('one_zero', GENESIS_SETTINGS_FIELD, $fields);
 }
开发者ID:jaredatch,项目名称:Genesis-Title-Toggle,代码行数:14,代码来源:genesis-title-toggle.php

示例9: sanitizer_filters

 /**
  * Register each of the settings with a sanitization filter type.
  *
  * @since 1.7.0
  *
  * @uses genesis_add_option_filter() Assign filter to array of settings.
  *
  * @see \Genesis_Settings_Sanitizer::add_filter() Add sanitization filters to options.
  */
 public function sanitizer_filters()
 {
     genesis_add_option_filter('one_zero', $this->settings_field, array());
     genesis_add_option_filter('no_html', $this->settings_field, array());
     genesis_add_option_filter('absint', $this->settings_field, array());
     genesis_add_option_filter('safe_html', $this->settings_field, array());
     genesis_add_option_filter('requires_unfiltered_html', $this->settings_field, array());
     genesis_add_option_filter('url', $this->settings_field, array());
 }
开发者ID:sputnick3k,项目名称:default-wordpress-theme,代码行数:18,代码来源:admin.php

示例10: sanitizer_filters

 /**
  * Register each of the settings with a sanitization filter type.
  *
  * There is no filter for: image_size
  *
  * @since 1.7.0
  *
  * @see \Genesis_Settings_Sanitizer::add_filter() Add sanitization filters to options.
  */
 public function sanitizer_filters()
 {
     genesis_add_option_filter('one_zero', $this->settings_field, array('breadcrumb_front_page', 'breadcrumb_home', 'breadcrumb_single', 'breadcrumb_page', 'breadcrumb_posts_page', 'breadcrumb_archive', 'breadcrumb_404', 'breadcrumb_attachment', 'comments_posts', 'comments_pages', 'content_archive_thumbnail', 'superfish', 'redirect_feed', 'redirect_comments_feed', 'trackbacks_posts', 'trackbacks_pages', 'update', 'update_email'));
     genesis_add_option_filter('no_html', $this->settings_field, array('blog_cat_exclude', 'blog_title', 'content_archive', 'nav_extras', 'nav_extras_twitter_id', 'posts_nav', 'site_layout', 'style_selection', 'theme_version'));
     genesis_add_option_filter('absint', $this->settings_field, array('blog_cat', 'blog_cat_num', 'content_archive_limit', 'db_version'));
     genesis_add_option_filter('safe_html', $this->settings_field, array('nav_extras_twitter_text'));
     genesis_add_option_filter('requires_unfiltered_html', $this->settings_field, array('header_scripts', 'footer_scripts'));
     genesis_add_option_filter('url', $this->settings_field, array('feed_uri', 'comments_feed_uri'));
     genesis_add_option_filter('email_address', $this->settings_field, array('update_email_address'));
 }
开发者ID:netmagik,项目名称:netmagik,代码行数:19,代码来源:theme-settings.php

示例11: sanitizer_filters

 /**
  * Register each of the settings with a sanitization filter type.
  *
  * @since 0.9.0
  *
  * @uses genesis_add_option_filter() Assign filter to array of settings.
  *
  * @see \Genesis_Settings_Sanitizer::add_filter() Add sanitization filters to options.
  */
 function sanitizer_filters()
 {
     $one_zero = array('googlePlus', 'facebook', 'twitter', 'pinterest', 'linkedin', 'stumbleupon', 'general_show_archive');
     $post_types = get_post_types(array('public' => true));
     foreach ($post_types as $post_type) {
         $one_zero[] = 'general_' . $post_type;
     }
     genesis_add_option_filter('one_zero', $this->settings_field, $one_zero);
     genesis_add_option_filter('no_html', $this->settings_field, array('general_size', 'general_position', 'general_appearance', 'twitter_id'));
     genesis_add_option_filter('url', $this->settings_field, array('image_url'));
 }
开发者ID:jonpetersen,项目名称:PHTC,代码行数:20,代码来源:admin.php

示例12: msdlab_register_blue_sanitization_filters

/**
 * Sanitization
 * @author MSD Lab
 *
 */
function msdlab_register_blue_sanitization_filters()
{
    genesis_add_option_filter('no_html', GENESIS_SETTINGS_FIELD, array('color', 'logo'));
}
开发者ID:foxydot,项目名称:daretocare,代码行数:9,代码来源:theme_options.php

示例13: bfg_settings_sanitizer

/**
 * Set filters for custom theme options.
 *
 * @since 2.3.0
 */
function bfg_settings_sanitizer()
{
    genesis_add_option_filter('one_zero', GENESIS_SETTINGS_FIELD, array('bfg_production_on'));
    genesis_add_option_filter('absint', GENESIS_SETTINGS_FIELD, array('bfg_assets_version'));
}
开发者ID:ricardovelero,项目名称:bones-for-genesis-2-0,代码行数:10,代码来源:admin-options.php

示例14: genesis_responsive_slider_sanitization

/**
 * Add settings to Genesis sanitization
 *
 */
function genesis_responsive_slider_sanitization()
{
    genesis_add_option_filter('one_zero', GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD, array('slideshow_arrows', 'slideshow_excerpt_show', 'slideshow_title_show', 'slideshow_loop', 'slideshow_hide_mobile', 'slideshow_no_link', 'slideshow_pager'));
    genesis_add_option_filter('no_html', GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD, array('post_type', 'posts_term', 'exclude_terms', 'include_exclude', 'post_id', 'posts_num', 'posts_offset', 'orderby', 'slideshow_timer', 'slideshow_delay', 'slideshow_height', 'slideshow_width', 'slideshow_effect', 'slideshow_excerpt_content', 'slideshow_excerpt_content_limit', 'slideshow_more_text', 'slideshow_excerpt_width', 'location_vertical', 'location_horizontal'));
}
开发者ID:hscale,项目名称:webento,代码行数:9,代码来源:genesis-responsive-slider.php

示例15: associate_sanitization

/** 
* Add style switcher setting to Genesis sanitization 
* 
*/
function associate_sanitization($pagehook)
{
    genesis_add_option_filter('no_html', GENESIS_SETTINGS_FIELD, 'style_selection');
}
开发者ID:nmrugg,项目名称:studiopress-premum-wp-themes,代码行数:8,代码来源:style.php


注:本文中的genesis_add_option_filter函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。