'; return [ 'id' => uniqid(), 'type' => self::$type, 'name' => __( 'Social Icon', 'yaymail' ), 'icon' => self::$icon, 'group' => 'basic', 'available' => true, 'position' => 90, 'data' => [ 'container_group_definition' => [ 'component' => 'GroupDefinition', 'title' => __( 'Container settings', 'yaymail' ), 'description' => __( 'Handle container layout settings', 'yaymail' ), ], 'padding' => [ 'value_path' => 'padding', 'component' => 'Spacing', 'title' => __( 'Padding', 'yaymail' ), 'default_value' => isset( $attributes['padding'] ) ? $attributes['padding'] : [ 'top' => '15', 'right' => '50', 'bottom' => '15', 'left' => '50', ], 'type' => 'style', ], 'background_color' => [ 'value_path' => 'background_color', 'component' => 'Color', 'title' => __( 'Background color', 'yaymail' ), 'default_value' => isset( $attributes['background_color'] ) ? $attributes['background_color'] : '#fff', 'type' => 'style', ], 'align' => [ 'value_path' => 'align', 'component' => 'Align', 'title' => __( 'Alignment', 'yaymail' ), 'default_value' => isset( $attributes['align'] ) ? $attributes['align'] : 'center', 'type' => 'style', ], 'content_breaker' => [ 'component' => 'LineBreaker', ], 'content_group_definition' => [ 'component' => 'GroupDefinition', 'title' => __( 'Content settings', 'yaymail' ), 'description' => __( 'Handle content settings', 'yaymail' ), ], 'width_icon' => [ 'value_path' => 'width_icon', 'component' => 'Dimension', 'title' => __( 'Icon size', 'yaymail' ), 'default_value' => isset( $attributes['width_icon'] ) ? $attributes['width_icon'] : '24', 'min' => 0, 'max' => 100, 'type' => 'style', ], 'spacing' => [ 'value_path' => 'spacing', 'component' => 'Dimension', 'title' => __( 'Icon spacing', 'yaymail' ), 'default_value' => isset( $attributes['spacing'] ) ? $attributes['spacing'] : '5', 'min' => 0, 'max' => 100, 'type' => 'style', ], 'theme' => [ 'value_path' => 'theme', 'component' => 'SocialIconThemeSelector', 'title' => __( 'Styles theme', 'yaymail' ), 'default_value' => isset( $attributes['style'] ) ? $attributes['style'] : 'Colorful', 'type' => 'style', ], 'icon_color' => [ 'value_path' => 'icon_color', 'component' => 'Color', 'title' => __( 'Icon color', 'yaymail' ), 'default_value' => isset( $attributes['icon_color'] ) ? $attributes['icon_color'] : '#333333', 'type' => 'style', 'conditions' => [ 'condition_1' => [ 'attribute' => 'theme', 'comparison' => '==', 'value' => 'Custom', ], ], ], 'icon_list' => [ 'value_path' => 'icon_list', 'component' => 'SocialList', 'title' => __( 'Social', 'yaymail' ), 'default_value' => isset( $attributes['icon_list'] ) ? $attributes['icon_list'] : [ [ 'icon' => 'facebook', 'url' => '#', ], [ 'icon' => 'instagram', 'url' => '#', ], [ 'icon' => 'linkedin', 'url' => '#', ], ], 'type' => 'content', ], ], ]; } }