| 1 |
<?php |
| 2 |
namespace YayMail\TemplatePatterns\Patterns; |
| 3 |
|
| 4 |
use YayMail\Abstracts\BasePattern; |
| 5 |
use YayMail\Elements\Button; |
| 6 |
use YayMail\Elements\Column; |
| 7 |
use YayMail\Elements\ColumnLayout; |
| 8 |
use YayMail\Elements\Image; |
| 9 |
use YayMail\Elements\Text; |
| 10 |
use YayMail\TemplatePatterns\SectionTemplates\Gallery; |
| 11 |
use YayMail\Utils\SingletonTrait; |
| 12 |
|
| 13 |
/** */ |
| 14 |
class Gallery4 extends BasePattern { |
| 15 |
|
| 16 |
use SingletonTrait; |
| 17 |
|
| 18 |
public const TYPE = 'gallery_4'; |
| 19 |
|
| 20 |
private function __construct() { |
| 21 |
$this->id = uniqid(); |
| 22 |
$this->section = Gallery::TYPE; |
| 23 |
$this->position = 13; |
| 24 |
$this->name = __( 'Gallery 4', 'yaymail' ); |
| 25 |
$this->elements = [ |
| 26 |
Text::get_object_data( |
| 27 |
[ |
| 28 |
'background_color' => '#ffffff', |
| 29 |
'text_color' => '#242527', |
| 30 |
'rich_text' => '<p style="text-align: center; margin: 0;"><span style="font-size: 18px; font-weight: 600;">Discover Our Newest Collection at @[yaymail_site_name]</span></p>', |
| 31 |
'padding' => [ |
| 32 |
'top' => 15, |
| 33 |
'bottom' => 15, |
| 34 |
'left' => 30, |
| 35 |
'right' => 30, |
| 36 |
], |
| 37 |
] |
| 38 |
), |
| 39 |
ColumnLayout::get_object_data( |
| 40 |
3, |
| 41 |
[ |
| 42 |
'inner_background_color' => '#ffffff00', |
| 43 |
'padding' => [ |
| 44 |
'top' => 0, |
| 45 |
'bottom' => 10, |
| 46 |
'left' => 0, |
| 47 |
'right' => 0, |
| 48 |
], |
| 49 |
'children' => [ |
| 50 |
Column::get_object_data( |
| 51 |
19, |
| 52 |
[ |
| 53 |
'children' => [ |
| 54 |
Image::get_object_data( |
| 55 |
[ |
| 56 |
'src' => 'https://images.wpbrandy.com/uploads/yaymail-gallery-4-img-1.png', |
| 57 |
'width' => 107, |
| 58 |
'align' => 'left', |
| 59 |
'background_color' => '#ffffff00', |
| 60 |
'padding' => [ |
| 61 |
'top' => 5, |
| 62 |
'bottom' => 5, |
| 63 |
'right' => 5, |
| 64 |
'left' => 0, |
| 65 |
], |
| 66 |
] |
| 67 |
), |
| 68 |
|
| 69 |
], |
| 70 |
] |
| 71 |
), |
| 72 |
Column::get_object_data( |
| 73 |
62, |
| 74 |
[ |
| 75 |
'children' => [ |
| 76 |
Image::get_object_data( |
| 77 |
[ |
| 78 |
'src' => 'https://images.wpbrandy.com/uploads/yaymail-gallery-4-img-2.png', |
| 79 |
'width' => 360, |
| 80 |
'align' => 'center', |
| 81 |
'background_color' => '#ffffff00', |
| 82 |
'padding' => [ |
| 83 |
'top' => 5, |
| 84 |
'bottom' => 5, |
| 85 |
'right' => 10, |
| 86 |
'left' => 10, |
| 87 |
], |
| 88 |
] |
| 89 |
), |
| 90 |
], |
| 91 |
] |
| 92 |
), |
| 93 |
Column::get_object_data( |
| 94 |
19, |
| 95 |
[ |
| 96 |
'children' => [ |
| 97 |
Image::get_object_data( |
| 98 |
[ |
| 99 |
'src' => 'https://images.wpbrandy.com/uploads/yaymail-gallery-4-img-3.png', |
| 100 |
'width' => 107, |
| 101 |
'align' => 'right', |
| 102 |
'background_color' => '#ffffff00', |
| 103 |
'padding' => [ |
| 104 |
'top' => 5, |
| 105 |
'bottom' => 5, |
| 106 |
'right' => 0, |
| 107 |
'left' => 5, |
| 108 |
], |
| 109 |
] |
| 110 |
), |
| 111 |
], |
| 112 |
] |
| 113 |
), |
| 114 |
], |
| 115 |
] |
| 116 |
), |
| 117 |
Text::get_object_data( |
| 118 |
[ |
| 119 |
'background_color' => '#ffffff', |
| 120 |
'text_color' => '#242527', |
| 121 |
'rich_text' => '<p style="text-align: center; margin: 0;"><span style="font-size: 13px; font-weight: 300;">From breezy florals to modern silhouettes, each piece is curated to elevate your spring wardrobe. Embrace the spirit of spring with our meticulously crafted collection - where every piece tells a story of renewal and timeless allure</span></p>', |
| 122 |
'padding' => [ |
| 123 |
'top' => 0, |
| 124 |
'bottom' => 5, |
| 125 |
'left' => 50, |
| 126 |
'right' => 50, |
| 127 |
], |
| 128 |
] |
| 129 |
), |
| 130 |
Button::get_object_data( |
| 131 |
[ |
| 132 |
'align' => 'center', |
| 133 |
'button_background_color' => '#FFC900', |
| 134 |
'text_color' => '#ffffff', |
| 135 |
'text' => 'Explore Collection', |
| 136 |
'border_radius' => [ |
| 137 |
'top_left' => 12, |
| 138 |
'top_right' => 12, |
| 139 |
'bottom_right' => 12, |
| 140 |
'bottom_left' => 12, |
| 141 |
], |
| 142 |
'padding' => [ |
| 143 |
'top' => 10, |
| 144 |
'bottom' => 17, |
| 145 |
'left' => 19, |
| 146 |
'right' => 19, |
| 147 |
], |
| 148 |
'width' => 31, |
| 149 |
] |
| 150 |
), |
| 151 |
]; |
| 152 |
} |
| 153 |
} |
| 154 |
|