1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
<?php namespace YayMail\TemplatePatterns\Patterns;
use YayMail\Abstracts\BasePattern; use YayMail\Elements\ColumnLayout; use YayMail\Elements\Column; use YayMail\Elements\Text; use YayMail\TemplatePatterns\SectionTemplates\Banner; use YayMail\Utils\SingletonTrait;
/** * Banner2 Elements */ class Banner2 extends BasePattern { use SingletonTrait;
public const TYPE = 'banner_2';
private function __construct() { $this->id = uniqid(); $this->section = Banner::TYPE; $this->position = 20; $this->name = __( 'Banner 2', 'yaymail' ); $this->elements = [ ColumnLayout::get_object_data( 1, [ 'inner_background_color' => '#ffffff00', 'padding' => [ 'top' => 30, 'bottom' => 30, 'left' => 0, 'right' => 0, ], 'background_image' => [ 'url' => 'https://images.wpbrandy.com/uploads/yaymail-banner-2-img-1.jpg', 'position' => 'custom', 'x_position' => 100, 'y_position' => 0, 'size' => 'cover', 'repeat' => 'no-repeat', ], 'children' => [ Column::get_object_data( 100, [ 'children' => [ Text::get_object_data( [ 'rich_text' => '<p style="font-size: 18px; margin: 0px; text-align: center;"><span style="font-size: 30px;"><strong>New products for November Check \'em out!</strong></span></p>', 'padding' => [ 'top' => 0, 'bottom' => 0, 'left' => 100, 'right' => 100, ], 'background_color' => '#ffffff00', 'text_color' => '#333439', ] ), Text::get_object_data( [ 'rich_text' => '<p style="font-size: 16px; text-align: center; margin: 0;"><u>Explore Now</u> <img src="https://images.wpbrandy.com/uploads/yaymail-banner-img-arrow-1.png" alt="" width="12" height="12" style="width:20px !important; height:20px !important;"/></p>', 'padding' => [ 'top' => 10, 'bottom' => 0, 'left' => 0, 'right' => 0, ], 'background_color' => '#ffffff00', 'text_color' => '#333439', ] ), ], ] ), ], ] ), ]; } }
|