PluginProbe
YayMail – WooCommerce Email Customizer / trunk
YayMail – WooCommerce Email Customizer vtrunk
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 / Footer3.php

Footer3.php in YayMail – WooCommerce Email Customizer trunk, at src/TemplatePatterns/Patterns/Footer3.php

257 lines 12.0 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\Divider;
8 use YayMail\Elements\Image;
9 use YayMail\Elements\SocialIcon;
10 use YayMail\Elements\Space;
11 use YayMail\Elements\Text;
12 use YayMail\TemplatePatterns\SectionTemplates\Footer;
13 use YayMail\Utils\SingletonTrait;
14
15 /**
16 * Footer3 Elements
17 */
18
19 class Footer3 extends BasePattern {
20 use SingletonTrait;
21
22 public const TYPE = 'footer_3';
23
24 private function __construct() {
25 $this->id = uniqid();
26 $this->section = Footer::TYPE;
27 $this->position = 30;
28 $this->name = __( 'Footer 3', 'yaymail' );
29 $this->elements = [
30 ColumnLayout::get_object_data(
31 1,
32 [
33 'padding' => [
34 'top' => 40,
35 'left' => 20,
36 'right' => 20,
37 'bottom' => 0,
38 ],
39 'inner_border_radius' => [
40 'top_left' => 20,
41 'top_right' => 20,
42 'bottom_left' => 0,
43 'bottom_right' => 0,
44 ],
45 'inner_background_color' => '#F8FAFD',
46 'children' => [
47 Column::get_object_data(
48 100,
49 [
50 'children' => [
51 SocialIcon::get_object_data(
52 [
53 'align' => 'center',
54 'spacing' => 24,
55 'width_icon' => 24,
56 'style' => 'Colorful',
57 'icon_list' => [
58 [
59 'icon' => 'facebook',
60 'url' => '#',
61 ],
62 [
63 'icon' => 'instagram',
64 'url' => '#',
65 ],
66 [
67 'icon' => 'tiktok',
68 'url' => '#',
69 ],
70 [
71 'icon' => 'youtube',
72 'url' => '#',
73 ],
74 ],
75 'background_color' => '#ffffff00',
76 'padding' => [
77 'top' => 40,
78 'right' => 0,
79 'bottom' => 0,
80 'left' => 0,
81 ],
82 ]
83 ),
84 Space::get_object_data(
85 [
86 'height' => 20,
87 'background_color' => '#ffffff00',
88 ]
89 ),
90 ],
91 ]
92 ),
93 ],
94 ]
95 ),
96 ColumnLayout::get_object_data(
97 1,
98 [
99 'padding' => [
100 'top' => 0,
101 'left' => 20,
102 'right' => 20,
103 'bottom' => 0,
104 ],
105 'inner_background_color' => '#F8FAFD',
106 'children' => [
107 Column::get_object_data(
108 100,
109 [
110 'children' => [
111 Text::get_object_data(
112 [
113 'rich_text' => '<p style="text-align: center; margin: 0; font-weight: 300;"><span style="font-size: 14px; margin: 0;"> If you have any questions, please email us at <u style="font-weight: 400;">hello@example.com</u> </span></p>',
114 'padding' => [
115 'top' => 0,
116 'right' => 0,
117 'bottom' => 0,
118 'left' => 0,
119 ],
120 'text_color' => '#333439',
121 'background_color' => '#ffffff00',
122 ]
123 ),
124 Text::get_object_data(
125 [
126 'rich_text' => '<p style="text-align: center; margin: 0; font-weight: 300;"><span style="font-size: 14px; margin: 0;"> Let\'s Shopping From Anywhere</span></p>',
127 'padding' => [
128 'top' => 20,
129 'right' => 0,
130 'bottom' => 10,
131 'left' => 0,
132 ],
133 'text_color' => '#333439',
134 'background_color' => '#ffffff00',
135 ]
136 ),
137
138 ],
139 ]
140 ),
141 ],
142 ]
143 ),
144 ColumnLayout::get_object_data(
145 2,
146 [
147 'padding' => [
148 'top' => 0,
149 'left' => 20,
150 'right' => 20,
151 'bottom' => 0,
152 ],
153 'inner_background_color' => '#F8FAFD',
154 'children' => [
155 Column::get_object_data(
156 25,
157 [
158 'children' => [
159 Image::get_object_data(
160 [
161 'src' => 'https://images.wpbrandy.com/uploads/yaymail-footer-2-img-1.png',
162 'padding' => [
163 'top' => 0,
164 'left' => 0,
165 'right' => 10,
166 'bottom' => 0,
167 ],
168 'align' => 'right',
169 'background_color' => '#F8FAFD',
170 'width' => 108,
171 ]
172 ),
173 ],
174 ]
175 ),
176 Column::get_object_data(
177 25,
178 [
179 'children' => [
180 Image::get_object_data(
181 [
182 'src' => 'https://images.wpbrandy.com/uploads/yaymail-footer-2-img-2.png',
183 'padding' => [
184 'top' => 0,
185 'left' => 10,
186 'right' => 0,
187 'bottom' => 0,
188 ],
189 'align' => 'left',
190 'background_color' => '#F8FAFD',
191 'width' => 108,
192 ]
193 ),
194 ],
195 ]
196 ),
197 ],
198 ]
199 ),
200 ColumnLayout::get_object_data(
201 1,
202 [
203 'padding' => [
204 'top' => 0,
205 'left' => 20,
206 'right' => 20,
207 'bottom' => 40,
208 ],
209 'inner_border_radius' => [
210 'top_left' => 0,
211 'top_right' => 0,
212 'bottom_left' => 20,
213 'bottom_right' => 20,
214 ],
215 'inner_background_color' => '#F8FAFD',
216 'children' => [
217 Column::get_object_data(
218 100,
219 [
220 'children' => [
221 Divider::get_object_data(
222 [
223 'height' => 1,
224 'width' => 100,
225 'divider_color' => '#E2E6EE',
226 'background_color' => '#ffffff00',
227 'padding' => [
228 'top' => 20,
229 'right' => 20,
230 'bottom' => 20,
231 'left' => 20,
232 ],
233 ]
234 ),
235 Text::get_object_data(
236 [
237 'rich_text' => '<p style="text-align: center; margin: 0; font-size: 14px; font-weight: 300;"><span>© 2023 Yaycommerce.com</span>     <span style="color: #e2e6ee;">|</span>     Terms &amp; Condition     <span style="color: #e2e6ee;">|</span>     Return Policy     <span style="color: #e2e6ee;">|</span>     Unsubscribe</p>',
238 'padding' => [
239 'top' => 0,
240 'right' => 0,
241 'bottom' => 40,
242 'left' => 0,
243 ],
244 'text_color' => '#77859B',
245 'background_color' => '#ffffff00',
246 ]
247 ),
248 ],
249 ]
250 ),
251 ],
252 ]
253 ),
254 ];
255 }
256 }
257