33 lines
911 B
PHP
33 lines
911 B
PHP
<?php
|
|
/**
|
|
* Button footer Configuration.
|
|
*
|
|
* @package Astra
|
|
* @link https://wpastra.com/
|
|
* @since 4.5.2
|
|
*/
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
exit;
|
|
}
|
|
|
|
/**
|
|
* Register button footer builder Customizer Configurations.
|
|
*
|
|
* @param array $configurations Astra Customizer Configurations.
|
|
* @since 4.5.2
|
|
* @return array Astra Customizer Configurations with updated configurations.
|
|
*/
|
|
function astra_button_footer_configuration( $configurations = array() ) {
|
|
$_configs = Astra_Button_Component_Configs::register_configuration( $configurations, 'footer', 'section-fb-button-' );
|
|
|
|
if ( Astra_Builder_Customizer::astra_collect_customizer_builder_data() ) {
|
|
array_map( 'astra_save_footer_customizer_configs', $_configs );
|
|
}
|
|
|
|
return $_configs;
|
|
}
|
|
|
|
if ( Astra_Builder_Customizer::astra_collect_customizer_builder_data() ) {
|
|
add_action( 'init', 'astra_button_footer_configuration', 10, 0 );
|
|
}
|