array( 'default' => 'none', 'name' => __( 'Position', 'thrive-cb' ), 'options' => array( array( 'name' => __( 'Below image', 'thrive-cb' ), 'value' => 'below', ), array( 'name' => __( 'Above image', 'thrive-cb' ), 'value' => 'above', ), array( 'name' => __( 'Inside image', 'thrive-cb' ), 'value' => 'inside', ), ), ), 'extends' => 'Select', ); $components['text']['config']['CaptionVerticalPosition'] = array( 'config' => array( 'name' => __( 'Vertical position', 'thrive-cb' ), 'buttons' => [ [ 'icon' => 'top', 'default' => true, 'value' => 'top', ], [ 'icon' => 'vertical', 'value' => 'center', ], [ 'icon' => 'bot', 'value' => 'bottom', ], ], ), 'extends' => 'ButtonGroup', ); $components['text']['config']['TextAlign'] = array( 'config' => array( 'name' => __( 'Alignment', 'thrive-cb' ), 'buttons' => [ [ 'icon' => 'format-align-left', 'text' => '', 'value' => 'left', 'default' => true, ], [ 'icon' => 'format-align-center', 'text' => '', 'value' => 'center', ], [ 'icon' => 'format-align-right', 'text' => '', 'value' => 'right', ], [ 'icon' => 'format-align-justify', 'text' => '', 'value' => 'justify', ], ], ), 'extends' => 'ButtonGroup', ); $components['image_caption'] = $components['text']; unset( $components['text'], $components['layout'], $components['borders'], $components['animation'], $components['background'], $components['responsive'], $components['styles-templates'] ); $components['scroll'] = [ 'hidden' => true ]; return $components; } }