PluginProbe
YayMail – WooCommerce Email Customizer / trunk
YayMail – WooCommerce Email Customizer vtrunk
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 / Header6.php

Header6.php in YayMail – WooCommerce Email Customizer trunk, at src/TemplatePatterns/Patterns/Header6.php

111 lines 4.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\Divider;
6 use YayMail\Elements\Text;
7 use YayMail\TemplatePatterns\SectionTemplates\Header;
8 use YayMail\Utils\SingletonTrait;
9 use YayMail\Elements\ColumnLayout;
10 use YayMail\Elements\Column;
11 use YayMail\Elements\Logo;
12
13 /**
14 * Header6 Elements
15 */
16 class Header6 extends BasePattern {
17
18 use SingletonTrait;
19
20 public const TYPE = 'header_6';
21
22 private function __construct() {
23 $this->id = uniqid();
24 $this->section = Header::TYPE;
25 $this->position = 60;
26 $this->name = __( 'Header 6', 'yaymail' );
27 $this->elements = [
28 ColumnLayout::get_object_data(
29 2,
30 [
31 'background_color' => '#ffffff',
32 'vertical_align' => 'middle',
33 'children' => [
34 Column::get_object_data(
35 50,
36 [
37 'children' => [
38 Logo::get_object_data(
39 [
40 'background_color' => '#ffffff00',
41 'align' => 'left',
42 'src' => 'https://images.wpbrandy.com/uploads/yaymail-footer-img-1.png',
43 'width' => 195,
44 'padding' => [
45 'top' => 0,
46 'right' => 10,
47 'bottom' => 0,
48 'left' => 0,
49 ],
50 ]
51 ),
52 ],
53 ]
54 ),
55 Column::get_object_data(
56 50,
57 [
58 'children' => [
59 Text::get_object_data(
60 [
61 'rich_text' => '<p style="text-align: right; margin: 0;"><span style="font-size: 16px; color: #333439;">Contact customer service</span></p>
62 <p style="text-align: right; margin: 0;"><span style="font-size: 16px;"><span style="color: #ffc900; font-weight: 500;">1-987-654-1234</span></span></p>',
63 'padding' => [
64 'top' => 0,
65 'right' => 0,
66 'bottom' => 0,
67 'left' => 10,
68 ],
69 ]
70 ),
71 ],
72 ]
73 ),
74 ],
75 'padding' => [
76 'top' => 30,
77 'right' => 40,
78 'bottom' => 30,
79 'left' => 40,
80 ],
81 ]
82 ),
83
84 Divider::get_object_data(
85 [
86 'height' => 1,
87 'width' => 100,
88 'divider_color' => '#f1f2f5',
89 'padding' => [
90 'top' => 0,
91 'right' => 0,
92 'bottom' => 0,
93 'left' => 0,
94 ],
95 ]
96 ),
97 Text::get_object_data(
98 [
99 'rich_text' => '<p style="margin: 0px; text-align: center;"><span style="font-size: 16px;"><strong>New Arrivals         New Arrivals</strong></span><strong style="font-size: 16px;"><strong>          </strong>Outlet</strong><strong style="font-size: 16px;"><strong>          </strong>Contact</strong></p>',
100 'padding' => [
101 'top' => 20,
102 'right' => 40,
103 'bottom' => 20,
104 'left' => 40,
105 ],
106 'text_color' => '#333439',
107 ]
108 ),
109 ];
110 }
111 }