| 1 |
<?php |
| 2 |
namespace YayMail\TemplatePatterns\Patterns; |
| 3 |
|
| 4 |
use YayMail\Abstracts\BasePattern; |
| 5 |
use YayMail\Elements\Divider; |
| 6 |
use YayMail\Elements\Logo; |
| 7 |
use YayMail\Elements\Text; |
| 8 |
use YayMail\TemplatePatterns\SectionTemplates\Header; |
| 9 |
use YayMail\Utils\SingletonTrait; |
| 10 |
|
| 11 |
/** |
| 12 |
* Header5 Elements |
| 13 |
*/ |
| 14 |
class Header5 extends BasePattern { |
| 15 |
|
| 16 |
use SingletonTrait; |
| 17 |
|
| 18 |
public const TYPE = 'header_5'; |
| 19 |
|
| 20 |
private function __construct() { |
| 21 |
$this->id = uniqid(); |
| 22 |
$this->section = Header::TYPE; |
| 23 |
$this->position = 50; |
| 24 |
$this->name = __( 'Header 5', 'yaymail' ); |
| 25 |
$this->elements = [ |
| 26 |
Text::get_object_data( |
| 27 |
[ |
| 28 |
'rich_text' => '<p style="margin: 0px; text-align: center;"><span><span style="color: #ffffff;">YOUR SHOPPING LIST FOR THE UPCOMING SEASON!</span> <strong><span style="color: #333439;">EXPLORE NOW</span></strong></span></p>', |
| 29 |
'background_color' => '#ffc900', |
| 30 |
'padding' => [ |
| 31 |
'top' => 10, |
| 32 |
'right' => 20, |
| 33 |
'bottom' => 10, |
| 34 |
'left' => 20, |
| 35 |
], |
| 36 |
] |
| 37 |
), |
| 38 |
Logo::get_object_data( |
| 39 |
[ |
| 40 |
'background_color' => '#ffffff', |
| 41 |
'src' => 'https://images.wpbrandy.com/uploads/yaymail-footer-img-1.png', |
| 42 |
'width' => 195, |
| 43 |
'align' => 'center', |
| 44 |
'padding' => [ |
| 45 |
'top' => 20, |
| 46 |
'right' => 20, |
| 47 |
'bottom' => 20, |
| 48 |
'left' => 20, |
| 49 |
], |
| 50 |
] |
| 51 |
), |
| 52 |
Divider::get_object_data( |
| 53 |
[ |
| 54 |
'height' => 1, |
| 55 |
'width' => 100, |
| 56 |
'divider_color' => '#f1f2f5', |
| 57 |
'padding' => [ |
| 58 |
'top' => 0, |
| 59 |
'right' => 0, |
| 60 |
'bottom' => 0, |
| 61 |
'left' => 0, |
| 62 |
], |
| 63 |
] |
| 64 |
), |
| 65 |
Text::get_object_data( |
| 66 |
[ |
| 67 |
'rich_text' => '<p style="margin: 0px; text-align: center;"><strong><span style="font-size: 18px;">New Arrivals New Arrivals</span></strong><strong><span style="font-size: 18px;"> </span></strong><strong><span style="font-size: 18px;">Outlet</span></strong><strong><span style="font-size: 18px;"> </span></strong><strong><span style="font-size: 18px;">Contact</span></strong></p>', |
| 68 |
'padding' => [ |
| 69 |
'top' => 15, |
| 70 |
'right' => 20, |
| 71 |
'bottom' => 15, |
| 72 |
'left' => 20, |
| 73 |
], |
| 74 |
'text_color' => '#333439', |
| 75 |
] |
| 76 |
), |
| 77 |
]; |
| 78 |
} |
| 79 |
} |