PluginProbe
YayMail – WooCommerce Email Customizer / 4.4.2
YayMail – WooCommerce Email Customizer v4.4.2
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 / Intro3.php

Intro3.php in YayMail – WooCommerce Email Customizer 4.4.2, at src/TemplatePatterns/Patterns/Intro3.php

127 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\Image;
8 use YayMail\Elements\Text;
9 use YayMail\TemplatePatterns\SectionTemplates\Intro;
10 use YayMail\Utils\SingletonTrait;
11
12 /**
13 * Intro 3 Pattern
14 */
15 class Intro3 extends BasePattern {
16 use SingletonTrait;
17
18 public const TYPE = 'intro_3';
19
20 public function __construct() {
21 $this->id = uniqid();
22 $this->section = Intro::TYPE;
23 $this->position = 10;
24 $this->name = __( 'Intro 3', 'yaymail' );
25 $this->elements = [
26 ColumnLayout::get_object_data(
27 3,
28 [
29 'inner_background_color' => '#ffffff00',
30 'padding' => [
31 'top' => 15,
32 'bottom' => 15,
33 'left' => 40,
34 'right' => 40,
35 ],
36 'background_image' => [
37 'url' => 'https://images.wpbrandy.com/uploads/yaymail-intro-3-bg.png',
38 'position' => 'center_center',
39 'x_position' => 52,
40 'y_position' => 50,
41 'repeat' => 'no-repeat',
42 'size' => 'cover',
43 ],
44 'children' => [
45 Column::get_object_data(
46 15,
47 [
48 'children' => [
49 Image::get_object_data(
50 [
51 'src' => 'https://images.wpbrandy.com/uploads/yaymail-banner-3-img-4.png',
52 'padding' => [
53 'top' => 0,
54 'bottom' => 0,
55 'right' => 25,
56 'left' => 0,
57 ],
58 'align' => 'left',
59 'background_color' => '#ffffff00',
60 'width' => 60,
61 ]
62 ),
63 ],
64 ]
65 ),
66 Column::get_object_data(
67 55,
68 [
69 'children' => [
70
71 Text::get_object_data(
72 [
73 'rich_text' => '<p style="font-size: 24px; text-align: left; margin: 0px;"><span style="font-size: 24px;">Let’s Go Shopping!!! Grab these while they\'re at their lowest price of the year.</span></p>',
74 'background_color' => '#ffffff00',
75 'padding' => [
76 'top' => 0,
77 'bottom' => 0,
78 'right' => 20,
79 'left' => 0,
80 ],
81 'text_color' => '#333439',
82 ]
83 ),
84 Text::get_object_data(
85 [
86 'background_color' => '#ffffff00',
87 'text_color' => '#FFFFFF',
88 'rich_text' => '<p><a style="text-decoration: underline; font-size: 15px; font-weight: 500; color: #333439 !important; text-underline-offset: 4px;" href="[yaymail_site_url]">Shop Now <img style="margin-left: 3px; width: 12px;" src="https://images.wpbrandy.com/uploads/yaymail-offer-2-img.png" alt="arrow_right" /></a></p>',
89 'padding' => [
90 'top' => 25,
91 'bottom' => 25,
92 'right' => 0,
93 'left' => 0,
94 ],
95 ]
96 ),
97 ],
98 ]
99 ),
100 Column::get_object_data(
101 30,
102 [
103 'children' => [
104 Image::get_object_data(
105 [
106 'src' => 'https://images.wpbrandy.com/uploads/yaymail-intro-3-img.png',
107 'padding' => [
108 'top' => 0,
109 'bottom' => 0,
110 'right' => 0,
111 'left' => 0,
112 ],
113 'align' => 'right',
114 'background_color' => '#ffffff00',
115 'width' => 242,
116 ]
117 ),
118 ],
119 ]
120 ),
121 ],
122 ]
123 ),
124 ];
125 }
126 }
127