PluginProbe
YayMail – WooCommerce Email Customizer / 4.4.0
YayMail – WooCommerce Email Customizer v4.4.0
4.4.4 4.4.3 4.4.2 4.4.1 trunk 1.9.6 2.1.4 2.1.5 3.2.2 3.2.6 3.2.7.1 3.2.8.1 3.2.9 3.3 3.3.1 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9 3.4 3.4.1 3.4.2 3.4.3 All 55 releases
yaymail / src / TemplatePatterns / Patterns / Shipping1.php

Shipping1.php in YayMail – WooCommerce Email Customizer 4.4.0, at src/TemplatePatterns/Patterns/Shipping1.php

89 lines 3.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace YayMail\TemplatePatterns\Patterns;
3
4 use YayMail\Abstracts\BasePattern;
5 use YayMail\Elements\Column;
6 use YayMail\Elements\ColumnLayout;
7 use YayMail\Elements\Text;
8 use YayMail\TemplatePatterns\SectionTemplates\Shipping;
9 use YayMail\Utils\SingletonTrait;
10
11 /** */
12 class Shipping1 extends BasePattern {
13 use SingletonTrait;
14
15 public const TYPE = 'shipping_1';
16
17 public function __construct() {
18 $this->id = uniqid();
19 $this->section = Shipping::TYPE;
20 $this->position = 10;
21 $this->name = __( 'Shipping 1', 'yaymail' );
22 $this->elements = [
23 ColumnLayout::get_object_data(
24 2,
25 [
26 'inner_background_color' => '#ffffff00',
27 'padding' => [
28 'top' => 40,
29 'right' => 40,
30 'bottom' => 40,
31 'left' => 40,
32 ],
33 'background_image' => [
34 'url' => 'https://images.wpbrandy.com/uploads/yaymail-shipping-1-bg.png',
35 'position' => 'custom',
36 'repeat' => 'no-repeat',
37 'x_position' => 100,
38 'y_position' => 0,
39 'size' => 'cover',
40 ],
41 'children' => [
42 Column::get_object_data(
43 50,
44 [
45 'children' => [
46 Text::get_object_data(
47 [
48 'rich_text' => '<p style="text-align: left;"><span style="margin: 0px; font-size: 24px; font-weight: bold;">Your order is now on its way to you! 🚚💨</span></p>',
49 'padding' => [
50 'top' => 0,
51 'right' => 15,
52 'bottom' => 0,
53 'left' => 0,
54 ],
55 'text_color' => '#ffffff',
56 'background_color' => '#ffffff00',
57 ]
58 ),
59 ],
60 ]
61 ),
62 Column::get_object_data(
63 50,
64 [
65 'children' => [
66 Text::get_object_data(
67 [
68 'rich_text' => '<p style="text-align: left;"><span style="margin: 0; font-size: 14px">We\'ve carefully packed your goodies, ensuring they\'ll arrive in perfect condition, ready to embark on their next exciting chapter. 📦✨</span></p>',
69 'padding' => [
70 'top' => 8,
71 'right' => 0,
72 'bottom' => 0,
73 'left' => 15,
74 ],
75 'text_color' => '#ffffff',
76 'background_color' => '#ffffff00',
77 ]
78 ),
79 ],
80 ]
81 ),
82 ],
83
84 ]
85 ),
86 ];
87 }
88 }
89