| 1 |
<?php |
| 2 |
$dir = is_rtl() ? 'rtl' : 'ltr'; |
| 3 |
$template_exclude_style = apply_filters( 'yaymail_template_exclude_style', [] ); |
| 4 |
$yaymail_settings = yaymail_settings(); |
| 5 |
$container_width = isset( $yaymail_settings['container_width'] ) && is_numeric( $yaymail_settings['container_width'] ) ? $yaymail_settings['container_width'] : '605'; |
| 6 |
?> |
| 7 |
<!DOCTYPE html> |
| 8 |
<html <?php language_attributes(); ?> dir="<?php echo esc_attr( $dir ); ?>"> |
| 9 |
<head> |
| 10 |
<meta charset="UTF-8"> |
| 11 |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> |
| 12 |
<meta name="viewport" content="width=device-width, initial-scale=1"/> |
| 13 |
<meta name="x-apple-disable-message-reformatting" /> |
| 14 |
<?php if ( ! in_array( $template->get_name(), $template_exclude_style ) ) : ?> |
| 15 |
<style> |
| 16 |
h1{ font-family:inherit;text-shadow:unset;text-align:inherit;} |
| 17 |
h2,h3{ font-family:inherit;color:inherit;text-align:inherit;} |
| 18 |
.yaymail-inline-block {display: inline-block;} |
| 19 |
.yaymail-customizer-email-template-container a {color: <?php echo esc_attr( $template->get_text_link_color() ); ?>} |
| 20 |
.yaymail-order-details-table .wc-item-meta {list-style-type: none;} |
| 21 |
/* Ensure container width remains constant on mobile */ |
| 22 |
@media screen and (max-width: 600px) { |
| 23 |
.yaymail-template-content-container { |
| 24 |
width: <?php echo esc_attr( $container_width ); ?>px !important; |
| 25 |
} |
| 26 |
} |
| 27 |
/** |
| 28 |
* Media queries are not supported by all email clients, however they do work on modern mobile |
| 29 |
* Gmail clients and can help us achieve better consistency there. |
| 30 |
*/ |
| 31 |
/* @media screen and (max-width: 600px) { |
| 32 |
.yaymail-template-content-container { |
| 33 |
width: 100% !important; |
| 34 |
} |
| 35 |
.yaymail-template-content-container .yaymail-element__content { |
| 36 |
padding: 8px 15px !important; |
| 37 |
} |
| 38 |
.yaymail-template-content-container .yaymail-billing-address-column, |
| 39 |
.yaymail-template-content-container .yaymail-shipping-address-column { |
| 40 |
display: block !important; |
| 41 |
width: 100% !important; |
| 42 |
} |
| 43 |
.yaymail-template-content-container .yaymail-shipping-address-column { |
| 44 |
margin-top: 15px; |
| 45 |
} |
| 46 |
.yaymail-template-content-container .yaymail_item_product_title { |
| 47 |
min-width: 120px; |
| 48 |
width: 100%; |
| 49 |
} |
| 50 |
} */ |
| 51 |
</style> |
| 52 |
<?php endif; ?> |
| 53 |
</head> |
| 54 |
<body style="background: <?php echo esc_attr( $template->get_background_color() ); ?>" <?php echo is_rtl() ? 'rightmargin' : 'leftmargin'; ?>="0" marginwidth="0" topmargin="0" marginheight="0" offset="0"> |
| 55 |
|