Astra_Ext_Footer_Button_Component_Loader::theme_defaults( array $defaults )

Default customizer configs.


Description


Parameters

$defaults

(array) (Required) Astra options default value array.


Source

File: classes/builder/type/footer/button/classes/class-astra-ext-footer-button-component-loader.php

	public function theme_defaults( $defaults ) {
		// Button footer defaults.
		$component_limit = astra_addon_builder_helper()->component_limit;
		for ( $index = 1; $index <= $component_limit; $index++ ) {

			$_prefix = 'button' . $index;

			$defaults[ 'footer-' . $_prefix . '-size' ] = 'sm';

			$defaults[ 'footer-' . $_prefix . '-box-shadow-control' ]  = array(
				'x'      => '0',
				'y'      => '0',
				'blur'   => '0',
				'spread' => '0',
			);
			$defaults[ 'footer-' . $_prefix . '-box-shadow-color' ]    = 'rgba(0,0,0,0.1)';
			$defaults[ 'footer-' . $_prefix . '-box-shadow-position' ] = 'outline';

		}

		return $defaults;
	}

Changelog

Changelog
Version Description
3.1.0 Introduced.


User Contributed Notes

You must log in before being able to contribute a note or feedback.