HTML
1 year ago
views
5 months ago
Apply.php
6 months ago
Cron.php
1 year ago
CronJob.php
7 months ago
CronJobs.php
2 months ago
Crypt.php
1 month ago
DownloadStats.php
5 months ago
Email.php
5 days ago
EmailCron.php
1 year ago
FileSystem.php
1 year ago
Installer.php
1 day ago
Messages.php
1 year ago
Query.php
4 months ago
Session.php
1 day ago
Settings.php
4 years ago
SimpleMath.php
4 years ago
TempStorage.php
1 day ago
Template.php
5 months ago
UI.php
6 months ago
Updater.php
4 years ago
UserAgent.php
2 years ago
__.php
1 month ago
__MailUI.php
3 years ago
__MailUI.php
45 lines
| 1 | <?php |
| 2 | /** |
| 3 | * User: shahnuralam |
| 4 | * Date: 17/11/18 |
| 5 | * Time: 1:06 AM |
| 6 | */ |
| 7 | |
| 8 | namespace WPDM\__; |
| 9 | |
| 10 | |
| 11 | class __MailUI |
| 12 | { |
| 13 | |
| 14 | |
| 15 | |
| 16 | static function panel($heading = '', $content = array(), $footer = ''){ |
| 17 | $template = new Template(); |
| 18 | return $template->assign('heading', $heading) |
| 19 | ->assign('content', $content) |
| 20 | ->assign('footer', $footer) |
| 21 | ->fetch("email-templates/ui-blocks/panel.php", __DIR__.'/views'); |
| 22 | } |
| 23 | |
| 24 | static function table($thead, $data, $css){ |
| 25 | $template = new Template(); |
| 26 | return $template->assign('thead', $thead) |
| 27 | ->assign('data', $data) |
| 28 | ->assign('css', $css) |
| 29 | ->fetch("email-templates/ui-blocks/table.php", __DIR__.'/views'); |
| 30 | } |
| 31 | |
| 32 | static function box($content) |
| 33 | { |
| 34 | return '<div style="padding: 20px; background: #ffffff; border: 1px solid #efefef;border-radius: 4px;margin: 10px 0">' . $content . '</div>'; |
| 35 | } |
| 36 | |
| 37 | |
| 38 | static function button( $link, $label, $bg = '#0085d8', $padding = '10px 20px', $radius = 4, $width = 'block', $margin = '10px 0') { |
| 39 | $link = esc_attr( $link ); |
| 40 | $button = "<a href='{$link}' style='background: {$bg}; color: #ffffff; border-radius: {$radius}px;display: {$width}; padding: {$padding};margin: {$margin}'>{$label}</a>"; |
| 41 | return $button; |
| 42 | } |
| 43 | |
| 44 | } |
| 45 |