email-template.php
58 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Email template file |
| 4 | * |
| 5 | * @var string $encodedSvg Base64 encoded SVG logo |
| 6 | * @var string $htmlMessage Main message content |
| 7 | * @var array $details List of details |
| 8 | * @var string $footerMessage Footer content |
| 9 | * @var bool $isBasic Whether using basic version |
| 10 | * @var string $recipient Recipient email |
| 11 | * @var string $year Current year |
| 12 | * @var string $siteUrl Website URL |
| 13 | * @var string $pluginName Plugin name string |
| 14 | */ |
| 15 | ?> |
| 16 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 17 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 18 | <head> |
| 19 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
| 20 | <title><?php esc_html_e("WP Staging Notification", 'wp-staging'); ?> </title> |
| 21 | <meta name="viewport" content="width=device-width, initial-scale=1.0"/> |
| 22 | </head> |
| 23 | <body style="margin: 0; padding: 0;"> |
| 24 | <table border="0" cellpadding="0" cellspacing="0" width="100%"> |
| 25 | <tr> |
| 26 | <td bgcolor="#f4f4f4" align="center" style="padding: 15px;"> |
| 27 | <table border="0" cellpadding="0" cellspacing="0" width="100%" style="border-collapse: collapse; background-color: #ffffff; box-shadow: 0 2px 5px rgba(0,0,0,0.1);"> |
| 28 | <!-- Header --> |
| 29 | <tr style="background: linear-gradient(129deg, #35b6f4 0%, #2eb67e 50%, #ea9f33 50%, #e12758 100%)"> |
| 30 | <td style="padding: 15px 20px 10px 25px;"> |
| 31 | <picture> |
| 32 | <source srcset="<?php echo esc_html($encodedSvg); ?>" type="image/svg+xml"> |
| 33 | <img src="https://wp-staging.com/mail-template/wp-staging-logo.png" alt="WP STAGING Logo" width="210"> |
| 34 | </picture> |
| 35 | </td> |
| 36 | </tr> |
| 37 | <!-- Body --> |
| 38 | <tr> |
| 39 | <td style="padding: 40px 30px; font-family: Arial, sans-serif; line-height: 1.6;"> |
| 40 | <p style="margin: 0 0 20px 0; color: #333;"><?php echo wp_kses_post($htmlMessage); ?></p> |
| 41 | <?php if (count($details) > 0) : ?> |
| 42 | <?php require __DIR__ . '/email-details.php';?> |
| 43 | <?php endif; ?> |
| 44 | </td> |
| 45 | </tr> |
| 46 | <!-- Footer --> |
| 47 | <tr> |
| 48 | <td bgcolor="#f4f4f4" style="padding: 20px 30px; text-align: center; font-family: Arial, sans-serif; font-size: 12px; color: #666;"> |
| 49 | <?php require __DIR__ . '/email-footer.php'; ?> |
| 50 | </td> |
| 51 | </tr> |
| 52 | </table> |
| 53 | </td> |
| 54 | </tr> |
| 55 | </table> |
| 56 | </body> |
| 57 | </html> |
| 58 |