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

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

161 lines 7.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\Image;
8 use YayMail\Elements\Text;
9 use YayMail\TemplatePatterns\SectionTemplates\Gallery;
10 use YayMail\Utils\SingletonTrait;
11
12 /** */
13 class Gallery6 extends BasePattern {
14
15 use SingletonTrait;
16
17 public const TYPE = 'gallery_6';
18
19 private function __construct() {
20 $this->id = uniqid();
21 $this->section = Gallery::TYPE;
22 $this->position = 15;
23 $this->name = __( 'Gallery 6', 'yaymail' );
24 $this->elements = [
25 ColumnLayout::get_object_data(
26 2,
27 [
28 'inner_background_color' => '#ffffff00',
29 'padding' => [
30 'top' => 10,
31 'bottom' => 0,
32 'left' => 0,
33 'right' => 0,
34 ],
35 'children' => [
36 Column::get_object_data(
37 45,
38 [
39 'children' => [
40 Image::get_object_data(
41 [
42 'src' => 'https://images.wpbrandy.com/uploads/yaymail-instagram-icon-1.png',
43 'width' => 30,
44 'align' => 'right',
45 'padding' => [
46 'top' => 13,
47 'bottom' => 10,
48 'right' => 5,
49 'left' => 10,
50 ],
51 'background_color' => '#ffffff00',
52 ]
53 ),
54 ],
55 ]
56 ),
57 Column::get_object_data(
58 55,
59 [
60 'children' => [
61 Text::get_object_data(
62 [
63 'background_color' => '#ffffff00',
64 'text_color' => '#0075FF',
65 'rich_text' => '<p style="text-align: left; margin: 0;"><span style="font-size: 18px; font-weight: 600;">@[yaymail_site_name]</span></p>',
66 'padding' => [
67 'top' => 16,
68 'bottom' => 10,
69 'right' => 10,
70 'left' => 2,
71 ],
72 ]
73 ),
74 ],
75 ]
76 ),
77 ],
78 ]
79 ),
80 ColumnLayout::get_object_data(
81 3,
82 [
83 'inner_background_color' => '#ffffff00',
84 'padding' => [
85 'top' => 0,
86 'bottom' => 20,
87 'left' => 20,
88 'right' => 20,
89 ],
90 'children' => [
91 Column::get_object_data(
92 33,
93 [
94 'children' => [
95 Image::get_object_data(
96 [
97 'src' => 'https://images.wpbrandy.com/uploads/yaymail-gallery-3-image-3.png',
98 'width' => 178,
99 'align' => 'center',
100 'background_color' => '#ffffff00',
101 'padding' => [
102 'top' => 5,
103 'bottom' => 5,
104 'right' => 5,
105 'left' => 10,
106 ],
107 ]
108 ),
109
110 ],
111 ]
112 ),
113 Column::get_object_data(
114 33,
115 [
116 'children' => [
117 Image::get_object_data(
118 [
119 'src' => 'https://images.wpbrandy.com/uploads/yaymail-gallery-3-image-4.png',
120 'width' => 173,
121 'align' => 'center',
122 'background_color' => '#ffffff00',
123 'padding' => [
124 'top' => 5,
125 'bottom' => 5,
126 'right' => 5,
127 'left' => 5,
128 ],
129 ]
130 ),
131 ],
132 ]
133 ),
134 Column::get_object_data(
135 33,
136 [
137 'children' => [
138 Image::get_object_data(
139 [
140 'src' => 'https://images.wpbrandy.com/uploads/yaymail-gallery-3-image-5.png',
141 'width' => 178,
142 'align' => 'center',
143 'background_color' => '#ffffff00',
144 'padding' => [
145 'top' => 5,
146 'bottom' => 5,
147 'right' => 10,
148 'left' => 5,
149 ],
150 ]
151 ),
152 ],
153 ]
154 ),
155 ],
156 ]
157 ),
158 ];
159 }
160 }
161