[ 'title' => __( 'General', 'blocksy' ), 'type' => 'tab', 'options' => [ 'header_socials' => [ 'label' => false, 'type' => 'ct-layers', 'manageable' => true, 'desc' => sprintf( // translators: placeholder here means the actual URL. __( 'You can configure social URLs %shere%s.', 'blocksy' ), sprintf( '', admin_url('/customize.php?autofocus[section]=social_accounts') ), '' ), 'divider' => 'bottom', 'setting' => [ 'transport' => 'postMessage' ], 'value' => [ [ 'id' => 'facebook', 'enabled' => true, ], [ 'id' => 'twitter', 'enabled' => true, ], [ 'id' => 'instagram', 'enabled' => true, ], ], 'settings' => blocksy_get_social_networks_list(), ], 'socialsIconSize' => [ 'label' => __( 'Icons Size', 'blocksy' ), 'type' => 'ct-slider', 'min' => 5, 'max' => 50, 'value' => 15, 'responsive' => true, 'setting' => [ 'transport' => 'postMessage' ], ], 'socialsIconSpacing' => [ 'label' => __( 'Icons Spacing', 'blocksy' ), 'type' => 'ct-slider', 'min' => 0, 'max' => 50, 'value' => 15, 'responsive' => true, 'divider' => 'bottom', 'setting' => [ 'transport' => 'postMessage' ], ], 'headerSocialsColor' => [ 'label' => __('Icons Color', 'blocksy'), 'type' => 'ct-radio', 'value' => 'custom', 'view' => 'text', 'design' => 'block', 'setting' => [ 'transport' => 'postMessage' ], 'choices' => [ 'custom' => __( 'Custom', 'blocksy' ), 'official' => __( 'Official', 'blocksy' ), ], ], 'socialsType' => [ 'label' => __('Icons Shape Type', 'blocksy'), 'type' => 'ct-radio', 'value' => 'simple', 'view' => 'text', 'design' => 'block', 'setting' => [ 'transport' => 'postMessage' ], 'choices' => [ 'simple' => __( 'None', 'blocksy' ), 'rounded' => __( 'Rounded', 'blocksy' ), 'square' => __( 'Square', 'blocksy' ), ], ], blocksy_rand_md5() => [ 'type' => 'ct-condition', 'condition' => [ 'socialsType' => '!simple' ], 'options' => [ 'socialsFillType' => [ 'label' => __('Shape Fill Type', 'blocksy'), 'type' => 'ct-radio', 'value' => 'solid', 'view' => 'text', 'design' => 'block', 'setting' => [ 'transport' => 'postMessage' ], 'choices' => [ 'solid' => __( 'Solid', 'blocksy' ), 'outline' => __( 'Outline', 'blocksy' ), ], ], ], ], blocksy_rand_md5() => [ 'type' => 'ct-condition', 'condition' => [ 'wp_customizer_current_view' => 'mobile' ], 'options' => [ blocksy_rand_md5() => [ 'type' => 'ct-divider', ], 'visibility' => [ 'label' => __( 'Item Visibility', 'blocksy' ), 'type' => 'ct-visibility', 'design' => 'block', 'setting' => [ 'transport' => 'postMessage' ], 'allow_empty' => true, 'value' => [ 'tablet' => true, 'mobile' => true, ], 'choices' => blocksy_ordered_keys([ 'tablet' => __( 'Tablet', 'blocksy' ), 'mobile' => __( 'Mobile', 'blocksy' ), ]), ], ], ], blocksy_rand_md5() => [ 'type' => 'ct-divider', ], 'socialsLabelVisibility' => [ 'label' => __( 'Display Icons Label On', 'blocksy' ), 'type' => 'ct-visibility', 'design' => 'block', 'allow_empty' => true, 'setting' => [ 'transport' => 'postMessage' ], 'value' => [ 'desktop' => false, 'tablet' => false, 'mobile' => false, ], 'choices' => blocksy_ordered_keys([ 'desktop' => __( 'Desktop', 'blocksy' ), 'tablet' => __( 'Tablet', 'blocksy' ), 'mobile' => __( 'Mobile', 'blocksy' ), ]), ], ], ], blocksy_rand_md5() => [ 'title' => __( 'Design', 'blocksy' ), 'type' => 'tab', 'options' => [ blocksy_rand_md5() => [ 'type' => 'ct-condition', 'condition' => [ 'headerSocialsColor' => 'custom' ], 'options' => [ 'headerSocialsIconColor' => [ 'label' => __( 'Icons Color', 'blocksy' ), 'type' => 'ct-color-picker', 'design' => 'block:right', 'divider' => 'bottom', 'responsive' => true, 'setting' => [ 'transport' => 'postMessage' ], 'value' => [ 'default' => [ 'color' => 'var(--color)', ], 'hover' => [ 'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'), ], ], 'pickers' => [ [ 'title' => __( 'Initial', 'blocksy' ), 'id' => 'default', ], [ 'title' => __( 'Hover', 'blocksy' ), 'id' => 'hover', 'inherit' => 'var(--linkHoverColor)' ], ], ], ], ], blocksy_rand_md5() => [ 'type' => 'ct-condition', 'condition' => [ 'socialsType' => '!simple' ], 'options' => [ 'headerSocialsIconBackground' => [ 'label' => [ __('Icons Background Color', 'blocksy') => [ 'socialsFillType' => 'solid' ], __('Icons Border Color', 'blocksy') => [ 'socialsFillType' => 'outline' ] ], 'type' => 'ct-color-picker', 'design' => 'block:right', 'divider' => 'bottom', 'responsive' => true, 'setting' => [ 'transport' => 'postMessage' ], 'value' => [ 'default' => [ 'color' => 'rgba(218, 222, 228, 0.3)', ], 'hover' => [ 'color' => 'var(--paletteColor1)', ], ], 'pickers' => [ [ 'title' => __( 'Initial', 'blocksy' ), 'id' => 'default', ], [ 'title' => __( 'Hover', 'blocksy' ), 'id' => 'hover', ], ], ], ], ], 'headerSocialsMargin' => [ 'label' => __( 'Margin', 'blocksy' ), 'type' => 'ct-spacing', 'setting' => [ 'transport' => 'postMessage' ], 'value' => blocksy_spacing_value([ 'linked' => true, ]), 'responsive' => true ], ], ], ];