Astra_Builder_Customizer::load_header_components()
Register Components for Header Builder.
Description
Source
File: inc/customizer/class-astra-builder-customizer.php
public function load_header_components() {
// @codingStandardsIgnoreStart WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound
$header_components_path = ASTRA_THEME_DIR . 'inc/builder/type/header';
require_once $header_components_path . '/site-identity/class-astra-header-site-identity-component.php';
require_once $header_components_path . '/off-canvas/class-astra-off-canvas.php';
require_once $header_components_path . '/primary-header/class-astra-primary-header.php';
require_once $header_components_path . '/button/class-astra-header-button-component.php';
require_once $header_components_path . '/menu/class-astra-header-menu-component.php';
require_once $header_components_path . '/html/class-astra-header-html-component.php';
require_once $header_components_path . '/search/class-astra-header-search-component.php';
require_once $header_components_path . '/account/class-astra-header-account-component.php';
require_once $header_components_path . '/social-icon/class-astra-header-social-icon-component.php';
require_once $header_components_path . '/widget/class-astra-header-widget-component.php';
require_once $header_components_path . '/mobile-trigger/class-astra-mobile-trigger.php';
require_once $header_components_path . '/mobile-menu/class-astra-mobile-menu-component.php';
require_once $header_components_path . '/above-header/class-astra-above-header.php';
require_once $header_components_path . '/below-header/class-astra-below-header.php';
if ( class_exists( 'Astra_Woocommerce' ) ) {
require_once $header_components_path . '/woo-cart/class-astra-header-woo-cart-component.php';
}
if ( class_exists( 'Easy_Digital_Downloads' ) ) {
require_once $header_components_path . '/edd-cart/class-astra-header-edd-cart-component.php';
}
// @codingStandardsIgnoreEnd WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound
}
Expand full source code Collapse full source code View on Trac
Changelog
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |