summaryrefslogtreecommitdiff
path: root/inc/addons/transparent-header/classes/class-astra-transparent-header-panels-and-sections.php
diff options
context:
space:
mode:
authorZach van Rijn <me@zv.io>2021-07-21 14:54:07 -0500
committerZach van Rijn <me@zv.io>2021-07-21 14:54:07 -0500
commit9d4123cee1867ee7199b06bdc92d40611f547ecc (patch)
tree6d864e2725242863afed1f8ba12d9c7a9bc63a69 /inc/addons/transparent-header/classes/class-astra-transparent-header-panels-and-sections.php
downloadblog-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/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.php71
1 files changed, 71 insertions, 0 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
new file mode 100644
index 0000000..42a8bc3
--- /dev/null
+++ b/inc/addons/transparent-header/classes/class-astra-transparent-header-panels-and-sections.php
@@ -0,0 +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();