Astra_Addon_Header_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/header/button/classes/class-astra-addon-header-button-component-loader.php

	public function theme_defaults( $defaults ) {
		// Button header defaults.

		$component_limit = astra_addon_builder_helper()->component_limit;
		for ( $index = 1; $index <= $component_limit; $index++ ) {

			$_prefix = 'button' . $index;

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

			$defaults[ 'header-' . $_prefix . '-box-shadow-control' ]  = array(
				'x'      => '0',
				'y'      => '0',
				'blur'   => '0',
				'spread' => '0',
			);
			$defaults[ 'header-' . $_prefix . '-box-shadow-color' ]    = 'rgba(0,0,0,0.1)';
			$defaults[ 'header-' . $_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.