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

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

136 lines 6.2 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\Button;
6 use YayMail\Elements\Column;
7 use YayMail\Elements\ColumnLayout;
8 use YayMail\Elements\Image;
9 use YayMail\Elements\Text;
10 use YayMail\TemplatePatterns\SectionTemplates\Banner;
11 use YayMail\Utils\SingletonTrait;
12
13 /**
14 * Banner6 Elements
15 */
16 class Banner6 extends BasePattern {
17
18 use SingletonTrait;
19
20 public const TYPE = 'banner_6';
21
22 private function __construct() {
23 $this->id = uniqid();
24 $this->section = Banner::TYPE;
25 $this->position = 60;
26 $this->name = __( 'Banner 6', 'yaymail' );
27 $this->elements = [
28 ColumnLayout::get_object_data(
29 3,
30 [
31 'inner_background_color' => '#ffffff00',
32 'background_image' => [
33 'url' => 'https://images.wpbrandy.com/uploads/yaymail-banner-6-img-1.png',
34 'position' => 'custom',
35 'x_position' => 100,
36 'y_position' => 0,
37 'size' => 'cover',
38 'repeat' => 'no-repeat',
39 ],
40 'padding' => [
41 'top' => 0,
42 'bottom' => 0,
43 'left' => 5,
44 'right' => 5,
45 ],
46 'children' => [
47 Column::get_object_data(
48 45,
49 [
50 'children' => [
51 Text::get_object_data(
52 [
53 'rich_text' => '<p style="font-size: 21px; text-align: left; margin: 0px;"><strong> Join our community </strong></p>',
54 'background_color' => '#ffffff00',
55 'padding' => [
56 'top' => 20,
57 'bottom' => 5,
58 'right' => 30,
59 'left' => 25,
60 ],
61 'text_color' => '#ffffff',
62 ]
63 ),
64 Text::get_object_data(
65 [
66 'rich_text' => '<p style="font-size: 14px; text-align: left; margin: 0px;">Let\'s Make a Plan: Become a Pro+ membership! learn today, apply tomorrow.</p>',
67 'background_color' => '#ffffff00',
68 'padding' => [
69 'top' => 5,
70 'bottom' => 20,
71 'right' => 30,
72 'left' => 25,
73 ],
74 'text_color' => '#ffffff',
75 ]
76 ),
77 ],
78 ]
79 ),
80 Column::get_object_data(
81 25,
82 [
83 'children' => [
84 Button::get_object_data(
85 [
86 'text' => 'Shop Now',
87 'font_size' => 16,
88 'border_radius' => [
89 'top_left' => 7,
90 'top_right' => 7,
91 'bottom_left' => 7,
92 'bottom_right' => 7,
93 ],
94 'padding' => [
95 'top' => 20,
96 'bottom' => 20,
97 'left' => 15,
98 'right' => 15,
99 ],
100 'background_color' => '#ffffff00',
101 'button_background_color' => '#ffffff',
102 'text_color' => '#323dc7',
103 'width' => 100,
104 ]
105 ),
106 ],
107 ]
108 ),
109 Column::get_object_data(
110 30,
111 [
112 'children' => [
113 Image::get_object_data(
114 [
115 'src' => 'https://images.wpbrandy.com/uploads/yaymail-banner-6-img-2.png',
116 'padding' => [
117 'top' => 40,
118 'bottom' => 0,
119 'right' => 10,
120 'left' => 10,
121 ],
122 'align' => 'right',
123 'background_color' => '#ffffff00',
124 'width' => 190,
125 ]
126 ),
127 ],
128 ]
129 ),
130 ],
131 ]
132 ),
133 ];
134 }
135 }
136