astra_prepare_social_icon_defaults( array $defaults, integer $index )

Prepare Social Icon Defaults.


Description


Parameters

$defaults

(array) (Required) defaults.

$index

(integer) (Required) index.


Source

File: inc/core/builder/class-astra-builder-options.php

function astra_prepare_social_icon_defaults( $defaults, $index ) {

	$defaults[ 'header-social-' . $index . '-space' ]          = array(
		'desktop' => '',
		'tablet'  => '',
		'mobile'  => '',
	);
	$defaults[ 'header-social-' . $index . '-bg-space' ]       = '';
	$defaults[ 'header-social-' . $index . '-size' ]           = array(
		'desktop' => 18,
		'tablet'  => '',
		'mobile'  => '',
	);
	$defaults[ 'header-social-' . $index . '-radius' ]         = '';
	$defaults[ 'header-social-' . $index . '-color' ]          = '';
	$defaults[ 'header-social-' . $index . '-h-color' ]        = '';
	$defaults[ 'header-social-' . $index . '-bg-color' ]       = '';
	$defaults[ 'header-social-' . $index . '-bg-h-color' ]     = '';
	$defaults[ 'header-social-' . $index . '-label-toggle' ]   = false;
	$defaults[ 'header-social-' . $index . '-color-type' ]     = 'custom';
	$defaults[ 'font-size-section-hb-social-icons-' . $index ] = array(
		'desktop'      => '',
		'tablet'       => '',
		'mobile'       => '',
		'desktop-unit' => 'px',
		'tablet-unit'  => 'px',
		'mobile-unit'  => 'px',
	);
	$defaults[ 'header-social-icons-' . $index ]               = array(
		'items' =>
			array(
				array(
					'id'         => 'facebook',
					'enabled'    => true,
					'source'     => 'icon',
					'url'        => '',
					'color'      => '#557dbc',
					'background' => 'transparent',
					'icon'       => 'facebook',
					'label'      => 'Facebook',
				),
				array(
					'id'         => 'twitter',
					'enabled'    => true,
					'source'     => 'icon',
					'url'        => '',
					'color'      => '#7acdee',
					'background' => 'transparent',
					'icon'       => 'twitter',
					'label'      => 'Twitter',
				),
				array(
					'id'         => 'instagram',
					'enabled'    => true,
					'source'     => 'icon',
					'url'        => '',
					'color'      => '#8a3ab9',
					'background' => 'transparent',
					'icon'       => 'instagram',
					'label'      => 'Instagram',
				),
			),
	);

	$defaults[ 'section-hb-social-icons-' . $index . '-margin' ] = Astra_Builder_Helper::$default_responsive_spacing;


	$defaults[ 'footer-social-' . $index . '-space' ]          = array(
		'desktop' => '',
		'tablet'  => '',
		'mobile'  => '',
	);
	$defaults[ 'footer-social-' . $index . '-bg-space' ]       = '';
	$defaults[ 'footer-social-' . $index . '-size' ]           = array(
		'desktop' => 18,
		'tablet'  => '',
		'mobile'  => '',
	);
	$defaults[ 'footer-social-' . $index . '-radius' ]         = '';
	$defaults[ 'footer-social-' . $index . '-color' ]          = '';
	$defaults[ 'footer-social-' . $index . '-h-color' ]        = '';
	$defaults[ 'footer-social-' . $index . '-bg-color' ]       = '';
	$defaults[ 'footer-social-' . $index . '-bg-h-color' ]     = '';
	$defaults[ 'footer-social-' . $index . '-label-toggle' ]   = false;
	$defaults[ 'footer-social-' . $index . '-color-type' ]     = 'custom';
	$defaults[ 'font-size-section-fb-social-icons-' . $index ] = array(
		'desktop'      => '',
		'tablet'       => '',
		'mobile'       => '',
		'desktop-unit' => 'px',
		'tablet-unit'  => 'px',
		'mobile-unit'  => 'px',
	);
	$defaults[ 'footer-social-icons-' . $index ]               = array(
		'items' =>
			array(
				array(
					'id'         => 'facebook',
					'enabled'    => true,
					'source'     => 'icon',
					'url'        => '',
					'color'      => '#557dbc',
					'background' => 'transparent',
					'icon'       => 'facebook',
					'label'      => 'Facebook',
				),
				array(
					'id'         => 'twitter',
					'enabled'    => true,
					'source'     => 'icon',
					'url'        => '',
					'color'      => '#7acdee',
					'background' => 'transparent',
					'icon'       => 'twitter',
					'label'      => 'Twitter',
				),
				array(
					'id'         => 'instagram',
					'enabled'    => true,
					'source'     => 'icon',
					'url'        => '',
					'color'      => '#8a3ab9',
					'background' => 'transparent',
					'icon'       => 'instagram',
					'label'      => 'Instagram',
				),
			),
	);
	$defaults[ 'footer-social-' . $index . '-alignment' ]      = array(
		'desktop' => 'center',
		'tablet'  => 'center',
		'mobile'  => 'center',
	);

	$defaults[ 'section-fb-social-icons-' . $index . '-margin' ] = Astra_Builder_Helper::$default_responsive_spacing;

	return $defaults;
}


User Contributed Notes

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