Edit File by line
/home/zeestwma/ceyloniy.../wp-conte.../plugins/wpforms-.../template.../emails
File: compact-style.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Compact style template.
[2] Fix | Delete
*
[3] Fix | Delete
* This template can be overridden by copying it to yourtheme/wpforms/emails/compact-style.php.
[4] Fix | Delete
*
[5] Fix | Delete
* @since 1.8.5
[6] Fix | Delete
*
[7] Fix | Delete
* @var string $email_background_color Background color for the email.
[8] Fix | Delete
* @var string $email_body_color Background color for the email content body.
[9] Fix | Delete
* @var string $email_text_color Text color for the email content.
[10] Fix | Delete
* @var string $email_links_color Color for links in the email content.
[11] Fix | Delete
* @var string $email_typography Preferred typography font-family for email content.
[12] Fix | Delete
* @var string $header_image_max_width Maximum width for the header image.
[13] Fix | Delete
* @var string $header_image_max_height Maximum height for the header image.
[14] Fix | Delete
*/
[15] Fix | Delete
[16] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) {
[17] Fix | Delete
exit;
[18] Fix | Delete
}
[19] Fix | Delete
[20] Fix | Delete
require WPFORMS_PLUGIN_DIR . '/assets/css/emails/compact.min.css';
[21] Fix | Delete
[22] Fix | Delete
// Reuse border-color.
[23] Fix | Delete
$border_color = wpforms_generate_contrasting_color( $email_text_color, 86, 72 );
[24] Fix | Delete
[25] Fix | Delete
?>
[26] Fix | Delete
[27] Fix | Delete
body, .body {
[28] Fix | Delete
background-color: <?php echo sanitize_hex_color( $email_background_color ); ?>;
[29] Fix | Delete
}
[30] Fix | Delete
[31] Fix | Delete
.wrapper-inner {
[32] Fix | Delete
background-color: <?php echo sanitize_hex_color( $email_body_color ); ?>;
[33] Fix | Delete
border: 1px solid <?php echo sanitize_hex_color( wpforms_generate_contrasting_color( $email_text_color, 72, 63 ) ); ?>;
[34] Fix | Delete
}
[35] Fix | Delete
[36] Fix | Delete
body, table.body, h1, h2, h3, h4, h5, h6, p, td, th, a {
[37] Fix | Delete
color: <?php echo sanitize_hex_color( $email_text_color ); ?>;
[38] Fix | Delete
font-family: <?php echo esc_attr( $email_typography ); ?>;
[39] Fix | Delete
}
[40] Fix | Delete
[41] Fix | Delete
a, a:visited,
[42] Fix | Delete
a:hover, a:active,
[43] Fix | Delete
h1 a, h1 a:visited,
[44] Fix | Delete
h2 a, h2 a:visited,
[45] Fix | Delete
h3 a, h3 a:visited,
[46] Fix | Delete
h4 a, h4 a:visited,
[47] Fix | Delete
h5 a, h5 a:visited,
[48] Fix | Delete
h6 a, h6 a:visited {
[49] Fix | Delete
color: <?php echo sanitize_hex_color( $email_links_color ); ?>;
[50] Fix | Delete
}
[51] Fix | Delete
[52] Fix | Delete
.button-link {
[53] Fix | Delete
background-color: <?php echo sanitize_hex_color( $email_links_color ); ?>;
[54] Fix | Delete
border: 1px solid <?php echo sanitize_hex_color( $email_links_color ); ?>;
[55] Fix | Delete
color: <?php echo sanitize_hex_color( $email_body_color ); ?>;
[56] Fix | Delete
}
[57] Fix | Delete
[58] Fix | Delete
.content td {
[59] Fix | Delete
border-bottom: 1px solid <?php echo sanitize_hex_color( $border_color ); ?>;
[60] Fix | Delete
}
[61] Fix | Delete
[62] Fix | Delete
.footer, .footer a {
[63] Fix | Delete
color: <?php echo sanitize_hex_color( wpforms_generate_contrasting_color( $email_text_color, 50, 45 ) ); ?>;
[64] Fix | Delete
}
[65] Fix | Delete
[66] Fix | Delete
table.wpforms-order-summary-preview {
[67] Fix | Delete
border: 1px solid <?php echo sanitize_hex_color( $border_color ); ?>;
[68] Fix | Delete
}
[69] Fix | Delete
[70] Fix | Delete
table.wpforms-order-summary-preview td {
[71] Fix | Delete
border-top: 1px solid <?php echo sanitize_hex_color( $border_color ); ?>;
[72] Fix | Delete
}
[73] Fix | Delete
[74] Fix | Delete
<?php if ( ! empty( $header_image_max_width ) && ! empty( $header_image_max_height ) ) : ?>
[75] Fix | Delete
.header-image {
[76] Fix | Delete
max-width: <?php echo esc_attr( $header_image_max_width ); ?>px;
[77] Fix | Delete
}
[78] Fix | Delete
.header-image img {
[79] Fix | Delete
max-height: <?php echo esc_attr( $header_image_max_height ); ?>px;
[80] Fix | Delete
}
[81] Fix | Delete
<?php endif; ?>
[82] Fix | Delete
[83] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function