diff options
Diffstat (limited to 'inc/addons/transparent-header/classes/class-astra-transparent-header-panels-and-sections.php')
-rw-r--r-- | inc/addons/transparent-header/classes/class-astra-transparent-header-panels-and-sections.php | 142 |
1 files changed, 71 insertions, 71 deletions
diff --git a/inc/addons/transparent-header/classes/class-astra-transparent-header-panels-and-sections.php b/inc/addons/transparent-header/classes/class-astra-transparent-header-panels-and-sections.php index 42a8bc3..724cfa0 100644 --- a/inc/addons/transparent-header/classes/class-astra-transparent-header-panels-and-sections.php +++ b/inc/addons/transparent-header/classes/class-astra-transparent-header-panels-and-sections.php @@ -1,71 +1,71 @@ -<?php
-/**
- * Transparent Header Options for our theme.
- *
- * @package Astra Addon
- * @author Brainstorm Force
- * @copyright Copyright (c) 2020, Brainstorm Force
- * @link https://www.brainstormforce.com
- * @since Astra 1.4.3
- */
-
-// Block direct access to the file.
-if ( ! defined( 'ABSPATH' ) ) {
- exit;
-}
-
-// Bail if Customizer config base class does not exist.
-if ( ! class_exists( 'Astra_Customizer_Config_Base' ) ) {
- return;
-}
-
-/**
- * Customizer Sanitizes
- *
- * @since 1.4.3
- */
-if ( ! class_exists( 'Astra_Transparent_Header_Panels_And_Sections' ) ) {
-
- /**
- * Register Transparent Header Customizer Configurations.
- */
- class Astra_Transparent_Header_Panels_And_Sections extends Astra_Customizer_Config_Base {
-
- /**
- * Register Transparent Header Customizer Configurations.
- *
- * @param Array $configurations Astra Customizer Configurations.
- * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager.
- * @since 1.4.3
- * @return Array Astra Customizer Configurations with updated configurations.
- */
- public function register_configuration( $configurations, $wp_customize ) {
-
- $_configs = array(
-
- array(
- 'name' => 'section-transparent-header',
- 'title' => __( 'Transparent Header', 'astra' ),
- 'panel' => ( true === Astra_Builder_Helper::$is_header_footer_builder_active ) ? 'panel-header-builder-group' : 'panel-header-group',
- 'type' => 'section',
- 'priority' => 33,
- ),
-
- array(
- 'name' => 'section-colors-header-group',
- 'type' => 'section',
- 'title' => __( 'Header', 'astra' ),
- 'panel' => 'panel-colors-background',
- 'priority' => 20,
- ),
- );
-
- return array_merge( $configurations, $_configs );
- }
- }
-}
-
-/**
- * Kicking this off by calling 'get_instance()' method
- */
-new Astra_Transparent_Header_Panels_And_Sections();
+<?php +/** + * Transparent Header Options for our theme. + * + * @package Astra Addon + * @author Brainstorm Force + * @copyright Copyright (c) 2020, Brainstorm Force + * @link https://www.brainstormforce.com + * @since Astra 1.4.3 + */ + +// Block direct access to the file. +if ( ! defined( 'ABSPATH' ) ) { + exit; +} + +// Bail if Customizer config base class does not exist. +if ( ! class_exists( 'Astra_Customizer_Config_Base' ) ) { + return; +} + +/** + * Customizer Sanitizes + * + * @since 1.4.3 + */ +if ( ! class_exists( 'Astra_Transparent_Header_Panels_And_Sections' ) ) { + + /** + * Register Transparent Header Customizer Configurations. + */ + class Astra_Transparent_Header_Panels_And_Sections extends Astra_Customizer_Config_Base { + + /** + * Register Transparent Header Customizer Configurations. + * + * @param Array $configurations Astra Customizer Configurations. + * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. + * @since 1.4.3 + * @return Array Astra Customizer Configurations with updated configurations. + */ + public function register_configuration( $configurations, $wp_customize ) { + + $_configs = array( + + array( + 'name' => 'section-transparent-header', + 'title' => __( 'Transparent Header', 'astra' ), + 'panel' => ( true === Astra_Builder_Helper::$is_header_footer_builder_active ) ? 'panel-header-builder-group' : 'panel-header-group', + 'type' => 'section', + 'priority' => 33, + ), + + array( + 'name' => 'section-colors-header-group', + 'type' => 'section', + 'title' => __( 'Header', 'astra' ), + 'panel' => 'panel-colors-background', + 'priority' => 20, + ), + ); + + return array_merge( $configurations, $_configs ); + } + } +} + +/** + * Kicking this off by calling 'get_instance()' method + */ +new Astra_Transparent_Header_Panels_And_Sections(); |