This function has been deprecated. Use astra_prepare_social_icon_defaults() instead.

prepare_social_icon_defaults( array $defaults, string $index )

Deprecating prepare_social_icon_defaults function.


Description

Default configurations for builder Social Icon components.

See also


Parameters

$defaults

(array) (Required) Social Icon default configs.

$index

(string) (Required) builder Social Icon component index.


Return

(array)


Source

File: inc/core/deprecated/deprecated-functions.php

function 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;
}

Changelog

Changelog
Version Description
3.7.4 Introduced.


User Contributed Notes

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