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

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

111 lines 5.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace YayMail\TemplatePatterns\Patterns;
4
5 use YayMail\Abstracts\BasePattern;
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 class Banner3 extends BasePattern {
15 use SingletonTrait;
16
17 public const TYPE = 'banner_3';
18
19 public function __construct() {
20 $this->id = uniqid();
21 $this->section = Banner::TYPE;
22 $this->position = 30;
23 $this->name = __( 'Banner 3', 'yaymail' );
24 $this->elements = [
25 ColumnLayout::get_object_data(
26 1,
27 [
28 'inner_background_color' => '#ffffff00',
29 'padding' => [
30 'top' => '40',
31 'right' => '0',
32 'bottom' => '70',
33 'left' => '0',
34 ],
35 'background_image' => [
36 'url' => 'https://images.wpbrandy.com/uploads/yaymail-banner-3-img-1-scaled.jpg',
37 'position' => 'custom',
38 'x_position' => 100,
39 'y_position' => 0,
40 'size' => 'cover',
41 'repeat' => 'no-repeat',
42 ],
43 'children' => [
44 Column::get_object_data(
45 100,
46 [
47 'children' => [
48 Image::get_object_data(
49 [
50 'src' => 'https://images.wpbrandy.com/uploads/yaymail-banner-3-img-4.png',
51 'padding' => [
52 'top' => 10,
53 'bottom' => 10,
54 'right' => 10,
55 'left' => 10,
56 ],
57 'align' => 'center',
58 'background_color' => '#ffffff00',
59 'width' => 55,
60 ]
61 ),
62 Text::get_object_data(
63 [
64 'rich_text' => '<p style="font-size: 18px; text-align: center; margin: 0px;"><span style="font-size: 30px;"><strong>Unleash the fun!</strong> <br /><strong>It\'s time to enjoy your new product</strong></span></p>',
65 'background_color' => '#ffffff00',
66 'text_color' => '#333439',
67 'padding' => [
68 'top' => 10,
69 'bottom' => 10,
70 'right' => 50,
71 'left' => 50,
72 ],
73 ]
74 ),
75 Text::get_object_data(
76 [
77 'rich_text' => '<p style="display: flex; justify-content: center; font-size: 14px; margin: 0px;"><u>Explore Now</u> <span style="padding: 1px 0px 0px 5px;"> <img src="https://images.wpbrandy.com/uploads/yaymail-banner-img-arrow-1.png" style="width:20px !important; height:20px !important;" alt="arrow banner 3" width="12" height="12" /> </span></p>',
78 'background_color' => '#ffffff00',
79 'text_color' => '#333439',
80 'padding' => [
81 'top' => 10,
82 'bottom' => 10,
83 'right' => 0,
84 'left' => 0,
85 ],
86 ]
87 ),
88 Image::get_object_data(
89 [
90 'src' => 'https://images.wpbrandy.com/uploads/yaymail-banner-3-img-2.png',
91 'padding' => [
92 'top' => 10,
93 'bottom' => 10,
94 'right' => 10,
95 'left' => 10,
96 ],
97 'align' => 'center',
98 'background_color' => '#ffffff00',
99 'width' => 300,
100 ]
101 ),
102 ],
103 ]
104 ),
105 ],
106 ]
107 ),
108 ];
109 }
110 }
111