[ 'config' => [ 'GoogleApi' => [ 'config' => [ 'name' => '', 'label' => __( 'Enable Google', 'thrive-cb' ), 'default' => false, 'info' => ! $has_google_connection, 'info_hover' => ! $has_google_connection, ], 'extends' => 'Switch', ], 'FacebookApi' => [ 'config' => [ 'name' => '', 'label' => __( 'Enable Facebook', 'thrive-cb' ), 'default' => false, 'info' => ! $has_facebook_connection, 'info_hover' => ! $has_facebook_connection, ], 'extends' => 'Switch', ], 'Gravatar' => [ 'config' => [ 'name' => '', 'label' => __( 'Enable Gravatar', 'thrive-cb' ), 'default' => true, ], 'extends' => 'Switch', ], 'CustomUrl' => [ 'config' => [ 'name' => '', 'label' => __( 'Custom url', 'thrive-cb' ), 'default' => false, ], 'extends' => 'Switch', ], 'ImagePicker' => [ 'config' => [ 'label' => __( 'Default avatar', 'thrive-cb' ), ], ], 'ImageSize' => [ 'config' => [ 'default' => '240', 'min' => '50', 'max' => '1024', 'label' => __( 'Image size', 'thrive-cb' ), 'um' => [ 'px' ], ], ], 'ButtonType' => [ 'config' => [ 'name' => __( 'Edit button type', 'thrive-cb' ), 'options' => [ // 'button' => __( 'Button', 'thrive-cb' ), 'icon' => __( 'Icon', 'thrive-cb' ), 'overlay' => __( 'Overlay', 'thrive-cb' ), ], ], 'extends' => 'Select', ], 'ButtonPosition' => [ 'config' => [ 'name' => __( 'Button position', 'thrive-cb' ), 'options' => [ 'top' => __( 'Top', 'thrive-cb' ), 'bottom' => __( 'Bottom', 'thrive-cb' ), ], ], 'extends' => 'Select', ], 'IconPosition' => [ 'config' => [ 'name' => __( 'Icon position', 'thrive-cb' ), 'options' => [ 'top-left' => __( 'Left', 'thrive-cb' ), 'top-right' => __( 'Right', 'thrive-cb' ), ], ], 'extends' => 'Select', ], ], ], 'typography' => [ 'hidden' => true, ], 'shadow' => [ 'config' => [ 'disabled_controls' => [ 'text' ], 'default_shadow' => 'none', 'css_suffix' => $avatar_image_selector, ], ], 'background' => [ 'hidden' => true, ], 'styles-templates' => [ 'hidden' => true, ], 'responsive' => [ 'hidden' => true, ], 'animation' => [ 'hidden' => true, ], 'layout' => [ 'disabled_controls' => [ '[data-label="Width"]', '[data-label="Height"]', '[data-view="Display"]', '.tve-advanced-controls' ], ], 'borders' => [ 'config' => [ 'Borders' => [ 'css_suffix' => $avatar_image_selector, ], 'Corners' => [ 'css_suffix' => $avatar_image_selector, ], ], ], ]; } }