PluginProbe
YayMail – WooCommerce Email Customizer / 4.3.2
YayMail – WooCommerce Email Customizer v4.3.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 / Footer5.php

Footer5.php in YayMail – WooCommerce Email Customizer 4.3.2, at src/TemplatePatterns/Patterns/Footer5.php

145 lines 6.1 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\Logo;
9 use YayMail\Elements\SocialIcon;
10 use YayMail\Elements\Text;
11 use YayMail\TemplatePatterns\SectionTemplates\Footer;
12 use YayMail\Utils\SingletonTrait;
13
14 /**
15 * Footer5 Elements
16 */
17 class Footer5 extends BasePattern {
18 use SingletonTrait;
19
20 public const TYPE = 'footer_5';
21
22 private function __construct() {
23 $this->id = uniqid();
24 $this->section = Footer::TYPE;
25 $this->position = 50;
26 $this->name = __( 'Footer 5', 'yaymail' );
27 $this->elements = [
28 Logo::get_object_data(
29 [
30 'background_color' => '#ffffff',
31 'align' => 'center',
32 'src' => 'https://images.wpbrandy.com/uploads/yaymail-footer-img-1.png',
33 'width' => '195',
34 'url' => '#',
35 'padding' => [
36 'top' => 40,
37 'right' => 40,
38 'bottom' => 0,
39 'left' => 40,
40 ],
41 ]
42 ),
43 Text::get_object_data(
44 [
45 'rich_text' => '<p style="margin: 0px; text-align: center; font-weight: 300;"><span style="font-size: 14px; margin: 0;">70 Washington Square South New York, NY 10012, United States</span></p>
46 <p style="text-align: center; font-weight: 300;"><span style="font-size: 14px; text-align: center;">© 2023 All Rights Reserved</span></p>',
47 'text_color' => '#333439',
48 'padding' =>
49 [
50 'top' => 20,
51 'bottom' => 0,
52 'left' => 40,
53 'right' => 40,
54 ],
55 ]
56 ),
57 Divider::get_object_data(
58 [
59 'height' => 1,
60 'width' => 100,
61 'divider_color' => '#F1F2F5',
62 'padding' => [
63 'top' => 20,
64 'right' => 40,
65 'bottom' => 5,
66 'left' => 40,
67 ],
68 ]
69 ),
70 ColumnLayout::get_object_data(
71 2,
72 [
73 'background_color' => '#ffffff',
74 'padding' => [
75 'top' => 0,
76 'bottom' => 40,
77 'left' => 40,
78 'right' => 40,
79 ],
80 'children' => [
81 Column::get_object_data(
82 50,
83 [
84 'children' => [
85 SocialIcon::get_object_data(
86 [
87 'align' => 'left',
88 'spacing' => 24,
89 'width_icon' => 24,
90 'style' => 'SolidDark',
91 'icon_list' => [
92 [
93 'icon' => 'facebook',
94 'url' => '#',
95 ],
96 [
97 'icon' => 'instagram',
98 'url' => '#',
99 ],
100 [
101 'icon' => 'tiktok',
102 'url' => '#',
103 ],
104 [
105 'icon' => 'youtube',
106 'url' => '#',
107 ],
108 ],
109 'padding' => [
110 'top' => 0,
111 'right' => 0,
112 'bottom' => 0,
113 'left' => 0,
114 ],
115 ]
116 ),
117 ],
118 ]
119 ),
120 Column::get_object_data(
121 50,
122 [
123 'children' => [
124 Text::get_object_data(
125 [
126 'rich_text' => '<p style="text-align: right; margin: 0; font-size: 14px; font-weight: 300;"><span style="margin: 0px 10px;">Unsubscribe</span> <span style="margin: 0px 10px;">Terms &amp; Condition</span></p>',
127 'padding' => [
128 'top' => 0,
129 'right' => 0,
130 'bottom' => 0,
131 'left' => 0,
132 ],
133 'text_color' => '#77859B',
134 ]
135 ),
136 ],
137 ]
138 ),
139 ],
140 ]
141 ),
142 ];
143 }
144 }
145