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


PHP remove_theme_support函数代码示例

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


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

示例1: test__wp_render_title_no_theme_support

 function test__wp_render_title_no_theme_support()
 {
     $this->go_to('/');
     remove_theme_support('title-tag');
     $this->expectOutputString('');
     _wp_render_title_tag();
 }
开发者ID:atimmer,项目名称:wordpress-develop-mirror,代码行数:7,代码来源:document-title.php

示例2: shoestrap_hide_navbar

function shoestrap_hide_navbar()
{
    $navbar = get_theme_mod('shoestrap_navbar_top');
    if ($navbar == 0) {
        remove_theme_support('bootstrap-top-navbar');
    }
}
开发者ID:rhensley,项目名称:shoestrap,代码行数:7,代码来源:extras.php

示例3: testWPTitle

 function testWPTitle()
 {
     //since we're testing with twentyfourteen -- need to remove its filters on wp_title
     remove_all_filters('wp_title');
     remove_theme_support('title-tag');
     $this->assertEquals('', TimberHelper::get_wp_title());
 }
开发者ID:ruscon,项目名称:timber,代码行数:7,代码来源:test-timber-helper.php

示例4: calibrefx_init_mobile_site

/**
 * If mobile site is enable and there is a mobile template, then display mobile layout on mobile
 */
function calibrefx_init_mobile_site()
{
    global $calibrefx;
    //Register mobile menu
    register_nav_menus(array('mobile' => apply_filters('mobile_menu_text', __('Mobile Navigation Menu', 'calibrefx'))));
    if (is_admin() or !wp_is_mobile()) {
        return;
    }
    remove_theme_support('calibrefx-footer-widgets');
    remove_theme_support('calibrefx-header-right-widgets');
    //Disable wp admin bar
    show_admin_bar(false);
    add_filter('body_class', 'calibrefx_mobile_site_body_class');
    add_filter('wrapper_class', 'calibrefx_mobile_wrapper_class');
    add_filter('wrapper_attr', 'calibrefx_mobile_wrapper_attr');
    remove_action('calibrefx_after_header', 'calibrefx_do_nav');
    remove_action('calibrefx_after_header', 'calibrefx_do_subnav', 15);
    add_action('calibrefx_before_wrapper', 'calibrefx_do_top_mobile_nav');
    add_action('calibrefx_after_wrapper', 'calibrefx_do_mobile_footer', 100);
    add_filter('template_include', 'calibrefx_get_mobile_template');
    if (file_exists(CHILD_MOBILE_URI . '/functions.php')) {
        load_template(CHILD_MOBILE_URI . '/functions.php');
    }
    $calibrefx->hooks->remove('calibrefx_before_loop', 'calibrefx_do_breadcrumbs', 10);
    $calibrefx->hooks->remove('calibrefx_before_loop', 'calibrefx_do_notification', 20);
    $calibrefx->hooks->remove('calibrefx_sidebar', 'calibrefx_do_sidebar');
    $calibrefx->hooks->remove('calibrefx_sidebar_alt', 'calibrefx_do_sidebar_alt');
    $calibrefx->hooks->remove('calibrefx_after_post_content', 'calibrefx_do_author_box_single', 20);
    $calibrefx->hooks->remove('calibrefx_footer', 'calibrefx_footer_area', 10);
    //On mobile there is no sidebar
    add_filter('calibrefx_site_layout', 'calibrefx_layout_full_width');
}
开发者ID:alispx,项目名称:calibrefx,代码行数:35,代码来源:minicfx.php

示例5: remove_parent_features

function remove_parent_features()
{
    remove_action('init', 'gdlr_register_portfolio_admin_option');
    remove_action('init', 'gdlr_init_page_feature');
    //remove theme support for post formats
    remove_theme_support('post-formats');
}
开发者ID:CityOfPhiladelphia,项目名称:business.phila.gov,代码行数:7,代码来源:functions.php

示例6: wordpressAction

 public function wordpressAction(Request $request)
 {
     $this->get('wordpress.loader')->load();
     $this->get('wordpress.loader')->loadPostInWordpressFromRequest($request);
     remove_theme_support('custom-header');
     remove_action('wp_head', 'wp_enqueue_scripts', 1);
     remove_action('wp_head', 'feed_links', 2);
     remove_action('wp_head', 'feed_links_extra', 3);
     remove_action('wp_head', 'rsd_link');
     remove_action('wp_head', 'wlwmanifest_link');
     remove_action('wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0);
     remove_action('wp_head', 'locale_stylesheet');
     remove_action('wp_head', 'noindex', 1);
     remove_action('wp_head', 'wp_print_styles', 8);
     remove_action('wp_head', 'wp_print_head_scripts', 9);
     remove_action('wp_head', 'wp_generator');
     remove_action('wp_head', 'rel_canonical');
     remove_action('wp_head', 'wp_shortlink_wp_head', 10, 0);
     ob_start();
     @wp_head();
     $head = ob_get_clean();
     ob_start();
     $content = dynamic_sidebar('sidebar-2');
     $side = ob_get_clean();
     ob_start();
     the_content();
     $content = ob_get_clean();
     $post = array('content' => $content);
     return $this->render($this->container->getParameter('wordpress.template'), array('post' => $post));
 }
开发者ID:cmoncy,项目名称:WordpressBundle,代码行数:30,代码来源:DefaultController.php

示例7: genesis_seo_compatibility_check

function genesis_seo_compatibility_check()
{
    //	Disable all SEO functions if a popular SEO plugin is active
    if (class_exists('wpSEO') || class_exists('All_in_One_SEO_Pack') || class_exists('HeadSpace_Plugin') || class_exists('Platinum_SEO_Pack') || defined('WPSEO_VERSION')) {
        remove_filter('wp_title', 'genesis_default_title', 10, 3);
        remove_action('get_header', 'genesis_doc_head_control');
        remove_action('genesis_meta', 'genesis_seo_meta_description');
        remove_action('genesis_meta', 'genesis_seo_meta_keywords');
        remove_action('genesis_meta', 'genesis_robots_meta');
        remove_action('wp_head', 'genesis_canonical');
        add_action('wp_head', 'rel_canonical');
        remove_action('admin_menu', 'genesis_add_inpost_seo_box');
        remove_action('save_post', 'genesis_inpost_seo_save', 1, 2);
        remove_action('admin_init', 'genesis_add_taxonomy_seo_options');
        remove_action('edit_term', 'genesis_term_meta_save', 10, 2);
        remove_action('show_user_profile', 'genesis_user_seo_fields');
        remove_action('edit_user_profile', 'genesis_user_seo_fields');
        remove_theme_support('genesis-seo-settings-menu');
        add_filter('pre_option_' . GENESIS_SEO_SETTINGS_FIELD, '__return_empty_array');
    }
    //	disable Genesis <title> generation if SEO Title Tag is active
    if (function_exists('seo_title_tag')) {
        remove_filter('wp_title', 'genesis_default_title', 10, 3);
        remove_action('genesis_title', 'wp_title');
        add_action('genesis_title', 'seo_title_tag');
    }
}
开发者ID:Weissenberger13,项目名称:web.portugalrentalcottages,代码行数:27,代码来源:seo.php

示例8: adaline_logo_letter_setup

/**
 * Remove unneeded Jetpack Logo related functions.
 * Hook into after_theme_setup with priority of 11
 * to override parent theme functions.
 *
 * @link https://codex.wordpress.org/Function_Reference/remove_theme_support
 *
 */
function adaline_logo_letter_setup()
{
    // This will remove the image size used exclusively with Jetpack Site Logo
    remove_image_size('adaline-logo');
    // This will remove theme support for Jetpack Site Logo
    remove_theme_support('site-logo');
}
开发者ID:Themetry,项目名称:Adaline-Logo-Letter,代码行数:15,代码来源:functions.php

示例9: test_xhtml_markup_specified_by_theme_support

 function test_xhtml_markup_specified_by_theme_support()
 {
     $this->assertFalse(thematic_is_legacy_xhtml());
     add_theme_support('thematic_xhtml');
     $this->assertTrue(thematic_is_legacy_xhtml());
     remove_theme_support('thematic_xhtml');
     $this->assertFalse(thematic_is_legacy_xhtml());
 }
开发者ID:scottnix,项目名称:Thematic,代码行数:8,代码来源:test-helpers.php

示例10: gb3_custom_theme_support

function gb3_custom_theme_support()
{
    $bsg_add_theme_support = array('bsg-add-head-markup', 'bsg-bootstrap-markup', 'bsg-bootstrap-walker', 'bsg-comment-form', 'bsg-custom-css-js', 'bsg-customizer', 'bsg-footer-creds', 'bsg-genesis-setup', 'bsg-image-display', 'bsg-load-assets', 'bsg-nav', 'bsg-pagination', 'bsg-post-content-nav', 'bsg-search-form', 'bsg-jumbotron');
    foreach ($bsg_add_theme_support as $bsg_support) {
        add_theme_support($bsg_support);
    }
    remove_theme_support('genesis-accessibility');
}
开发者ID:CandidApps,项目名称:genesis-bootstrap,代码行数:8,代码来源:genesis-bootstrap.php

示例11: smittenkitchen_search_posts_per_page

/**
 * Show all posts on initial page for search results.
 * Temp solution for ES and IS conflict.
 */
function smittenkitchen_search_posts_per_page($query)
{
    if (!is_admin() && is_search() && $query->is_main_query()) {
        remove_theme_support('infinite-scroll');
        $query->set('posts_per_page', 999);
    }
    return $query;
}
开发者ID:a8cteam51,项目名称:smittenkitchen,代码行数:12,代码来源:jetpack.php

示例12: mobile_theme_setup

function mobile_theme_setup()
{
    /* Load the primary menu. */
    remove_action('omega_before_header', 'omega_get_primary_menu');
    add_action('omega_header', 'omega_get_primary_menu');
    add_filter('omega_site_description', 'mobile_site_description');
    remove_theme_support('omega-custom-logo');
    remove_action("omega_header", 'omega_branding');
    add_action('init', 'mobile_init', 1);
}
开发者ID:davidgilman,项目名称:Live2Give,代码行数:10,代码来源:functions.php

示例13: tearDown

	function tearDown() {
		global $wpdb, $wp_query, $post;
		$this->expectedDeprecated();
		$wpdb->query( 'ROLLBACK' );
		$wp_query = new WP_Query();
		$post = null;
		remove_theme_support( 'html5' );
		remove_filter( 'query', array( $this, '_create_temporary_tables' ) );
		remove_filter( 'query', array( $this, '_drop_temporary_tables' ) );
		remove_filter( 'wp_die_handler', array( $this, 'get_wp_die_handler' ) );
	}
开发者ID:staylor,项目名称:develop.svn.wordpress.org,代码行数:11,代码来源:testcase.php

示例14: test_supports_by_theme_support

 /**
  * @group bu-navigation-features
  */
 public function test_supports_by_theme_support()
 {
     $features = $this->plugin->features();
     foreach ($features as $feature => $default) {
         $this->assertEquals($default, $this->plugin->supports($feature));
         add_theme_support('bu-navigation-' . $feature);
         $this->assertTrue($this->plugin->supports($feature));
         remove_theme_support('bu-navigation-' . $feature);
         $this->assertEquals($default, $this->plugin->supports($feature));
     }
 }
开发者ID:iamapioneer,项目名称:sdas,代码行数:14,代码来源:test-plugin.php

示例15: initThemeSupport

 /**
  * Everything that should be initialized through simple call
  */
 public function initThemeSupport()
 {
     # add theme support
     add_theme_support('post-thumbnails');
     remove_theme_support('post-formats');
     add_image_size('240x148', 240, 148, TRUE);
     add_image_size('268x213', 268, 213, TRUE);
     add_image_size('1020x398', 1020, 398, TRUE);
     add_image_size('760x468', 760, 468, TRUE);
     add_image_size('175x175', 175, 175, TRUE);
 }
开发者ID:slavic18,项目名称:cats,代码行数:14,代码来源:app.php


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