| 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\ImageList; |
| 9 |
use YayMail\Elements\Logo; |
| 10 |
use YayMail\Elements\Text; |
| 11 |
use YayMail\TemplatePatterns\SectionTemplates\Footer; |
| 12 |
use YayMail\Utils\SingletonTrait; |
| 13 |
|
| 14 |
/** */ |
| 15 |
class Footer9 extends BasePattern { |
| 16 |
use SingletonTrait; |
| 17 |
|
| 18 |
public const TYPE = 'footer_9'; |
| 19 |
|
| 20 |
private function __construct() { |
| 21 |
$this->id = uniqid(); |
| 22 |
$this->section = Footer::TYPE; |
| 23 |
$this->position = 90; |
| 24 |
$this->name = __( 'Footer 9', 'yaymail' ); |
| 25 |
$this->elements = [ |
| 26 |
ColumnLayout::get_object_data( |
| 27 |
2, |
| 28 |
[ |
| 29 |
'inner_background_color' => '#ffffff', |
| 30 |
'padding' => [ |
| 31 |
'top' => 40, |
| 32 |
'bottom' => 10, |
| 33 |
'left' => 40, |
| 34 |
'right' => 40, |
| 35 |
], |
| 36 |
'children' => [ |
| 37 |
Column::get_object_data( |
| 38 |
50, |
| 39 |
[ |
| 40 |
'children' => [ |
| 41 |
Text::get_object_data( |
| 42 |
[ |
| 43 |
'rich_text' => '<p style="font-size: 16px"><span><b>Get the app</b></span></p>', |
| 44 |
'padding' => [ |
| 45 |
'top' => 0, |
| 46 |
'bottom' => 0, |
| 47 |
'left' => 0, |
| 48 |
'right' => 0, |
| 49 |
], |
| 50 |
] |
| 51 |
), |
| 52 |
Text::get_object_data( |
| 53 |
[ |
| 54 |
'rich_text' => '<p style="font-size:14px; margin: 7px 0px;"><span>Try the our mobile app to comment, replies, when you\'re on the go.</span></p>', |
| 55 |
'padding' => [ |
| 56 |
'top' => 0, |
| 57 |
'bottom' => 13, |
| 58 |
'left' => 0, |
| 59 |
'right' => 0, |
| 60 |
], |
| 61 |
] |
| 62 |
), |
| 63 |
ImageList::get_object_data( |
| 64 |
[ |
| 65 |
'number_column' => 2, |
| 66 |
'column_1' => |
| 67 |
[ |
| 68 |
'align' => 'left', |
| 69 |
'width' => 108, |
| 70 |
'padding' => [ |
| 71 |
'top' => '0', |
| 72 |
'right' => '10', |
| 73 |
'bottom' => '0', |
| 74 |
'left' => '0', |
| 75 |
|
| 76 |
], |
| 77 |
'image' => 'https://images.wpbrandy.com/uploads/yaymail-footer-2-img-1.png', |
| 78 |
], |
| 79 |
'column_2' => |
| 80 |
[ |
| 81 |
'align' => 'left', |
| 82 |
'width' => 108, |
| 83 |
'padding' => [ |
| 84 |
'top' => '0', |
| 85 |
'right' => '0', |
| 86 |
'bottom' => '0', |
| 87 |
'left' => '0', |
| 88 |
|
| 89 |
], |
| 90 |
'image' => 'https://images.wpbrandy.com/uploads/yaymail-footer-2-img-2.png', |
| 91 |
], |
| 92 |
] |
| 93 |
), |
| 94 |
], |
| 95 |
] |
| 96 |
), |
| 97 |
Column::get_object_data( |
| 98 |
50, |
| 99 |
[ |
| 100 |
'children' => [ |
| 101 |
Text::get_object_data( |
| 102 |
[ |
| 103 |
'rich_text' => '<p style="display: grid; font-size:14px;; grid-template-columns: 1fr 1fr; gap: 55px; margin: 0;"> |
| 104 |
<span style="padding-left: 10px">About us</span> |
| 105 |
<span>Facebook</span> |
| 106 |
</p>', |
| 107 |
'padding' => [ |
| 108 |
'top' => 10, |
| 109 |
'bottom' => 10, |
| 110 |
'left' => 20, |
| 111 |
'right' => 0, |
| 112 |
], |
| 113 |
] |
| 114 |
), |
| 115 |
Text::get_object_data( |
| 116 |
[ |
| 117 |
'rich_text' => '<p style="display: grid; font-size:14px;;grid-template-columns: 1fr 1fr; gap: 55px; margin: 0;"> |
| 118 |
<span style="padding-left: 10px">Contact us</span> |
| 119 |
<span>Instagram</span> |
| 120 |
</p>', |
| 121 |
'padding' => [ |
| 122 |
'top' => 10, |
| 123 |
'bottom' => 10, |
| 124 |
'left' => 20, |
| 125 |
'right' => 0, |
| 126 |
], |
| 127 |
] |
| 128 |
), |
| 129 |
Text::get_object_data( |
| 130 |
[ |
| 131 |
'rich_text' => '<p style="display: grid; font-size:14px; grid-template-columns: 1fr 1fr; gap: 55px; margin: 0;"> |
| 132 |
<span style="padding-left: 10px">Return Policy</span> |
| 133 |
<span>Tiktok</span> |
| 134 |
</p>', |
| 135 |
'padding' => [ |
| 136 |
'top' => 10, |
| 137 |
'bottom' => 10, |
| 138 |
'left' => 20, |
| 139 |
'right' => 0, |
| 140 |
], |
| 141 |
] |
| 142 |
), |
| 143 |
Text::get_object_data( |
| 144 |
[ |
| 145 |
'rich_text' => '<p style="display: grid; font-size:14px; grid-template-columns: 1fr 1fr; gap: 55px; margin: 0;"> |
| 146 |
<span style="padding-left: 10px">Unsubcribe</span> |
| 147 |
<span>Youtube</span> |
| 148 |
</p>', |
| 149 |
'padding' => [ |
| 150 |
'top' => 10, |
| 151 |
'bottom' => 10, |
| 152 |
'left' => 20, |
| 153 |
'right' => 0, |
| 154 |
], |
| 155 |
] |
| 156 |
), |
| 157 |
], |
| 158 |
] |
| 159 |
), |
| 160 |
], |
| 161 |
] |
| 162 |
), |
| 163 |
Divider::get_object_data( |
| 164 |
[ |
| 165 |
'height' => 1, |
| 166 |
'width' => 100, |
| 167 |
'divider_color' => '#F1F2F5', |
| 168 |
'padding' => [ |
| 169 |
'top' => 20, |
| 170 |
'right' => 40, |
| 171 |
'bottom' => 20, |
| 172 |
'left' => 40, |
| 173 |
], |
| 174 |
] |
| 175 |
), |
| 176 |
ColumnLayout::get_object_data( |
| 177 |
2, |
| 178 |
[ |
| 179 |
'inner_background_color' => '#ffffff', |
| 180 |
'padding' => [ |
| 181 |
'top' => 0, |
| 182 |
'bottom' => 40, |
| 183 |
'left' => 40, |
| 184 |
'right' => 40, |
| 185 |
], |
| 186 |
'children' => [ |
| 187 |
Column::get_object_data( |
| 188 |
40, |
| 189 |
[ |
| 190 |
'children' => |
| 191 |
[ |
| 192 |
Logo::get_object_data( |
| 193 |
[ |
| 194 |
'background_color' => '#ffffff', |
| 195 |
'align' => 'left', |
| 196 |
'src' => 'https://images.wpbrandy.com/uploads/yaymail-footer-img-1.png', |
| 197 |
'width' => '157', |
| 198 |
'url' => '#', |
| 199 |
'padding' => [ |
| 200 |
'top' => 0, |
| 201 |
'right' => 0, |
| 202 |
'bottom' => 0, |
| 203 |
'left' => 0, |
| 204 |
], |
| 205 |
] |
| 206 |
), |
| 207 |
], |
| 208 |
] |
| 209 |
), |
| 210 |
Column::get_object_data( |
| 211 |
60, |
| 212 |
[ |
| 213 |
'children' => [ |
| 214 |
Text::get_object_data( |
| 215 |
[ |
| 216 |
'rich_text' => '<p style="font-size: 12px, margin: 0px; text-align: right"> |
| 217 |
<span>© 2023 Made with love</span> |
| 218 |
</p>', |
| 219 |
'text_color' => '#77859B', |
| 220 |
'padding' => [ |
| 221 |
'top' => 0, |
| 222 |
'bottom' => 0, |
| 223 |
'left' => 0, |
| 224 |
'right' => 0, |
| 225 |
], |
| 226 |
] |
| 227 |
), |
| 228 |
], |
| 229 |
] |
| 230 |
), |
| 231 |
], |
| 232 |
] |
| 233 |
), |
| 234 |
]; |
| 235 |
} |
| 236 |
} |
| 237 |
|