| 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\Logo; |
| 9 |
use YayMail\Elements\SocialIcon; |
| 10 |
use YayMail\Elements\Space; |
| 11 |
use YayMail\Elements\Text; |
| 12 |
use YayMail\TemplatePatterns\SectionTemplates\Footer; |
| 13 |
use YayMail\Utils\SingletonTrait; |
| 14 |
|
| 15 |
/**Footer6 Elements */ |
| 16 |
class Footer6 extends BasePattern { |
| 17 |
|
| 18 |
use SingletonTrait; |
| 19 |
|
| 20 |
public const TYPE = 'footer_6'; |
| 21 |
|
| 22 |
private function __construct() { |
| 23 |
$this->id = uniqid(); |
| 24 |
$this->section = Footer::TYPE; |
| 25 |
$this->position = 60; |
| 26 |
$this->name = __( 'Footer 6', 'yaymail' ); |
| 27 |
$this->elements = [ |
| 28 |
ColumnLayout::get_object_data( |
| 29 |
3, |
| 30 |
[ |
| 31 |
'padding' => [ |
| 32 |
'top' => 15, |
| 33 |
'bottom' => 15, |
| 34 |
'left' => 40, |
| 35 |
'right' => 40, |
| 36 |
], |
| 37 |
'background_color' => '#f8fafd', |
| 38 |
'inner_background_color' => '#ffffff00', |
| 39 |
'children' => [ |
| 40 |
Column::get_object_data( |
| 41 |
25, |
| 42 |
[ |
| 43 |
'children' => [ |
| 44 |
Text::get_object_data( |
| 45 |
[ |
| 46 |
'rich_text' => '<table role="presentation" cellspacing="0" cellpadding="0" border="0"> |
| 47 |
<tr> |
| 48 |
<td style="vertical-align: middle; padding-right: 8px;"> |
| 49 |
<img src="https://images.wpbrandy.com/uploads/yaymail-footer-img-5.png" alt="" width="30" height="30" /> |
| 50 |
</td> |
| 51 |
<td style="vertical-align: middle; font-size: 16px;"> |
| 52 |
039 2219 129 |
| 53 |
</td> |
| 54 |
</tr> |
| 55 |
</table>', |
| 56 |
'padding' => [ |
| 57 |
'top' => 0, |
| 58 |
'right' => 0, |
| 59 |
'bottom' => 0, |
| 60 |
'left' => 0, |
| 61 |
], |
| 62 |
'text_color' => '#333439', |
| 63 |
'background_color' => '#ffffff00', |
| 64 |
] |
| 65 |
), |
| 66 |
|
| 67 |
], |
| 68 |
] |
| 69 |
), |
| 70 |
Column::get_object_data( |
| 71 |
30, |
| 72 |
[ |
| 73 |
'children' => [ |
| 74 |
|
| 75 |
Text::get_object_data( |
| 76 |
[ |
| 77 |
'rich_text' => '<table role="presentation" cellspacing="0" cellpadding="0" border="0" style="margin: 0 10px;"> |
| 78 |
<tr> |
| 79 |
<td style="vertical-align: middle; padding-right: 8px;"> |
| 80 |
<img src="https://images.wpbrandy.com/uploads/yaymail-footer-img-6.png" alt="" width="30" height="30" /> |
| 81 |
</td> |
| 82 |
<td style="vertical-align: middle; font-size: 16px;"> |
| 83 |
YayCommerce.com |
| 84 |
</td> |
| 85 |
</tr> |
| 86 |
</table>', |
| 87 |
'padding' => [ |
| 88 |
'top' => 0, |
| 89 |
'right' => 0, |
| 90 |
'bottom' => 0, |
| 91 |
'left' => 0, |
| 92 |
], |
| 93 |
'text_color' => '#333439', |
| 94 |
'background_color' => '#ffffff00', |
| 95 |
] |
| 96 |
), |
| 97 |
|
| 98 |
], |
| 99 |
] |
| 100 |
), |
| 101 |
Column::get_object_data( |
| 102 |
45, |
| 103 |
[ |
| 104 |
'children' => [ |
| 105 |
Logo::get_object_data( |
| 106 |
[ |
| 107 |
'background_color' => '#ffffff00', |
| 108 |
'align' => 'right', |
| 109 |
'src' => 'https://images.wpbrandy.com/uploads/yaymail-footer-img-1.png', |
| 110 |
'width' => '155', |
| 111 |
'url' => '#', |
| 112 |
'padding' => [ |
| 113 |
'top' => 0, |
| 114 |
'right' => 40, |
| 115 |
'bottom' => 0, |
| 116 |
'left' => 0, |
| 117 |
], |
| 118 |
] |
| 119 |
), |
| 120 |
], |
| 121 |
] |
| 122 |
), |
| 123 |
], |
| 124 |
] |
| 125 |
), |
| 126 |
SocialIcon::get_object_data( |
| 127 |
[ |
| 128 |
'align' => 'center', |
| 129 |
'spacing' => 24, |
| 130 |
'width_icon' => 30, |
| 131 |
'icon_list' => [ |
| 132 |
[ |
| 133 |
'icon' => 'facebook', |
| 134 |
'url' => '#', |
| 135 |
], |
| 136 |
[ |
| 137 |
'icon' => 'instagram', |
| 138 |
'url' => '#', |
| 139 |
], |
| 140 |
[ |
| 141 |
'icon' => 'tiktok', |
| 142 |
'url' => '#', |
| 143 |
], |
| 144 |
[ |
| 145 |
'icon' => 'youtube', |
| 146 |
'url' => '#', |
| 147 |
], |
| 148 |
], |
| 149 |
'padding' => [ |
| 150 |
'top' => 40, |
| 151 |
'right' => 40, |
| 152 |
'bottom' => 10, |
| 153 |
'left' => 40, |
| 154 |
], |
| 155 |
] |
| 156 |
), |
| 157 |
Text::get_object_data( |
| 158 |
[ |
| 159 |
'rich_text' => '<p style="text-align: center; margin: 0; font-size: 16px; font-weight: 300;">New Arrivals <span style="color: #e2e6ee;">|</span> Collections <span style="color: #e2e6ee;">|</span> Outlet <span style="color: #e2e6ee;">|</span> Contact</p>', |
| 160 |
'padding' => [ |
| 161 |
'top' => 10, |
| 162 |
'right' => 40, |
| 163 |
'bottom' => 30, |
| 164 |
'left' => 40, |
| 165 |
], |
| 166 |
'text_color' => '#333439', |
| 167 |
'background_color' => '#ffffff', |
| 168 |
] |
| 169 |
), |
| 170 |
ColumnLayout::get_object_data( |
| 171 |
3, |
| 172 |
[ |
| 173 |
'padding' => [ |
| 174 |
'top' => 0, |
| 175 |
'bottom' => 20, |
| 176 |
'left' => 40, |
| 177 |
'right' => 40, |
| 178 |
], |
| 179 |
'background_color' => '#f8fafd', |
| 180 |
'inner_background_color' => '#ffffff00', |
| 181 |
'children' => [ |
| 182 |
Column::get_object_data( |
| 183 |
25, |
| 184 |
[ |
| 185 |
'children' => [ |
| 186 |
Text::get_object_data( |
| 187 |
[ |
| 188 |
'rich_text' => '<p style="text-align: left; margin: 0; font-size: 12px; font-weight: 300;"><span style="margin: 0px 10px;">Terms & Condition</span></p>', |
| 189 |
'padding' => [ |
| 190 |
'top' => 0, |
| 191 |
'right' => 0, |
| 192 |
'bottom' => 0, |
| 193 |
'left' => 0, |
| 194 |
], |
| 195 |
'text_color' => '#77859B', |
| 196 |
'background_color' => '#ffffff00', |
| 197 |
] |
| 198 |
), |
| 199 |
], |
| 200 |
] |
| 201 |
), |
| 202 |
Column::get_object_data( |
| 203 |
50, |
| 204 |
[ |
| 205 |
'children' => [ |
| 206 |
Text::get_object_data( |
| 207 |
[ |
| 208 |
'rich_text' => '<p style="text-align: center; margin: 0; font-size: 12px; font-weight: 300;"><span>© 2023 Made with love</span></p>', |
| 209 |
'padding' => [ |
| 210 |
'top' => 0, |
| 211 |
'right' => 0, |
| 212 |
'bottom' => 0, |
| 213 |
'left' => 0, |
| 214 |
], |
| 215 |
'text_color' => '#77859B', |
| 216 |
'background_color' => '#ffffff00', |
| 217 |
] |
| 218 |
), |
| 219 |
], |
| 220 |
] |
| 221 |
), |
| 222 |
Column::get_object_data( |
| 223 |
25, |
| 224 |
[ |
| 225 |
'children' => [ |
| 226 |
Text::get_object_data( |
| 227 |
[ |
| 228 |
'rich_text' => '<p style="text-align: right; margin: 0; font-size: 12px; font-weight: 300;"><span style="margin: 0px 10px;">Unsubscribe</span></p>', |
| 229 |
'padding' => [ |
| 230 |
'top' => 0, |
| 231 |
'right' => 0, |
| 232 |
'bottom' => 0, |
| 233 |
'left' => 0, |
| 234 |
], |
| 235 |
'text_color' => '#77859B', |
| 236 |
'background_color' => '#ffffff00', |
| 237 |
] |
| 238 |
), |
| 239 |
], |
| 240 |
] |
| 241 |
), |
| 242 |
], |
| 243 |
] |
| 244 |
), |
| 245 |
]; |
| 246 |
} |
| 247 |
} |
| 248 |
|