diff options
author | Zach van Rijn <me@zv.io> | 2021-07-21 14:54:07 -0500 |
---|---|---|
committer | Zach van Rijn <me@zv.io> | 2021-07-21 14:54:07 -0500 |
commit | 9d4123cee1867ee7199b06bdc92d40611f547ecc (patch) | |
tree | 6d864e2725242863afed1f8ba12d9c7a9bc63a69 /inc/customizer/configurations/builder/header/class-astra-header-button-component-configs.php | |
download | blog-ng-9d4123cee1867ee7199b06bdc92d40611f547ecc.tar.gz blog-ng-9d4123cee1867ee7199b06bdc92d40611f547ecc.tar.bz2 blog-ng-9d4123cee1867ee7199b06bdc92d40611f547ecc.tar.xz blog-ng-9d4123cee1867ee7199b06bdc92d40611f547ecc.zip |
Initial unmodified import from Astra (Version: 3.6.5) @ /wp-content/themes/astra/.
Diffstat (limited to 'inc/customizer/configurations/builder/header/class-astra-header-button-component-configs.php')
-rw-r--r-- | inc/customizer/configurations/builder/header/class-astra-header-button-component-configs.php | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/inc/customizer/configurations/builder/header/class-astra-header-button-component-configs.php b/inc/customizer/configurations/builder/header/class-astra-header-button-component-configs.php new file mode 100644 index 0000000..b01c6c6 --- /dev/null +++ b/inc/customizer/configurations/builder/header/class-astra-header-button-component-configs.php @@ -0,0 +1,41 @@ +<?php +/** + * [Header] options for astra theme. + * + * @package Astra Header Footer Builder + * @author Brainstorm Force + * @copyright Copyright (c) 2020, Brainstorm Force + * @link https://www.brainstormforce.com + * @since 3.0.0 + */ + +// Block direct access to the file. +if ( ! defined( 'ABSPATH' ) ) { + exit; +} + +if ( class_exists( 'Astra_Customizer_Config_Base' ) ) { + + /** + * Register below header Configurations. + */ + class Astra_Header_Button_Component_Configs extends Astra_Customizer_Config_Base { + + /** + * Register Button control for Header/Footer Customizer Configurations. + * + * @param Array $configurations Astra Customizer Configurations. + * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. + * @since 3.0.0 + * @return Array Astra Customizer Configurations with updated configurations. + */ + public function register_configuration( $configurations, $wp_customize ) { + + $configurations = Astra_Button_Component_Configs::register_configuration( $configurations, 'header', 'section-hb-button-' ); + + return $configurations; + } + } + + new Astra_Header_Button_Component_Configs(); +} |