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

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

114 lines 5.3 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\ColumnLayout;
6 use YayMail\Elements\Column;
7 use YayMail\Elements\Divider;
8 use YayMail\Elements\Image;
9 use YayMail\Elements\Text;
10
11 use YayMail\TemplatePatterns\SectionTemplates\Footer;
12 use YayMail\Utils\SingletonTrait;
13
14 /**
15 * Header1 Elements
16 */
17 class Footer1 extends BasePattern {
18
19 use SingletonTrait;
20
21 public const TYPE = 'footer_1';
22
23 private function __construct() {
24 $this->id = uniqid();
25 $this->section = Footer::TYPE;
26 $this->position = 10;
27 $this->name = __( 'Footer 1', 'yaymail' );
28 $this->elements = [
29 Divider::get_object_data(
30 [
31 'height' => 2,
32 'width' => 100,
33 'divider_color' => '#333439',
34 'padding' => [
35 'top' => 40,
36 'right' => 40,
37 'bottom' => 50,
38 'left' => 40,
39 ],
40 ]
41 ),
42
43 ColumnLayout::get_object_data(
44 1,
45 [
46 'background_color' => '#ffffff',
47 'padding' => [
48 'top' => 0,
49 'left' => 40,
50 'bottom' => 40,
51 'right' => 40,
52 ],
53 'inner_border_radius' => [
54 'top_left' => 20,
55 'top_right' => 20,
56 'bottom_left' => 20,
57 'bottom_right' => 20,
58 ],
59 'inner_background_color' => '#F8FAFD',
60 'children' => [
61 Column::get_object_data(
62 100,
63 [
64 'children' => [
65 Image::get_object_data(
66 [
67 'src' => 'https://images.wpbrandy.com/uploads/yaymail-footer-img-1.png',
68 'width' => 195,
69 'align' => 'left',
70 'padding' => [
71 'top' => 30,
72 'right' => 30,
73 'bottom' => 0,
74 'left' => 30,
75 ],
76 'background_color' => '#ffffff00',
77 ]
78 ),
79 Text::get_object_data(
80 [
81 'rich_text' => '<p style="text-align: left; margin: 0; font-weight: 300;"><span style="font-size: 14px; margin: 0;"> By engaging with this email, you agree to Yaycommerce <span style="color: #333439;">Terms Conditions</span> and <span style="color: #333439;">Privacy Policy</span> in relation to your privacy information.</span></p>',
82 'padding' => [
83 'top' => 25,
84 'right' => 30,
85 'bottom' => 25,
86 'left' => 30,
87 ],
88 'text_color' => '#77859B',
89 'background_color' => '#ffffff00',
90 ]
91 ),
92 Text::get_object_data(
93 [
94 'rich_text' => '<p style="text-align: left; margin: 0; font-weight: 300;"><span style="font-size: 14px; margin: 0;">© 2023 YayCommerce.com</span>     <span style="color: #e2e6ee;">|</span><span style="font-size: 14px; margin: 0;"><span style="font-size: 13px;">     </span>Unsubscribe</span><span style="font-size: 14px; margin: 0;"><span style="font-size: 13px;">     <span style="color: #e2e6ee;">|</span></span><span style="font-size: 14px; margin: 0;"><span style="font-size: 13px;">     </span></span>Support</span></p>',
95 'padding' => [
96 'top' => 0,
97 'right' => 30,
98 'bottom' => 20,
99 'left' => 30,
100 ],
101 'text_color' => '#333439',
102 'background_color' => '#ffffff00',
103 ]
104 ),
105 ],
106 ]
107 ),
108 ],
109 ]
110 ),
111 ];
112 }
113 }
114