0, 'config' => array( 'State' => array( 'config' => array( 'name' => __( 'State', 'thrive-cb' ), 'buttons' => [ [ 'icon' => '', 'text' => 'Expanded', 'value' => 'expanded', 'default' => true, ], [ 'icon' => '', 'text' => 'Collapsed', 'value' => 'collapsed', ], ], ), 'extends' => 'ButtonGroup', ), 'ShowIcon' => array( 'config' => array( 'label' => __( 'Show Icon' ), ), 'extends' => 'Switch', ), 'IconColor' => array( 'css_suffix' => ' .tve-toc-title-icon', 'config' => array( 'label' => __( 'Icon color', 'thrive-cb' ), 'options' => [ 'noBeforeInit' => false ], ), 'important' => true, 'extends' => 'ColorPicker', ), 'IconPlacement' => array( 'config' => array( 'name' => __( 'Placement', 'thrive-cb' ), 'buttons' => [ [ 'icon' => '', 'text' => 'Left', 'value' => 'left', 'default' => true, ], [ 'icon' => '', 'text' => 'Right', 'value' => 'right', ], ], ), 'extends' => 'ButtonGroup', ), 'IconSize' => array( 'config' => array( 'default' => '15', 'min' => '0', 'max' => '100', 'label' => __( 'Icon Size', 'thrive-cb' ), 'um' => [ 'px', '%' ], 'css' => 'font-size', ), 'css_suffix' => ' .tve-toc-title-icon', 'important' => true, 'extends' => 'Slider', ), 'RotateIcon' => array( 'config' => array( 'step' => '45', 'label' => __( 'Rotate Icon', 'thrive-cb' ), 'default' => '0', 'min' => '-180', 'max' => '180', 'um' => [ ' Deg' ], ), 'extends' => 'Slider', ), ), ); unset( $components['contentbox'] ); unset( $components['shared-styles'] ); $components['layout'] = [ 'disabled_controls' => [ 'Display', 'Float', 'Position', ], 'config' => [ 'Width' => [ 'important' => true, ], 'Height' => [ 'important' => true, ], ], ]; $components['background'] = [ 'config' => [ 'ColorPicker' => [ 'css_prefix' => $prefix_config ], 'PreviewList' => [ 'css_prefix' => $prefix_config ], 'css_suffix' => ' > .tve-content-box-background', ], ]; $components['borders'] = [ 'config' => [ 'Borders' => [ 'important' => true, ], 'Corners' => [ 'important' => true, ], 'css_suffix' => ' > .tve-content-box-background', ], ]; $components['typography']['config'] = [ 'FontSize' => [ 'css_prefix' => $prefix_config ], 'FontColor' => [ 'css_prefix' => $prefix_config ], 'LineHeight' => [ 'css_prefix' => $prefix_config ], 'FontFace' => [ 'css_prefix' => $prefix_config ], 'ParagraphStyle' => [ 'hidden' => false ], ]; $components['typography']['disabled_controls'] = [ '.tve-advanced-controls', 'p_spacing', 'h1_spacing', 'h2_spacing', 'h3_spacing', ]; $components['scroll'] = [ 'hidden' => true ]; $components['responsive'] = [ 'hidden' => true ]; $components['animation'] = [ 'hidden' => true ]; return $components; } }