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 / Footer4.php

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

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