| Server IP : 38.190.208.107 / Your IP : 216.73.217.46 Web Server : nginx/1.28.1 System : Linux ht2026040333114 6.1.0-10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.37-1 (2023-07-03) x86_64 User : root ( 0) PHP Version : 8.2.28 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv,eval,assert,passthru,system,exec,shell_exec,popen,proc_open MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wwwroot/wp.3/wp-content/plugins/wpforms-lite/templates/emails/ |
Upload File : |
<?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; ?>
}