PluginProbe
YayMail – WooCommerce Email Customizer / 4.3.4
YayMail – WooCommerce Email Customizer v4.3.4
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 / Shipping2.php

Shipping2.php in YayMail – WooCommerce Email Customizer 4.3.4, at src/TemplatePatterns/Patterns/Shipping2.php

120 lines 5.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\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\Shipping;
11 use YayMail\Utils\SingletonTrait;
12
13 /** */
14 class Shipping2 extends BasePattern {
15 use SingletonTrait;
16
17 public const TYPE = 'shipping_2';
18
19 public function __construct() {
20 $this->id = uniqid();
21 $this->section = Shipping::TYPE;
22 $this->position = 11;
23 $this->name = __( 'Shipping 2', 'yaymail' );
24 $this->elements = [
25 ColumnLayout::get_object_data(
26 1,
27 [
28 'border_radius' => [
29 'top_left' => 20,
30 'top_right' => 20,
31 'bottom_right' => 20,
32 'bottom_left' => 20,
33 ],
34 'padding' => [
35 'top' => 30,
36 'left' => 40,
37 'right' => 40,
38 'bottom' => 15,
39 ],
40 'inner_background_color' => '#ffffff00',
41 'background_image' => [
42 'url' => 'https://images.wpbrandy.com/uploads/yaymail-shipping-2-bg.png',
43 'position' => 'top_center',
44 ],
45 'children' => [
46 Column::get_object_data(
47 100,
48 [
49 'children' => [
50 Image::get_object_data(
51 [
52 'src' => 'https://images.wpbrandy.com/uploads/yaymail-shipping-2-icon.png',
53 'width' => 159,
54 'background_color' => '#ffffff00',
55 'padding' => [
56 'top' => 0,
57 'right' => 50,
58 'bottom' => 0,
59 'left' => 50,
60 ],
61 ]
62 ),
63 Text::get_object_data(
64 [
65 'rich_text' => '<p style="text-align: center;"><span style="margin: 0; font-size: 30px; font-weight: 700;">Yay!! Order Has Shipped!</span></p>',
66 'padding' => [
67 'top' => 15,
68 'right' => 0,
69 'bottom' => 10,
70 'left' => 0,
71 ],
72 'text_color' => '#333439',
73 'background_color' => '#ffffff00',
74 ]
75 ),
76 Text::get_object_data(
77 [
78 'rich_text' => '<p style="text-align: center;"><span style="margin: 0px; font-size: 21px; font-weight: 300;">Great news! Your order is on its way. You can find the shipping details below.</span></p>',
79 'padding' => [
80 'top' => 0,
81 'right' => 0,
82 'bottom' => 0,
83 'left' => 0,
84 ],
85 'text_color' => '#333439',
86 'background_color' => '#ffffff00',
87 ]
88 ),
89 Button::get_object_data(
90 [
91 'text' => 'Check your order',
92 'font_size' => 16,
93 'border_radius' => [
94 'top_left' => 7,
95 'top_right' => 7,
96 'bottom_left' => 7,
97 'bottom_right' => 7,
98 ],
99 'padding' => [
100 'top' => 10,
101 'bottom' => 10,
102 'left' => 15,
103 'right' => 15,
104 ],
105 'background_color' => '#ffffff00',
106 'button_background_color' => '#ffffff00',
107 'text_color' => '#2391F0',
108 'width' => 50,
109 ]
110 ),
111 ],
112 ]
113 ),
114 ],
115 ]
116 ),
117 ];
118 }
119 }
120