blob: 8e979457ae0d0e03770532c57cc767ebabe39b3d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
<?php
/**
* Astra Theme Customizer Configuration Builder.
*
* @package astra-builder
* @author Astra
* @copyright Copyright (c) 2020, Astra
* @link https://wpastra.com/
* @since 3.0.0
*/
// No direct access, please.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
if ( ! class_exists( 'Astra_Customizer_Config_Base' ) ) {
return;
}
/**
* Register Builder Customizer Configurations.
*
* @since 3.0.0
*/
class Astra_Customizer_Header_Widget_Configs extends Astra_Customizer_Config_Base {
/**
* Register Builder 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 ) {
$html_config = Astra_Builder_Base_Configuration::prepare_widget_options( 'header' );
$configurations = array_merge( $configurations, $html_config );
return $configurations;
}
}
/**
* Kicking this off by creating object of this class.
*/
new Astra_Customizer_Header_Widget_Configs();
|