PluginProbe
YayMail – WooCommerce Email Customizer / 4.4.6
YayMail – WooCommerce Email Customizer v4.4.6
4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 trunk 1.9.6 2.1.4 2.1.5 3.2.2 3.2.6 3.2.7.1 3.2.8.1 3.2.9 3.3 3.3.1 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9 3.4 3.4.1 All 57 releases
yaymail / templates / emails / before-email-content.php

before-email-content.php in YayMail – WooCommerce Email Customizer 4.4.6, at templates/emails/before-email-content.php

55 lines 2.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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