'; return [ 'id' => uniqid(), 'type' => self::$type, 'name' => __( 'Image Box', 'yaymail' ), 'icon' => self::$icon, 'group' => 'basic', 'available' => true, 'position' => 120, 'data' => [ 'container_group_definition' => [ 'component' => 'GroupDefinition', 'title' => __( 'Container settings', 'yaymail' ), 'description' => __( 'Handle container layout settings', 'yaymail' ), ], 'background_color' => [ 'value_path' => 'background_color', 'component' => 'Color', 'title' => __( 'Background color', 'yaymail' ), 'default_value' => isset( $attributes['background_color'] ) ? $attributes['background_color'] : '#fff', 'type' => 'style', ], 'text_color' => [ 'value_path' => 'text_color', 'component' => 'Color', 'title' => __( 'Text color', 'yaymail' ), 'default_value' => isset( $attributes['text_color'] ) ? $attributes['text_color'] : YAYMAIL_COLOR_TEXT_DEFAULT, 'type' => 'style', ], 'column_breaker' => [ 'component' => 'LineBreaker', ], 'column_settings' => [ 'component' => 'GroupDefinition', 'title' => __( 'Column settings', 'yaymail' ), 'description' => __( 'Handle column settings', 'yaymail' ), ], 'image_box' => [ 'component' => 'ImageBox', 'value_path' => 'image_box', 'column_1' => [ 'padding' => [ 'value' => $attributes['column_1']['padding'] ?? [ 'top' => '10', 'right' => '10', 'bottom' => '10', 'left' => '50', ], 'type' => 'style', ], 'align' => [ 'value' => $attributes['column_1']['align'] ?? 'center', 'type' => 'style', ], 'image' => [ 'value' => $attributes['column_1']['image'] ?? $src, 'type' => 'content', ], 'full_width' => [ 'value' => $attributes['column_1']['full_width'] ?? false, 'type' => 'style', ], 'width' => [ 'value' => $attributes['column_1']['width'] ?? '242', 'type' => 'style', ], 'url' => [ 'value' => $attributes['column_1']['url'] ?? '#', 'type' => 'content', ], 'alt' => [ 'value' => $attributes['column_1']['alt'] ?? '', 'type' => 'content', ], ], 'column_2' => [ 'padding' => [ 'value' => $attributes['column_2']['padding'] ?? [ 'top' => '10', 'right' => '50', 'bottom' => '10', 'left' => '10', ], 'type' => 'style', ], 'font_family' => [ 'value' => $attributes['column_2']['font_family'] ?? YAYMAIL_DEFAULT_FAMILY, 'type' => 'style', ], 'rich_text' => [ 'value' => $attributes['column_2']['rich_text'] ?? '

This is a title

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy.

It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.

', 'type' => 'content', ], ], ], ], ]; } }