本文整理汇总了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'));
}
示例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());
}
示例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'));
}
示例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'));
}
示例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'));
}
示例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'));
}
示例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'));
}
示例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);
}
示例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());
}
示例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'));
}
示例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'));
}
示例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'));
}
示例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'));
}
示例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'));
}
示例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');
}