ContentRenderer
4 days ago
class-html2text-exception.php
11 months ago
class-html2text.php
11 months ago
class-renderer.php
4 days ago
index.php
11 months ago
interface-css-inliner.php
11 months ago
template-canvas.css
3 months ago
template-canvas.php
3 months ago
template-canvas.php
42 lines
| 1 | <?php |
| 2 | declare(strict_types = 1); |
| 3 | if (!defined('ABSPATH')) exit; |
| 4 | // phpcs:disable Generic.Files.InlineHTML.Found |
| 5 | // phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped |
| 6 | $language_attributes = get_language_attributes(); |
| 7 | $language_attributes = trim( (string) preg_replace( '/\s?dir=(["\']).*?\1/i', '', $language_attributes ) ); |
| 8 | $language_attributes = trim( $language_attributes . ' dir="' . esc_attr( $rendering_context->get_text_direction() ) . '"' ); |
| 9 | ?><!DOCTYPE html> |
| 10 | <html <?php echo $language_attributes; ?>> |
| 11 | <head> |
| 12 | <title><?php echo esc_html( $subject ); ?></title> |
| 13 | <meta charset="<?php bloginfo( 'charset' ); ?>" /> |
| 14 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
| 15 | <meta name="viewport" content="width=device-width, initial-scale=1" /> |
| 16 | <meta http-equiv="X-UA-Compatible" content="IE=edge" /> |
| 17 | <meta name="format-detection" content="telephone=no" /> |
| 18 | <?php echo $meta_robots; ?> |
| 19 | <!-- Forced Styles --> |
| 20 | </head> |
| 21 | <body dir="<?php echo esc_attr( $rendering_context->get_text_direction() ); ?>"> |
| 22 | <!--[if mso | IE]><table align="center" role="presentation" border="0" cellpadding="0" cellspacing="0" width="<?php echo esc_attr( $layout['contentSize'] ); ?>" style="width:<?php echo esc_attr( $layout['contentSize'] ); ?>"><tr><td><![endif]--> |
| 23 | <div class="email_layout_wrapper" style="max-width: <?php echo esc_attr( $layout['contentSize'] ); ?>"> |
| 24 | <table width="100%" border="0" cellpadding="0" cellspacing="0" role="presentation"> |
| 25 | <tbody> |
| 26 | <tr> |
| 27 | <td class="email_preheader" height="1"> |
| 28 | <?php echo esc_html( wp_strip_all_tags( $pre_header ) ); ?> |
| 29 | </td> |
| 30 | </tr> |
| 31 | <tr> |
| 32 | <td class="email_content_wrapper"> |
| 33 | <?php echo $template_html; ?> |
| 34 | </td> |
| 35 | </tr> |
| 36 | </tbody> |
| 37 | </table> |
| 38 | </div> |
| 39 | <!--[if mso | IE]></td></tr></table><![endif]--> |
| 40 | </body> |
| 41 | </html> |
| 42 |