Astra_Footer_Divider_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/divider/classes/class-astra-footer-divider-component-loader.php

	public function theme_defaults( $defaults ) {
		// Divider Footer defaults.
		$num_of_footer_divider = astra_addon_builder_helper()->num_of_footer_divider;
		for ( $index = 1; $index <= $num_of_footer_divider; $index++ ) {

			$defaults[ 'footer-divider-' . $index . '-layout' ] = 'horizontal';
			$defaults[ 'footer-divider-' . $index . '-style' ]  = 'solid';
			$defaults[ 'footer-divider-' . $index . '-color' ]  = '';

			$defaults[ 'footer-divider-' . $index . '-size' ] = array(
				'desktop' => '50',
				'tablet'  => '50',
				'mobile'  => '50',
			);

			$defaults[ 'footer-vertical-divider-' . $index . '-size' ] = array(
				'desktop' => '50',
				'tablet'  => '50',
				'mobile'  => '50',
			);

			$defaults[ 'footer-divider-' . $index . '-thickness' ] = array(
				'desktop' => '1',
				'tablet'  => '1',
				'mobile'  => '1',
			);

			$defaults[ 'footer-divider-' . $index . '-alignment' ] = array(
				'desktop' => 'center',
				'tablet'  => 'center',
				'mobile'  => 'center',
			);
		}

		return $defaults;
	}

Changelog

Changelog
Version Description
3.0.0 Introduced.


User Contributed Notes

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