PluginProbe
YayMail – WooCommerce Email Customizer / 4.4.2
YayMail – WooCommerce Email Customizer v4.4.2
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 / Footer6.php

Footer6.php in YayMail – WooCommerce Email Customizer 4.4.2, at src/TemplatePatterns/Patterns/Footer6.php

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