# yaymail/trunk/src/TemplatePatterns/Patterns/Shipping5.php

YayMail – WooCommerce Email Customizer, version trunk. 95 lines.

- Page: https://pluginprobe.com/plugins/yaymail/trunk/code/src/TemplatePatterns/Patterns/Shipping5.php
- Raw: https://pluginprobe.com/plugins/yaymail/trunk/raw/src/TemplatePatterns/Patterns/Shipping5.php
- Modified: 2025-07-17T15:59:16+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/yaymail/trunk/code/src/TemplatePatterns/Patterns/Shipping5.php#L10-L20`.

```php
<?php
namespace YayMail\TemplatePatterns\Patterns;

use YayMail\Abstracts\BasePattern;
use YayMail\Elements\Column;
use YayMail\Elements\ColumnLayout;
use YayMail\Elements\Image;
use YayMail\Elements\Text;
use YayMail\TemplatePatterns\SectionTemplates\Shipping;
use YayMail\Utils\SingletonTrait;

/** */
class Shipping5 extends BasePattern {
    use SingletonTrait;

    public const TYPE = 'shipping_5';

    public function __construct() {
        $this->id       = uniqid();
        $this->section  = Shipping::TYPE;
        $this->position = 14;
        $this->name     = __( 'Shipping 5', 'yaymail' );
        $this->elements = [
            ColumnLayout::get_object_data(
                1,
                [
                    'background_color'       => '#ffffff00',
                    'padding'                => [
                        'top'    => 0,
                        'left'   => 0,
                        'bottom' => 0,
                        'right'  => 0,
                    ],
                    'inner_background_color' => '#ffffff00',
                    'background_image'       => [
                        'url'      => 'https://images.wpbrandy.com/uploads/yaymail-shipping-5-bg.png',
                        'position' => 'top_center',
                        'size'     => 'contain',
                    ],
                    'children'               => [
                        Column::get_object_data(
                            100,
                            [
                                'children' => [
                                    Image::get_object_data(
                                        [
                                            'src'     => 'https://images.wpbrandy.com/uploads/yaymail-footer-img-1.png',
                                            'width'   => 162,
                                            'align'   => 'center',
                                            'padding' => [
                                                'top'    => 30,
                                                'right'  => 40,
                                                'bottom' => 5,
                                                'left'   => 40,
                                            ],
                                            'background_color' => '#ffffff00',
                                        ]
                                    ),
                                    Text::get_object_data(
                                        [
                                            'rich_text'  => '<p style="text-align: center; margin: 0; font-weight: 700;"><span style="font-size: 24px;">Thank you for shopping with us!</span></p>',
                                            'padding'    => [
                                                'top'    => 5,
                                                'right'  => 40,
                                                'bottom' => 30,
                                                'left'   => 40,
                                            ],
                                            'text_color' => '#ffffff',
                                            'background_color' => '#ffffff00',
                                        ]
                                    ),
                                ],
                            ]
                        ),
                    ],
                ]
            ),
            Image::get_object_data(
                [
                    'src'              => 'https://images.wpbrandy.com/uploads/yaymail-order-status.png',
                    'width'            => 382,
                    'align'            => 'center',
                    'padding'          => [
                        'top'    => 20,
                        'right'  => 40,
                        'bottom' => 20,
                        'left'   => 40,
                    ],
                    'background_color' => '#ffffff',
                ]
            ),
        ];
    }
}

```
