| 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 Gallery9 extends BasePattern { |
| 15 |
|
| 16 |
use SingletonTrait; |
| 17 |
|
| 18 |
public const TYPE = 'gallery_9'; |
| 19 |
|
| 20 |
private function __construct() { |
| 21 |
$this->id = uniqid(); |
| 22 |
$this->section = Gallery::TYPE; |
| 23 |
$this->position = 18; |
| 24 |
$this->name = __( 'Gallery 9', '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: left; margin: 0;"><span style="font-size: 18px; font-weight: 600;">Discover the Bloom: <br> Explore Our Latest Spring 2024 Collection!</span></p>', |
| 31 |
'padding' => [ |
| 32 |
'top' => 15, |
| 33 |
'bottom' => 10, |
| 34 |
'left' => 30, |
| 35 |
'right' => 30, |
| 36 |
], |
| 37 |
] |
| 38 |
), |
| 39 |
ColumnLayout::get_object_data( |
| 40 |
4, |
| 41 |
[ |
| 42 |
'inner_background_color' => '#ffffff00', |
| 43 |
'padding' => [ |
| 44 |
'top' => 10, |
| 45 |
'bottom' => 10, |
| 46 |
'left' => 30, |
| 47 |
'right' => 30, |
| 48 |
], |
| 49 |
'children' => [ |
| 50 |
Column::get_object_data( |
| 51 |
25, |
| 52 |
[ |
| 53 |
'children' => [ |
| 54 |
Image::get_object_data( |
| 55 |
[ |
| 56 |
'src' => 'https://images.wpbrandy.com/uploads/yaymail-gallery-9-img-1.png', |
| 57 |
'width' => 125, |
| 58 |
'align' => 'center', |
| 59 |
'background_color' => '#ffffff00', |
| 60 |
'padding' => [ |
| 61 |
'top' => 0, |
| 62 |
'bottom' => 5, |
| 63 |
'right' => 5, |
| 64 |
'left' => 0, |
| 65 |
], |
| 66 |
] |
| 67 |
), |
| 68 |
Image::get_object_data( |
| 69 |
[ |
| 70 |
'src' => 'https://images.wpbrandy.com/uploads/yaymail-gallery-9-img-2.png', |
| 71 |
'width' => 128, |
| 72 |
'align' => 'center', |
| 73 |
'background_color' => '#ffffff00', |
| 74 |
'padding' => [ |
| 75 |
'top' => 5, |
| 76 |
'bottom' => 0, |
| 77 |
'right' => 5, |
| 78 |
'left' => 0, |
| 79 |
], |
| 80 |
] |
| 81 |
), |
| 82 |
], |
| 83 |
] |
| 84 |
), |
| 85 |
Column::get_object_data( |
| 86 |
25, |
| 87 |
[ |
| 88 |
'children' => [ |
| 89 |
Image::get_object_data( |
| 90 |
[ |
| 91 |
'src' => 'https://images.wpbrandy.com/uploads/yaymail-gallery-9-img-4.png', |
| 92 |
'width' => 127, |
| 93 |
'align' => 'center', |
| 94 |
'background_color' => '#ffffff00', |
| 95 |
'padding' => [ |
| 96 |
'top' => 0, |
| 97 |
'bottom' => 5, |
| 98 |
'right' => 5, |
| 99 |
'left' => 5, |
| 100 |
], |
| 101 |
] |
| 102 |
), |
| 103 |
Image::get_object_data( |
| 104 |
[ |
| 105 |
'src' => 'https://images.wpbrandy.com/uploads/yaymail-gallery-9-img-3.png', |
| 106 |
'width' => 127, |
| 107 |
'align' => 'center', |
| 108 |
'background_color' => '#ffffff00', |
| 109 |
'padding' => [ |
| 110 |
'top' => 5, |
| 111 |
'bottom' => 0, |
| 112 |
'right' => 5, |
| 113 |
'left' => 5, |
| 114 |
], |
| 115 |
] |
| 116 |
), |
| 117 |
], |
| 118 |
] |
| 119 |
), |
| 120 |
Column::get_object_data( |
| 121 |
25, |
| 122 |
[ |
| 123 |
'children' => [ |
| 124 |
Image::get_object_data( |
| 125 |
[ |
| 126 |
'src' => 'https://images.wpbrandy.com/uploads/yaymail-gallery-9-img-5.png', |
| 127 |
'width' => 127, |
| 128 |
'align' => 'center', |
| 129 |
'background_color' => '#ffffff00', |
| 130 |
'padding' => [ |
| 131 |
'top' => 5, |
| 132 |
'bottom' => 5, |
| 133 |
'right' => 5, |
| 134 |
'left' => 5, |
| 135 |
], |
| 136 |
] |
| 137 |
), |
| 138 |
Image::get_object_data( |
| 139 |
[ |
| 140 |
'src' => 'https://images.wpbrandy.com/uploads/yaymail-gallery-9-img-7.png', |
| 141 |
'width' => 122, |
| 142 |
'align' => 'center', |
| 143 |
'background_color' => '#ffffff00', |
| 144 |
'padding' => [ |
| 145 |
'top' => 5, |
| 146 |
'bottom' => 0, |
| 147 |
'right' => 5, |
| 148 |
'left' => 5, |
| 149 |
], |
| 150 |
] |
| 151 |
), |
| 152 |
], |
| 153 |
] |
| 154 |
), |
| 155 |
Column::get_object_data( |
| 156 |
25, |
| 157 |
[ |
| 158 |
'children' => [ |
| 159 |
Image::get_object_data( |
| 160 |
[ |
| 161 |
'src' => 'https://images.wpbrandy.com/uploads/yaymail-gallery-9-img-6.png', |
| 162 |
'width' => 124, |
| 163 |
'align' => 'center', |
| 164 |
'background_color' => '#ffffff00', |
| 165 |
'padding' => [ |
| 166 |
'top' => 5, |
| 167 |
'bottom' => 5, |
| 168 |
'right' => 0, |
| 169 |
'left' => 5, |
| 170 |
], |
| 171 |
] |
| 172 |
), |
| 173 |
Image::get_object_data( |
| 174 |
[ |
| 175 |
'src' => 'https://images.wpbrandy.com/uploads/yaymail-gallery-9-img-8.png', |
| 176 |
'width' => 124, |
| 177 |
'align' => 'center', |
| 178 |
'background_color' => '#ffffff00', |
| 179 |
'padding' => [ |
| 180 |
'top' => 5, |
| 181 |
'bottom' => 0, |
| 182 |
'right' => 0, |
| 183 |
'left' => 5, |
| 184 |
], |
| 185 |
] |
| 186 |
), |
| 187 |
], |
| 188 |
] |
| 189 |
), |
| 190 |
], |
| 191 |
] |
| 192 |
), |
| 193 |
Text::get_object_data( |
| 194 |
[ |
| 195 |
'background_color' => '#ffffff', |
| 196 |
'text_color' => '#242527', |
| 197 |
'rich_text' => '<p style="text-align: left; margin: 0;"><span style="font-size: 13px; font-weight: 300;">Immerse yourself in a symphony of vibrant hues, trend-setting designs, and seasonal elegance. 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>', |
| 198 |
'padding' => [ |
| 199 |
'top' => 10, |
| 200 |
'bottom' => 10, |
| 201 |
'left' => 30, |
| 202 |
'right' => 30, |
| 203 |
], |
| 204 |
] |
| 205 |
), |
| 206 |
Button::get_object_data( |
| 207 |
[ |
| 208 |
'align' => 'left', |
| 209 |
'button_background_color' => '#FFC900', |
| 210 |
'text_color' => '#ffffff', |
| 211 |
'text' => 'Explore Our Collection', |
| 212 |
'border_radius' => [ |
| 213 |
'top_left' => 12, |
| 214 |
'top_right' => 12, |
| 215 |
'bottom_right' => 12, |
| 216 |
'bottom_left' => 12, |
| 217 |
], |
| 218 |
'padding' => [ |
| 219 |
'top' => 10, |
| 220 |
'bottom' => 15, |
| 221 |
'left' => 30, |
| 222 |
'right' => 30, |
| 223 |
], |
| 224 |
'width' => 45, |
| 225 |
'font_size' => 14, |
| 226 |
] |
| 227 |
), |
| 228 |
]; |
| 229 |
} |
| 230 |
} |
| 231 |
|