| 1 |
<?php |
| 2 |
|
| 3 |
namespace YayMail\TemplateLibrary\Templates\Completed; |
| 4 |
|
| 5 |
use YayMail\Abstracts\BaseTemplate; |
| 6 |
use YayMail\Elements\BillingAddress; |
| 7 |
use YayMail\Elements\Button; |
| 8 |
use YayMail\Elements\Column; |
| 9 |
use YayMail\Elements\ColumnLayout; |
| 10 |
use YayMail\Elements\Divider; |
| 11 |
use YayMail\Elements\Logo; |
| 12 |
use YayMail\Elements\OrderDetails; |
| 13 |
use YayMail\Elements\ShippingAddress; |
| 14 |
use YayMail\Elements\SocialIcon; |
| 15 |
use YayMail\Elements\Text; |
| 16 |
use YayMail\Utils\SingletonTrait; |
| 17 |
|
| 18 |
/** |
| 19 |
* Simple Receipt template for Completed Order email. |
| 20 |
*/ |
| 21 |
class SimpleReceipt extends BaseTemplate { |
| 22 |
use SingletonTrait; |
| 23 |
|
| 24 |
public function __construct() { |
| 25 |
parent::__construct(); |
| 26 |
$this->id = 'completed_order_v2'; |
| 27 |
$this->email_type = 'customer_completed_order'; |
| 28 |
$this->name = 'Simple Receipt'; |
| 29 |
$this->description = 'A clean, distraction-free confirmation.'; |
| 30 |
$this->categories = [ 'Minimal Collection' ]; |
| 31 |
$this->template_settings = [ |
| 32 |
'text_link_color' => '#1a1a1a', |
| 33 |
]; |
| 34 |
|
| 35 |
$this->elements = [ |
| 36 |
ColumnLayout::get_object_data( |
| 37 |
3, |
| 38 |
[ |
| 39 |
'column_width' => [], |
| 40 |
'column_spacing' => '0', |
| 41 |
'vertical_align' => 'top', |
| 42 |
'container_setting_breaker' => [ |
| 43 |
'component' => 'LineBreaker', |
| 44 |
], |
| 45 |
'container_setting_group_definition' => [ |
| 46 |
'component' => 'GroupDefinition', |
| 47 |
'title' => 'Container layout settings', |
| 48 |
'description' => 'Handle container layout settings', |
| 49 |
], |
| 50 |
'padding' => [ |
| 51 |
'top' => '0', |
| 52 |
'right' => '0', |
| 53 |
'bottom' => '0', |
| 54 |
'left' => '0', |
| 55 |
], |
| 56 |
'border_radius' => [ |
| 57 |
'top_left' => '0', |
| 58 |
'top_right' => '0', |
| 59 |
'bottom_left' => '0', |
| 60 |
'bottom_right' => '0', |
| 61 |
], |
| 62 |
'background_color' => '#fafafa', |
| 63 |
'background_image' => [ |
| 64 |
'url' => '', |
| 65 |
'position' => 'default', |
| 66 |
'x_position' => 0, |
| 67 |
'y_position' => 0, |
| 68 |
'repeat' => 'default', |
| 69 |
'size' => 'default', |
| 70 |
], |
| 71 |
'inner_setting_breaker' => [ |
| 72 |
'component' => 'LineBreaker', |
| 73 |
], |
| 74 |
'inner_setting_group_definition' => [ |
| 75 |
'component' => 'GroupDefinition', |
| 76 |
'title' => 'Inner layout settings', |
| 77 |
'description' => 'Handle inner layout settings', |
| 78 |
], |
| 79 |
'inner_border_radius' => [ |
| 80 |
'top_left' => '0', |
| 81 |
'top_right' => '0', |
| 82 |
'bottom_left' => '0', |
| 83 |
'bottom_right' => '0', |
| 84 |
], |
| 85 |
'inner_background_color' => '#ffffff00', |
| 86 |
'column_borders' => [ |
| 87 |
'component' => 'ColumnBorders', |
| 88 |
'title' => 'Column borders', |
| 89 |
], |
| 90 |
'children' => [ |
| 91 |
Column::get_object_data( |
| 92 |
33.333333333333, |
| 93 |
[ |
| 94 |
'children' => [ |
| 95 |
Text::get_object_data( |
| 96 |
[ |
| 97 |
'container_group_definition' => [ |
| 98 |
'component' => 'GroupDefinition', |
| 99 |
'title' => 'Container settings', |
| 100 |
'description' => 'Handle container layout settings', |
| 101 |
], |
| 102 |
'padding' => [ |
| 103 |
'top' => '15', |
| 104 |
'right' => 0, |
| 105 |
'bottom' => '15', |
| 106 |
'left' => '50', |
| 107 |
], |
| 108 |
'background_color' => '#ffffff00', |
| 109 |
'border' => [ |
| 110 |
'side' => 'none', |
| 111 |
'width' => '1', |
| 112 |
'style' => 'solid', |
| 113 |
'color' => '#e5e5e5', |
| 114 |
'custom' => [ |
| 115 |
'top' => '1', |
| 116 |
'right' => '1', |
| 117 |
'bottom' => '1', |
| 118 |
'left' => '1', |
| 119 |
], |
| 120 |
], |
| 121 |
'content_breaker' => [ |
| 122 |
'component' => 'LineBreaker', |
| 123 |
], |
| 124 |
'content_group_definition' => [ |
| 125 |
'component' => 'GroupDefinition', |
| 126 |
'title' => 'Content settings', |
| 127 |
'description' => 'Handle content settings', |
| 128 |
], |
| 129 |
'font_family' => '"Outfit", "DM Sans", sans-serif', |
| 130 |
'text_color' => '#1a1a1a', |
| 131 |
'rich_text' => '<p style="text-align: right"><span style="font-size: 16px">My Account</span></p>', |
| 132 |
] |
| 133 |
), |
| 134 |
], |
| 135 |
] |
| 136 |
), |
| 137 |
Column::get_object_data( |
| 138 |
33.333333333333, |
| 139 |
[ |
| 140 |
'children' => [ |
| 141 |
Text::get_object_data( |
| 142 |
[ |
| 143 |
'container_group_definition' => [ |
| 144 |
'component' => 'GroupDefinition', |
| 145 |
'title' => 'Container settings', |
| 146 |
'description' => 'Handle container layout settings', |
| 147 |
], |
| 148 |
'padding' => [ |
| 149 |
'top' => '15', |
| 150 |
'right' => 0, |
| 151 |
'bottom' => '15', |
| 152 |
'left' => 0, |
| 153 |
], |
| 154 |
'background_color' => '#ffffff00', |
| 155 |
'border' => [ |
| 156 |
'side' => 'none', |
| 157 |
'width' => '1', |
| 158 |
'style' => 'solid', |
| 159 |
'color' => '#e5e5e5', |
| 160 |
'custom' => [ |
| 161 |
'top' => '1', |
| 162 |
'right' => '1', |
| 163 |
'bottom' => '1', |
| 164 |
'left' => '1', |
| 165 |
], |
| 166 |
], |
| 167 |
'content_breaker' => [ |
| 168 |
'component' => 'LineBreaker', |
| 169 |
], |
| 170 |
'content_group_definition' => [ |
| 171 |
'component' => 'GroupDefinition', |
| 172 |
'title' => 'Content settings', |
| 173 |
'description' => 'Handle content settings', |
| 174 |
], |
| 175 |
'font_family' => '"Outfit", "DM Sans", sans-serif', |
| 176 |
'text_color' => '#1a1a1a', |
| 177 |
'rich_text' => '<p style="text-align: center"><span style="font-size: 16px">Order Tracking</span></p>', |
| 178 |
] |
| 179 |
), |
| 180 |
], |
| 181 |
] |
| 182 |
), |
| 183 |
Column::get_object_data( |
| 184 |
33.333333333333, |
| 185 |
[ |
| 186 |
'children' => [ |
| 187 |
Text::get_object_data( |
| 188 |
[ |
| 189 |
'container_group_definition' => [ |
| 190 |
'component' => 'GroupDefinition', |
| 191 |
'title' => 'Container settings', |
| 192 |
'description' => 'Handle container layout settings', |
| 193 |
], |
| 194 |
'padding' => [ |
| 195 |
'top' => '15', |
| 196 |
'right' => '50', |
| 197 |
'bottom' => '15', |
| 198 |
'left' => 0, |
| 199 |
], |
| 200 |
'background_color' => '#ffffff00', |
| 201 |
'border' => [ |
| 202 |
'side' => 'none', |
| 203 |
'width' => '1', |
| 204 |
'style' => 'solid', |
| 205 |
'color' => '#e5e5e5', |
| 206 |
'custom' => [ |
| 207 |
'top' => '1', |
| 208 |
'right' => '1', |
| 209 |
'bottom' => '1', |
| 210 |
'left' => '1', |
| 211 |
], |
| 212 |
], |
| 213 |
'content_breaker' => [ |
| 214 |
'component' => 'LineBreaker', |
| 215 |
], |
| 216 |
'content_group_definition' => [ |
| 217 |
'component' => 'GroupDefinition', |
| 218 |
'title' => 'Content settings', |
| 219 |
'description' => 'Handle content settings', |
| 220 |
], |
| 221 |
'font_family' => '"Outfit", "DM Sans", sans-serif', |
| 222 |
'text_color' => '#1a1a1a', |
| 223 |
'rich_text' => '<p style="text-align: left"><span style="font-size: 16px">Contact</span></p>', |
| 224 |
] |
| 225 |
), |
| 226 |
], |
| 227 |
] |
| 228 |
), |
| 229 |
], |
| 230 |
] |
| 231 |
), |
| 232 |
Logo::get_object_data( |
| 233 |
[ |
| 234 |
'container_group_definition' => [ |
| 235 |
'component' => 'GroupDefinition', |
| 236 |
'title' => 'Container settings', |
| 237 |
'description' => 'Handle container layout settings', |
| 238 |
], |
| 239 |
'padding' => [ |
| 240 |
'top' => '50', |
| 241 |
'right' => '50', |
| 242 |
'bottom' => '15', |
| 243 |
'left' => '50', |
| 244 |
], |
| 245 |
'background_color' => '#ffffff', |
| 246 |
'logo_breaker' => [ |
| 247 |
'component' => 'LineBreaker', |
| 248 |
], |
| 249 |
'logo_group_definition' => [ |
| 250 |
'component' => 'GroupDefinition', |
| 251 |
'title' => 'Logo settings', |
| 252 |
'description' => 'Handle logo settings', |
| 253 |
], |
| 254 |
'src' => YAYMAIL_PLUGIN_URL . 'assets/images/woocommerce-logo.png', |
| 255 |
'align' => 'center', |
| 256 |
'width' => '131', |
| 257 |
'url' => '#', |
| 258 |
'alt' => '', |
| 259 |
] |
| 260 |
), |
| 261 |
Text::get_object_data( |
| 262 |
[ |
| 263 |
'container_group_definition' => [ |
| 264 |
'component' => 'GroupDefinition', |
| 265 |
'title' => 'Container settings', |
| 266 |
'description' => 'Handle container layout settings', |
| 267 |
], |
| 268 |
'padding' => [ |
| 269 |
'top' => 15, |
| 270 |
'right' => 50, |
| 271 |
'bottom' => 15, |
| 272 |
'left' => 50, |
| 273 |
], |
| 274 |
'background_color' => '#fff', |
| 275 |
'border' => [ |
| 276 |
'side' => 'none', |
| 277 |
'width' => '1', |
| 278 |
'style' => 'solid', |
| 279 |
'color' => '#e5e5e5', |
| 280 |
'custom' => [ |
| 281 |
'top' => '1', |
| 282 |
'right' => '1', |
| 283 |
'bottom' => '1', |
| 284 |
'left' => '1', |
| 285 |
], |
| 286 |
], |
| 287 |
'content_breaker' => [ |
| 288 |
'component' => 'LineBreaker', |
| 289 |
], |
| 290 |
'content_group_definition' => [ |
| 291 |
'component' => 'GroupDefinition', |
| 292 |
'title' => 'Content settings', |
| 293 |
'description' => 'Handle content settings', |
| 294 |
], |
| 295 |
'font_family' => '"Outfit", "DM Sans", sans-serif', |
| 296 |
'text_color' => '#333439', |
| 297 |
'rich_text' => '<p><span style="font-size: 18px">Hi <strong>[yaymail_billing_first_name] [yaymail_billing_last_name],</strong></span></p><br /><p><span style="font-size: 18px">Great news! Your order #[yaymail_order_id is_plain="true"] has been successfully delivered. If you\'ve received your order, please take a moment to confirm delivery in your account.</span></p><br /><p><span style="font-size: 18px">Thank you for shopping with us!</span></p>', |
| 298 |
] |
| 299 |
), |
| 300 |
Button::get_object_data( |
| 301 |
[ |
| 302 |
'container_group_definition' => [ |
| 303 |
'component' => 'GroupDefinition', |
| 304 |
'title' => 'Container settings', |
| 305 |
'description' => 'Handle container layout settings', |
| 306 |
], |
| 307 |
'padding' => [ |
| 308 |
'top' => 10, |
| 309 |
'right' => '50', |
| 310 |
'bottom' => 10, |
| 311 |
'left' => '50', |
| 312 |
], |
| 313 |
'background_color' => '#fff', |
| 314 |
'button_setting_breaker' => [ |
| 315 |
'component' => 'LineBreaker', |
| 316 |
], |
| 317 |
'button_group_definition' => [ |
| 318 |
'component' => 'GroupDefinition', |
| 319 |
'title' => 'Button settings', |
| 320 |
'description' => 'Handle button settings', |
| 321 |
], |
| 322 |
'button_type' => 'default', |
| 323 |
'align' => 'left', |
| 324 |
'width' => 'auto', |
| 325 |
'custom_width' => '50', |
| 326 |
'height' => '21', |
| 327 |
'button_padding' => [ |
| 328 |
'top' => '12', |
| 329 |
'right' => '20', |
| 330 |
'bottom' => '12', |
| 331 |
'left' => '20', |
| 332 |
], |
| 333 |
'button_background_color' => '#873EFF', |
| 334 |
'text_color' => '#ffffff', |
| 335 |
'border' => [ |
| 336 |
'side' => 'none', |
| 337 |
'width' => '1', |
| 338 |
'style' => 'solid', |
| 339 |
'color' => '#e5e5e5', |
| 340 |
'custom' => [ |
| 341 |
'top' => '1', |
| 342 |
'right' => '1', |
| 343 |
'bottom' => '1', |
| 344 |
'left' => '1', |
| 345 |
], |
| 346 |
], |
| 347 |
'border_radius' => [ |
| 348 |
'top_left' => 0, |
| 349 |
'top_right' => 0, |
| 350 |
'bottom_right' => 0, |
| 351 |
'bottom_left' => 0, |
| 352 |
], |
| 353 |
'button_content_group_definition' => [ |
| 354 |
'component' => 'GroupDefinition', |
| 355 |
'title' => 'Button content', |
| 356 |
'description' => 'Handle button content', |
| 357 |
], |
| 358 |
'text' => 'View Your Order', |
| 359 |
'url' => '#', |
| 360 |
'font_size' => 16, |
| 361 |
'weight' => 'normal', |
| 362 |
'font_family' => '"Outfit", "DM Sans", sans-serif', |
| 363 |
] |
| 364 |
), |
| 365 |
OrderDetails::get_object_data( |
| 366 |
[ |
| 367 |
'rich_text' => '[yaymail_order_details]', |
| 368 |
'payment_instructions' => '[yaymail_payment_instructions]', |
| 369 |
'container_group_definition' => [ |
| 370 |
'component' => 'GroupDefinition', |
| 371 |
'title' => 'Container settings', |
| 372 |
'description' => 'Handle container layout settings', |
| 373 |
], |
| 374 |
'padding' => [ |
| 375 |
'top' => '15', |
| 376 |
'right' => '50', |
| 377 |
'bottom' => '15', |
| 378 |
'left' => '50', |
| 379 |
], |
| 380 |
'background_color' => '#fff', |
| 381 |
'border' => [ |
| 382 |
'side' => 'none', |
| 383 |
'width' => '1', |
| 384 |
'style' => 'solid', |
| 385 |
'color' => '#e5e5e5', |
| 386 |
'custom' => [ |
| 387 |
'top' => '1', |
| 388 |
'right' => '1', |
| 389 |
'bottom' => '1', |
| 390 |
'left' => '1', |
| 391 |
], |
| 392 |
], |
| 393 |
'table_setting_breaker' => [ |
| 394 |
'component' => 'LineBreaker', |
| 395 |
], |
| 396 |
'table_group_definition' => [ |
| 397 |
'component' => 'GroupDefinition', |
| 398 |
'title' => 'Table settings', |
| 399 |
'description' => 'Handle table settings', |
| 400 |
], |
| 401 |
'layout_type' => 'legacy', |
| 402 |
'title' => '<p><span style="font-size: 16px"><strong>ORDER SUMMARY - FOR BUYER</strong></span></p>', |
| 403 |
'title_color' => '#1A1A1A', |
| 404 |
'text_color' => '#636363', |
| 405 |
'border_color' => '#e5e5e5', |
| 406 |
'font_family' => '"Outfit", "DM Sans", sans-serif', |
| 407 |
'table_content_font_size' => 16, |
| 408 |
'table_heading_line_breaker' => [ |
| 409 |
'component' => 'LineBreaker', |
| 410 |
], |
| 411 |
'table_heading_group_definition' => [ |
| 412 |
'component' => 'GroupDefinition', |
| 413 |
'title' => 'Table heading settings', |
| 414 |
'description' => 'Handle table heading settings', |
| 415 |
], |
| 416 |
'table_heading_font_size' => 14, |
| 417 |
'show_table_header' => 1, |
| 418 |
'product_title' => 'Product', |
| 419 |
'cost_title' => 'Cost', |
| 420 |
'quantity_title' => 'Quantity', |
| 421 |
'price_title' => 'Price', |
| 422 |
'cart_subtotal_title' => 'Subtotal:', |
| 423 |
'payment_method_title' => 'Payment method:', |
| 424 |
'order_total_title' => 'Total:', |
| 425 |
'order_note_title' => 'Note:', |
| 426 |
'shipping_title' => 'Shipping: [yaymail_shipping_method]', |
| 427 |
'discount_title' => 'Discount:', |
| 428 |
'custom_footer_rows_breaker' => [ |
| 429 |
'component' => 'LineBreaker', |
| 430 |
], |
| 431 |
'custom_footer_rows_group' => [ |
| 432 |
'component' => 'GroupDefinition', |
| 433 |
'title' => 'Custom Footer Rows', |
| 434 |
'description' => 'Add custom rows to the order totals footer', |
| 435 |
], |
| 436 |
'custom_footer_rows' => [], |
| 437 |
] |
| 438 |
), |
| 439 |
ColumnLayout::get_object_data( |
| 440 |
2, |
| 441 |
[ |
| 442 |
'column_width' => [], |
| 443 |
'column_spacing' => 30, |
| 444 |
'vertical_align' => 'top', |
| 445 |
'container_setting_breaker' => [ |
| 446 |
'component' => 'LineBreaker', |
| 447 |
], |
| 448 |
'container_setting_group_definition' => [ |
| 449 |
'component' => 'GroupDefinition', |
| 450 |
'title' => 'Container layout settings', |
| 451 |
'description' => 'Handle container layout settings', |
| 452 |
], |
| 453 |
'padding' => [ |
| 454 |
'top' => 15, |
| 455 |
'right' => 50, |
| 456 |
'bottom' => '15', |
| 457 |
'left' => 50, |
| 458 |
], |
| 459 |
'border_radius' => [ |
| 460 |
'top_left' => '0', |
| 461 |
'top_right' => '0', |
| 462 |
'bottom_left' => '0', |
| 463 |
'bottom_right' => '0', |
| 464 |
], |
| 465 |
'background_color' => '#fff', |
| 466 |
'background_image' => [ |
| 467 |
'url' => '', |
| 468 |
'position' => 'default', |
| 469 |
'x_position' => 0, |
| 470 |
'y_position' => 0, |
| 471 |
'repeat' => 'default', |
| 472 |
'size' => 'default', |
| 473 |
], |
| 474 |
'inner_setting_breaker' => [ |
| 475 |
'component' => 'LineBreaker', |
| 476 |
], |
| 477 |
'inner_setting_group_definition' => [ |
| 478 |
'component' => 'GroupDefinition', |
| 479 |
'title' => 'Inner layout settings', |
| 480 |
'description' => 'Handle inner layout settings', |
| 481 |
], |
| 482 |
'inner_border_radius' => [ |
| 483 |
'top_left' => '0', |
| 484 |
'top_right' => '0', |
| 485 |
'bottom_left' => '0', |
| 486 |
'bottom_right' => '0', |
| 487 |
], |
| 488 |
'inner_background_color' => '#ffffff00', |
| 489 |
'column_borders' => [ |
| 490 |
'component' => 'ColumnBorders', |
| 491 |
'title' => 'Column borders', |
| 492 |
], |
| 493 |
'children' => [ |
| 494 |
Column::get_object_data( |
| 495 |
50, |
| 496 |
[ |
| 497 |
'children' => [ |
| 498 |
Text::get_object_data( |
| 499 |
[ |
| 500 |
'container_group_definition' => [ |
| 501 |
'component' => 'GroupDefinition', |
| 502 |
'title' => 'Container settings', |
| 503 |
'description' => 'Handle container layout settings', |
| 504 |
], |
| 505 |
'padding' => [ |
| 506 |
'top' => 0, |
| 507 |
'right' => '50', |
| 508 |
'bottom' => '15', |
| 509 |
'left' => 0, |
| 510 |
], |
| 511 |
'background_color' => '#fff', |
| 512 |
'border' => [ |
| 513 |
'side' => 'none', |
| 514 |
'width' => '1', |
| 515 |
'style' => 'solid', |
| 516 |
'color' => '#e5e5e5', |
| 517 |
'custom' => [ |
| 518 |
'top' => '1', |
| 519 |
'right' => '1', |
| 520 |
'bottom' => '1', |
| 521 |
'left' => '1', |
| 522 |
], |
| 523 |
], |
| 524 |
'content_breaker' => [ |
| 525 |
'component' => 'LineBreaker', |
| 526 |
], |
| 527 |
'content_group_definition' => [ |
| 528 |
'component' => 'GroupDefinition', |
| 529 |
'title' => 'Content settings', |
| 530 |
'description' => 'Handle content settings', |
| 531 |
], |
| 532 |
'font_family' => '"Outfit", "DM Sans", sans-serif', |
| 533 |
'text_color' => '#1a1a1a', |
| 534 |
'rich_text' => '<p><strong style="font-size: 16px">SHIPPING ADDRESS</strong></p>', |
| 535 |
] |
| 536 |
), |
| 537 |
ShippingAddress::get_object_data( |
| 538 |
[ |
| 539 |
'container_group_definition' => [ |
| 540 |
'component' => 'GroupDefinition', |
| 541 |
'title' => 'Container settings', |
| 542 |
'description' => 'Handle container layout settings', |
| 543 |
], |
| 544 |
'padding' => [ |
| 545 |
'top' => 0, |
| 546 |
'right' => 30, |
| 547 |
'bottom' => 0, |
| 548 |
'left' => 30, |
| 549 |
], |
| 550 |
'background_color' => '#fafafa', |
| 551 |
'content_breaker' => [ |
| 552 |
'component' => 'LineBreaker', |
| 553 |
], |
| 554 |
'content_group_definition' => [ |
| 555 |
'component' => 'GroupDefinition', |
| 556 |
'title' => 'Content settings', |
| 557 |
'description' => 'Handle content settings', |
| 558 |
], |
| 559 |
'layout_type' => 'modern', |
| 560 |
'title_color' => '#1a1a1a', |
| 561 |
'text_color' => '#636363', |
| 562 |
'border_color' => '#e5e5e5', |
| 563 |
'font_family' => '"Outfit", "DM Sans", sans-serif', |
| 564 |
'title' => '', |
| 565 |
'shipping_content_font_size' => 14, |
| 566 |
'shipping_content_alignment' => 'left', |
| 567 |
'shipping_content_text_format' => [ |
| 568 |
'bold' => false, |
| 569 |
'italic' => false, |
| 570 |
'underline' => false, |
| 571 |
], |
| 572 |
'rich_text' => '[yaymail_shipping_address]', |
| 573 |
] |
| 574 |
), |
| 575 |
], |
| 576 |
] |
| 577 |
), |
| 578 |
Column::get_object_data( |
| 579 |
50, |
| 580 |
[ |
| 581 |
'children' => [ |
| 582 |
Text::get_object_data( |
| 583 |
[ |
| 584 |
'container_group_definition' => [ |
| 585 |
'component' => 'GroupDefinition', |
| 586 |
'title' => 'Container settings', |
| 587 |
'description' => 'Handle container layout settings', |
| 588 |
], |
| 589 |
'padding' => [ |
| 590 |
'top' => 0, |
| 591 |
'right' => '50', |
| 592 |
'bottom' => '15', |
| 593 |
'left' => 0, |
| 594 |
], |
| 595 |
'background_color' => '#fff', |
| 596 |
'border' => [ |
| 597 |
'side' => 'none', |
| 598 |
'width' => '1', |
| 599 |
'style' => 'solid', |
| 600 |
'color' => '#e5e5e5', |
| 601 |
'custom' => [ |
| 602 |
'top' => '1', |
| 603 |
'right' => '1', |
| 604 |
'bottom' => '1', |
| 605 |
'left' => '1', |
| 606 |
], |
| 607 |
], |
| 608 |
'content_breaker' => [ |
| 609 |
'component' => 'LineBreaker', |
| 610 |
], |
| 611 |
'content_group_definition' => [ |
| 612 |
'component' => 'GroupDefinition', |
| 613 |
'title' => 'Content settings', |
| 614 |
'description' => 'Handle content settings', |
| 615 |
], |
| 616 |
'font_family' => '"Outfit", "DM Sans", sans-serif', |
| 617 |
'text_color' => '#1a1a1a', |
| 618 |
'rich_text' => '<p><strong style="font-size: 16px">BILLING ADDRESS</strong></p>', |
| 619 |
] |
| 620 |
), |
| 621 |
BillingAddress::get_object_data( |
| 622 |
[ |
| 623 |
'container_group_definition' => [ |
| 624 |
'component' => 'GroupDefinition', |
| 625 |
'title' => 'Container settings', |
| 626 |
'description' => 'Handle container layout settings', |
| 627 |
], |
| 628 |
'padding' => [ |
| 629 |
'top' => 0, |
| 630 |
'right' => 30, |
| 631 |
'bottom' => 0, |
| 632 |
'left' => 30, |
| 633 |
], |
| 634 |
'background_color' => '#fafafa', |
| 635 |
'content_breaker' => [ |
| 636 |
'component' => 'LineBreaker', |
| 637 |
], |
| 638 |
'content_group_definition' => [ |
| 639 |
'component' => 'GroupDefinition', |
| 640 |
'title' => 'Content settings', |
| 641 |
'description' => 'Handle content settings', |
| 642 |
], |
| 643 |
'layout_type' => 'modern', |
| 644 |
'title_color' => '#1a1a1a', |
| 645 |
'text_color' => '#636363', |
| 646 |
'border_color' => '#e5e5e5', |
| 647 |
'font_family' => '"Outfit", "DM Sans", sans-serif', |
| 648 |
'title' => '', |
| 649 |
'billing_content_font_size' => '14', |
| 650 |
'billing_content_alignment' => 'left', |
| 651 |
'billing_content_text_format' => [ |
| 652 |
'bold' => false, |
| 653 |
'italic' => false, |
| 654 |
'underline' => false, |
| 655 |
], |
| 656 |
'rich_text' => '[yaymail_billing_address]', |
| 657 |
] |
| 658 |
), |
| 659 |
], |
| 660 |
] |
| 661 |
), |
| 662 |
], |
| 663 |
] |
| 664 |
), |
| 665 |
Text::get_object_data( |
| 666 |
[ |
| 667 |
'container_group_definition' => [ |
| 668 |
'component' => 'GroupDefinition', |
| 669 |
'title' => 'Container settings', |
| 670 |
'description' => 'Handle container layout settings', |
| 671 |
], |
| 672 |
'padding' => [ |
| 673 |
'top' => 15, |
| 674 |
'right' => 50, |
| 675 |
'bottom' => 15, |
| 676 |
'left' => 50, |
| 677 |
], |
| 678 |
'background_color' => '#fff', |
| 679 |
'border' => [ |
| 680 |
'side' => 'none', |
| 681 |
'width' => '1', |
| 682 |
'style' => 'solid', |
| 683 |
'color' => '#e5e5e5', |
| 684 |
'custom' => [ |
| 685 |
'top' => '1', |
| 686 |
'right' => '1', |
| 687 |
'bottom' => '1', |
| 688 |
'left' => '1', |
| 689 |
], |
| 690 |
], |
| 691 |
'content_breaker' => [ |
| 692 |
'component' => 'LineBreaker', |
| 693 |
], |
| 694 |
'content_group_definition' => [ |
| 695 |
'component' => 'GroupDefinition', |
| 696 |
'title' => 'Content settings', |
| 697 |
'description' => 'Handle content settings', |
| 698 |
], |
| 699 |
'font_family' => '"Outfit", "DM Sans", sans-serif', |
| 700 |
'text_color' => '#333439', |
| 701 |
'rich_text' => '<p><span style="font-size: 18px">If there\'s anything wrong with your order, please contact our support team within 7 days and we\'ll be happy to help.</span></p><br /><p><span style="font-size: 18px">Best regards,</span></p><p><span style="font-size: 18px">[yaymail_site_name]</span></p>', |
| 702 |
] |
| 703 |
), |
| 704 |
Divider::get_object_data( |
| 705 |
[ |
| 706 |
'align' => 'center', |
| 707 |
'padding' => [ |
| 708 |
'top' => '15', |
| 709 |
'right' => '50', |
| 710 |
'bottom' => '15', |
| 711 |
'left' => '50', |
| 712 |
], |
| 713 |
'width' => '100', |
| 714 |
'height' => 2, |
| 715 |
'background_color' => '#fff', |
| 716 |
'divider_color' => '#333', |
| 717 |
'divider_type' => 'solid', |
| 718 |
] |
| 719 |
), |
| 720 |
ColumnLayout::get_object_data( |
| 721 |
1, |
| 722 |
[ |
| 723 |
'column_width' => [], |
| 724 |
'column_spacing' => '0', |
| 725 |
'vertical_align' => 'top', |
| 726 |
'container_setting_breaker' => [ |
| 727 |
'component' => 'LineBreaker', |
| 728 |
], |
| 729 |
'container_setting_group_definition' => [ |
| 730 |
'component' => 'GroupDefinition', |
| 731 |
'title' => 'Container layout settings', |
| 732 |
'description' => 'Handle container layout settings', |
| 733 |
], |
| 734 |
'padding' => [ |
| 735 |
'top' => 10, |
| 736 |
'bottom' => 10, |
| 737 |
'left' => 50, |
| 738 |
'right' => 50, |
| 739 |
], |
| 740 |
'border_radius' => [ |
| 741 |
'top_left' => '0', |
| 742 |
'top_right' => '0', |
| 743 |
'bottom_left' => '0', |
| 744 |
'bottom_right' => '0', |
| 745 |
], |
| 746 |
'background_color' => '#fff', |
| 747 |
'background_image' => [ |
| 748 |
'url' => '', |
| 749 |
'position' => 'default', |
| 750 |
'x_position' => 0, |
| 751 |
'y_position' => 0, |
| 752 |
'repeat' => 'default', |
| 753 |
'size' => 'default', |
| 754 |
], |
| 755 |
'inner_setting_breaker' => [ |
| 756 |
'component' => 'LineBreaker', |
| 757 |
], |
| 758 |
'inner_setting_group_definition' => [ |
| 759 |
'component' => 'GroupDefinition', |
| 760 |
'title' => 'Inner layout settings', |
| 761 |
'description' => 'Handle inner layout settings', |
| 762 |
], |
| 763 |
'inner_border_radius' => [ |
| 764 |
'top_left' => '0', |
| 765 |
'top_right' => '0', |
| 766 |
'bottom_left' => '0', |
| 767 |
'bottom_right' => '0', |
| 768 |
], |
| 769 |
'inner_background_color' => '#ffffff00', |
| 770 |
'column_borders' => [ |
| 771 |
'component' => 'ColumnBorders', |
| 772 |
'title' => 'Column borders', |
| 773 |
], |
| 774 |
'children' => [ |
| 775 |
Column::get_object_data( |
| 776 |
100, |
| 777 |
[ |
| 778 |
'children' => [ |
| 779 |
Text::get_object_data( |
| 780 |
[ |
| 781 |
'container_group_definition' => [ |
| 782 |
'component' => 'GroupDefinition', |
| 783 |
'title' => 'Container settings', |
| 784 |
'description' => 'Handle container layout settings', |
| 785 |
], |
| 786 |
'padding' => [ |
| 787 |
'top' => 0, |
| 788 |
'right' => 40, |
| 789 |
'bottom' => 0, |
| 790 |
'left' => 40, |
| 791 |
], |
| 792 |
'background_color' => '#ffffff00', |
| 793 |
'border' => [ |
| 794 |
'side' => 'none', |
| 795 |
'width' => '1', |
| 796 |
'style' => 'solid', |
| 797 |
'color' => '#e5e5e5', |
| 798 |
'custom' => [ |
| 799 |
'top' => '1', |
| 800 |
'right' => '1', |
| 801 |
'bottom' => '1', |
| 802 |
'left' => '1', |
| 803 |
], |
| 804 |
], |
| 805 |
'content_breaker' => [ |
| 806 |
'component' => 'LineBreaker', |
| 807 |
], |
| 808 |
'content_group_definition' => [ |
| 809 |
'component' => 'GroupDefinition', |
| 810 |
'title' => 'Content settings', |
| 811 |
'description' => 'Handle content settings', |
| 812 |
], |
| 813 |
'font_family' => '"Outfit", "DM Sans", sans-serif', |
| 814 |
'text_color' => '#333439', |
| 815 |
'rich_text' => '<p style="text-align: center;margin: 0;font-weight: 300"><span style="font-size: 16px">For questions, contact <u>[email protected]</u>, visit our <u>FAQs</u>, or <u>chat</u> with us during operating hours for account support</span></p>', |
| 816 |
] |
| 817 |
), |
| 818 |
SocialIcon::get_object_data( |
| 819 |
[ |
| 820 |
'container_group_definition' => [ |
| 821 |
'component' => 'GroupDefinition', |
| 822 |
'title' => 'Container settings', |
| 823 |
'description' => 'Handle container layout settings', |
| 824 |
], |
| 825 |
'padding' => [ |
| 826 |
'top' => 20, |
| 827 |
'right' => 0, |
| 828 |
'bottom' => 20, |
| 829 |
'left' => 0, |
| 830 |
], |
| 831 |
'background_color' => '#fff', |
| 832 |
'align' => 'center', |
| 833 |
'content_breaker' => [ |
| 834 |
'component' => 'LineBreaker', |
| 835 |
], |
| 836 |
'content_group_definition' => [ |
| 837 |
'component' => 'GroupDefinition', |
| 838 |
'title' => 'Content settings', |
| 839 |
'description' => 'Handle content settings', |
| 840 |
], |
| 841 |
'width_icon' => 36, |
| 842 |
'spacing' => 25, |
| 843 |
'theme' => 'Colorful', |
| 844 |
'icon_list' => [ |
| 845 |
'0' => [ |
| 846 |
'icon' => 'facebook', |
| 847 |
'url' => '#', |
| 848 |
], |
| 849 |
'1' => [ |
| 850 |
'icon' => 'instagram', |
| 851 |
'url' => '#', |
| 852 |
], |
| 853 |
'2' => [ |
| 854 |
'icon' => 'tiktok', |
| 855 |
'url' => '#', |
| 856 |
], |
| 857 |
'3' => [ |
| 858 |
'icon' => 'youtube', |
| 859 |
'url' => '#', |
| 860 |
], |
| 861 |
], |
| 862 |
] |
| 863 |
), |
| 864 |
Text::get_object_data( |
| 865 |
[ |
| 866 |
'container_group_definition' => [ |
| 867 |
'component' => 'GroupDefinition', |
| 868 |
'title' => 'Container settings', |
| 869 |
'description' => 'Handle container layout settings', |
| 870 |
], |
| 871 |
'padding' => [ |
| 872 |
'top' => 0, |
| 873 |
'right' => 0, |
| 874 |
'bottom' => 20, |
| 875 |
'left' => 0, |
| 876 |
], |
| 877 |
'background_color' => '#fff', |
| 878 |
'border' => [ |
| 879 |
'side' => 'none', |
| 880 |
'width' => '1', |
| 881 |
'style' => 'solid', |
| 882 |
'color' => '#e5e5e5', |
| 883 |
'custom' => [ |
| 884 |
'top' => '1', |
| 885 |
'right' => '1', |
| 886 |
'bottom' => '1', |
| 887 |
'left' => '1', |
| 888 |
], |
| 889 |
], |
| 890 |
'content_breaker' => [ |
| 891 |
'component' => 'LineBreaker', |
| 892 |
], |
| 893 |
'content_group_definition' => [ |
| 894 |
'component' => 'GroupDefinition', |
| 895 |
'title' => 'Content settings', |
| 896 |
'description' => 'Handle content settings', |
| 897 |
], |
| 898 |
'font_family' => '"Outfit", "DM Sans", sans-serif', |
| 899 |
'text_color' => '#77859B', |
| 900 |
'rich_text' => '<p style="text-align: center;margin: 0;font-weight: 300"><span style="font-size: 12px">© 2025 YayCommerce.com</span></p>', |
| 901 |
] |
| 902 |
), |
| 903 |
], |
| 904 |
] |
| 905 |
), |
| 906 |
], |
| 907 |
] |
| 908 |
), |
| 909 |
]; |
| 910 |
} |
| 911 |
} |