| 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\Logo; |
| 8 |
use YayMail\Elements\SocialIcon; |
| 9 |
use YayMail\TemplatePatterns\SectionTemplates\Header; |
| 10 |
use YayMail\Utils\SingletonTrait; |
| 11 |
|
| 12 |
/** |
| 13 |
* Header4 Elements |
| 14 |
*/ |
| 15 |
class Header4 extends BasePattern { |
| 16 |
|
| 17 |
use SingletonTrait; |
| 18 |
|
| 19 |
public const TYPE = 'header_4'; |
| 20 |
|
| 21 |
private function __construct() { |
| 22 |
$this->id = uniqid(); |
| 23 |
$this->section = Header::TYPE; |
| 24 |
$this->position = 40; |
| 25 |
$this->name = __( 'Header 4', 'yaymail' ); |
| 26 |
$this->elements = [ |
| 27 |
ColumnLayout::get_object_data( |
| 28 |
2, |
| 29 |
[ |
| 30 |
'background_color' => '#ffffff', |
| 31 |
'vertical_align' => 'middle', |
| 32 |
'children' => [ |
| 33 |
Column::get_object_data( |
| 34 |
50, |
| 35 |
[ |
| 36 |
'children' => [ |
| 37 |
Logo::get_object_data( |
| 38 |
[ |
| 39 |
'background_color' => '#ffffff00', |
| 40 |
'src' => 'https://images.wpbrandy.com/uploads/yaymail-footer-img-1.png', |
| 41 |
'width' => 195, |
| 42 |
'align' => 'left', |
| 43 |
'padding' => [ |
| 44 |
'top' => 0, |
| 45 |
'right' => 0, |
| 46 |
'bottom' => 0, |
| 47 |
'left' => 0, |
| 48 |
], |
| 49 |
] |
| 50 |
), |
| 51 |
], |
| 52 |
] |
| 53 |
), |
| 54 |
Column::get_object_data( |
| 55 |
50, |
| 56 |
[ |
| 57 |
'children' => [ |
| 58 |
SocialIcon::get_object_data( |
| 59 |
[ |
| 60 |
'align' => 'right', |
| 61 |
'spacing' => 24, |
| 62 |
'width_icon' => 24, |
| 63 |
'style' => 'SolidDark', |
| 64 |
'icon_list' => [ |
| 65 |
[ |
| 66 |
'icon' => 'twitter', |
| 67 |
'url' => '#', |
| 68 |
], |
| 69 |
[ |
| 70 |
'icon' => 'facebook', |
| 71 |
'url' => '#', |
| 72 |
], |
| 73 |
[ |
| 74 |
'icon' => 'instagram', |
| 75 |
'url' => '#', |
| 76 |
], |
| 77 |
], |
| 78 |
'padding' => [ |
| 79 |
'top' => 0, |
| 80 |
'right' => 0, |
| 81 |
'bottom' => 0, |
| 82 |
'left' => 0, |
| 83 |
], |
| 84 |
] |
| 85 |
), |
| 86 |
], |
| 87 |
] |
| 88 |
), |
| 89 |
], |
| 90 |
'padding' => [ |
| 91 |
'top' => 30, |
| 92 |
'left' => 40, |
| 93 |
'right' => 40, |
| 94 |
'bottom' => 30, |
| 95 |
], |
| 96 |
] |
| 97 |
), |
| 98 |
|
| 99 |
]; |
| 100 |
} |
| 101 |
} |