| 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\Divider; |
| 8 |
use YayMail\Elements\Image; |
| 9 |
use YayMail\Elements\Text; |
| 10 |
use YayMail\TemplatePatterns\SectionTemplates\Footer; |
| 11 |
use YayMail\Utils\SingletonTrait; |
| 12 |
|
| 13 |
/** |
| 14 |
* Header1 Elements |
| 15 |
*/ |
| 16 |
class Footer2 extends BasePattern { |
| 17 |
|
| 18 |
use SingletonTrait; |
| 19 |
|
| 20 |
public const TYPE = 'footer_2'; |
| 21 |
|
| 22 |
private function __construct() { |
| 23 |
$this->id = uniqid(); |
| 24 |
$this->section = Footer::TYPE; |
| 25 |
$this->position = 11; |
| 26 |
$this->name = __( 'Footer 2', 'yaymail' ); |
| 27 |
$this->elements = [ |
| 28 |
Text::get_object_data( |
| 29 |
[ |
| 30 |
'rich_text' => '<p style="text-align: center; margin: 0;"><span style="font-size: 16px; margin: 0px;"> Don\'t forget</span> <span style="font-size: 16px; margin: 0px;">to</span><span style="font-size: 16px; margin: 0px;"> update the Yaycommerce application</span></p>', |
| 31 |
'padding' => [ |
| 32 |
'top' => 30, |
| 33 |
'right' => 0, |
| 34 |
'bottom' => 10, |
| 35 |
'left' => 0, |
| 36 |
], |
| 37 |
'text_color' => '#333439', |
| 38 |
] |
| 39 |
), |
| 40 |
ColumnLayout::get_object_data( |
| 41 |
2, |
| 42 |
[ |
| 43 |
'children' => [ |
| 44 |
Column::get_object_data( |
| 45 |
50, |
| 46 |
[ |
| 47 |
'children' => [ |
| 48 |
// There are no elements to display |
| 49 |
Image::get_object_data( |
| 50 |
[ |
| 51 |
'src' => 'https://images.wpbrandy.com/uploads/yaymail-footer-2-img-1.png', |
| 52 |
'align' => 'right', |
| 53 |
'padding' => [ |
| 54 |
'top' => 10, |
| 55 |
'bottom' => 0, |
| 56 |
'left' => 0, |
| 57 |
'right' => 10, |
| 58 |
], |
| 59 |
'width' => 108, |
| 60 |
] |
| 61 |
), |
| 62 |
], |
| 63 |
] |
| 64 |
), |
| 65 |
Column::get_object_data( |
| 66 |
50, |
| 67 |
[ |
| 68 |
'children' => [ |
| 69 |
Image::get_object_data( |
| 70 |
[ |
| 71 |
'src' => 'https://images.wpbrandy.com/uploads/yaymail-footer-2-img-2.png', |
| 72 |
'align' => 'left', |
| 73 |
'padding' => [ |
| 74 |
'top' => 10, |
| 75 |
'bottom' => 0, |
| 76 |
'left' => 10, |
| 77 |
'right' => 0, |
| 78 |
], |
| 79 |
'width' => 108, |
| 80 |
] |
| 81 |
), |
| 82 |
], |
| 83 |
] |
| 84 |
), |
| 85 |
|
| 86 |
], |
| 87 |
'padding' => [ |
| 88 |
'top' => 0, |
| 89 |
'right' => 100, |
| 90 |
'bottom' => 0, |
| 91 |
'left' => 100, |
| 92 |
], |
| 93 |
] |
| 94 |
), |
| 95 |
Divider::get_object_data( |
| 96 |
[ |
| 97 |
'height' => 1, |
| 98 |
'width' => 100, |
| 99 |
'divider_color' => '#f1f2f5', |
| 100 |
'padding' => [ |
| 101 |
'top' => 30, |
| 102 |
'right' => 40, |
| 103 |
'bottom' => 30, |
| 104 |
'left' => 40, |
| 105 |
], |
| 106 |
] |
| 107 |
), |
| 108 |
Text::get_object_data( |
| 109 |
[ |
| 110 |
'rich_text' => '<p style="margin: 0px; text-align: center; font-weight: 300;"><span style="font-size: 14px; margin: 0;">© 2023 YayCommerce.com<br /></span><span style="font-size: 14px; text-align: center;">70 Washington Square South New York, NY 10012, United States</span></p> |
| 111 |
<p style="text-align: center; font-weight: 300;"><span style="font-size: 14px; margin: 0;">Contact us <span style="color: #e2e6ee;">|</span></span><span> </span> <span style="text-align: center,font-size: 14px; margin: 0;">Terms & Condition</span><span style="font-size: 14px; margin: 0;"> <span style="color: #e2e6ee;">|</span></span><span> </span> <span style="font-size: 14px; margin: 0;">Return Policy</span><span style="font-size: 14px; margin: 0;"><span style="font-size: 14px; margin: 0;"> <span style="color: #e2e6ee;">|</span></span> Support</span><span style="font-size: 14px; margin: 0;"><span style="font-size: 14px; margin: 0;"> <span style="color: #e2e6ee;">|</span></span> Unsubscribe</span></p>', |
| 112 |
'padding' => [ |
| 113 |
'top' => 0, |
| 114 |
'right' => 0, |
| 115 |
'bottom' => 0, |
| 116 |
'left' => 0, |
| 117 |
], |
| 118 |
'text_color' => '#333439', |
| 119 |
] |
| 120 |
), |
| 121 |
]; |
| 122 |
} |
| 123 |
} |
| 124 |
|