geno/wp-content/themes/astra/inc/customizer/configurations/builder/footer/class-astra-customizer-footer-builder-configs.php

49 lines
1.2 KiB
PHP
Raw Normal View History

2024-02-01 17:24:18 +05:30
<?php
/**
* Astra Theme Customizer Configuration Builder.
*
* @package astra
* @author Astra
* @copyright Copyright (c) 2020, Astra
* @link https://wpastra.com/
* @since 3.0.0
*/
// No direct access, please.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// Bail if Customizer config base class does not exist.
if ( ! class_exists( 'Astra_Customizer_Config_Base' ) ) {
return;
}
/**
* Register Builder Customizer Configurations.
*
* @since 3.0.0
*/
class Astra_Customizer_Footer_Builder_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 ) {
$_configs = astra_builder_footer_configuration();
return array_merge( $configurations, $_configs );
}
}
/**
* Kicking this off by creating object of this class.
*/
if ( class_exists( 'Astra_Customizer_Config_Base' ) ) {
new Astra_Customizer_Footer_Builder_Configs();
}