PluginProbe
YayMail – WooCommerce Email Customizer / 4.4.0
YayMail – WooCommerce Email Customizer v4.4.0
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 / Gallery7.php

Gallery7.php in YayMail – WooCommerce Email Customizer 4.4.0, at src/TemplatePatterns/Patterns/Gallery7.php

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