Commit realizado el 12:13:52 08-04-2024

This commit is contained in:
Pagina Web Monito
2024-04-08 12:13:55 -04:00
commit 0c33094de9
7815 changed files with 1365694 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
<?php
/**
* Classic body template.
*
* This template can be overridden by copying it to yourtheme/wpforms/emails/classic-body.php.
*
* @since 1.8.5
*
* @var string $message Email message.
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<table border="0" cellpadding="0" cellspacing="0" width="100%" role="presentation">
<tbody>
<?php echo wp_kses_post( $message ); ?>
</tbody>
</table>

View File

@@ -0,0 +1,17 @@
<?php
/**
* Classic field template.
*
* This template can be overridden by copying it to yourtheme/wpforms/emails/classic-field.php.
*
* @since 1.8.5
*/
?>
<tr>
<td class="field-name"><strong>{field_name}</strong></td>
</tr>
<tr class="field-{field_type}">
<td class="field-value">{field_value}</td>
</tr>

View File

@@ -0,0 +1,50 @@
<?php
/**
* Classic footer template.
*
* This template can be overridden by copying it to yourtheme/wpforms/emails/classic-footer.php.
*
* @since 1.8.5
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
</td>
</tr>
<tr>
<td align="center" valign="top" class="footer">
<?php
/** This filter is documented in /includes/emails/templates/footer-default.php */
echo apply_filters( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
'wpforms_email_footer_text',
sprintf(
wp_kses( /* translators: %1$s - site URL; %2$s - site title. */
__( 'Sent from <a href="%1$s">%2$s</a>', 'wpforms-lite' ),
[
'a' => [
'href' => [],
],
]
),
esc_url( home_url() ),
wp_specialchars_decode( get_bloginfo( 'name' ) )
)
);
?>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</td>
<td><!-- Deliberately empty to support consistent sizing and layout across multiple email clients. --></td>
</tr>
</table>
</body>
</html>

View File

@@ -0,0 +1,48 @@
<?php
/**
* Classic header template.
*
* This template can be overridden by copying it to yourtheme/wpforms/emails/classic-header.php.
*
* @since 1.8.5
*
* @var string $title Email title.
* @var array $header_image Header image arguments.
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php bloginfo( 'charset' ); ?>">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="color-scheme" content="light dark">
<title><?php echo esc_html( $title ); ?></title>
</head>
<body <?php echo is_rtl() ? 'rightmargin' : 'leftmargin'; ?>="0" marginwidth="0" topmargin="0" marginheight="0" offset="0" bgcolor="#e9eaec">
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%" class="body" role="presentation">
<tr>
<td><!-- Deliberately empty to support consistent sizing and layout across multiple email clients. --></td>
<td align="center" valign="top" class="body-inner" width="660">
<div class="wrapper" width="100%" dir="<?php echo is_rtl() ? 'rtl' : 'ltr'; ?>">
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="container" role="presentation">
<tr>
<?php if ( ! empty( $header_image['url'] ) ) : ?>
<td align="center" valign="middle" class="header">
<div class="header-image has-image-size-<?php echo ! empty( $header_image['size'] ) ? esc_attr( $header_image['size'] ) : 'medium'; ?>">
<img src="<?php echo esc_url( $header_image['url'] ); ?>" <?php echo isset( $header_image['width'] ) ? 'width="' . absint( $header_image['width'] ) . '"' : ''; ?> alt="<?php echo esc_attr( get_bloginfo( 'name' ) ); ?>" />
</div>
</td>
<?php endif; ?>
</tr>
<tr>
<td class="wrapper-inner" bgcolor="#ffffff">
<table border="0" cellpadding="0" cellspacing="0" width="100%" role="presentation">
<tr>
<td valign="top" class="content">

View File

@@ -0,0 +1,13 @@
<?php
/**
* Classic media queries style template.
*
* This template can be overridden by copying it to yourtheme/wpforms/emails/classic-queries.php.
*
* @since 1.8.5
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
require WPFORMS_PLUGIN_DIR . 'assets/css/emails/partials/classic_media_queries.css';

View File

@@ -0,0 +1,66 @@
<?php
/**
* Classic style template.
*
* This template can be overridden by copying it to yourtheme/wpforms/emails/classic-style.php.
*
* @since 1.8.5
*
* @var string $email_background_color Background color for the email.
* @var string $email_body_color Background color for the email content body.
* @var string $email_text_color Text color for the email content.
* @var string $email_links_color Color for links in the email content.
* @var string $email_typography Preferred typography font-family for email content.
* @var string $header_image_max_width Maximum width for the header image.
* @var string $header_image_max_height Maximum height for the header image.
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
require WPFORMS_PLUGIN_DIR . '/assets/css/emails/classic.min.css';
?>
body, .body {
background-color: <?php echo sanitize_hex_color( $email_background_color ); ?>;
}
.wrapper-inner {
background-color: <?php echo sanitize_hex_color( $email_body_color ); ?>;
border: 1px solid <?php echo sanitize_hex_color( wpforms_generate_contrasting_color( $email_text_color, 72, 63 ) ); ?>;
}
body, table.body, h1, h2, h3, h4, h5, h6, p, td, th, a {
color: <?php echo sanitize_hex_color( $email_text_color ); ?>;
font-family: <?php echo esc_attr( $email_typography ); ?>;
}
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 ); ?>;
}
.content .field-value {
border-bottom: 1px solid <?php echo sanitize_hex_color( wpforms_generate_contrasting_color( $email_text_color, 86, 72 ) ); ?>;
}
.footer, .footer a {
color: <?php echo sanitize_hex_color( wpforms_generate_contrasting_color( $email_text_color, 50, 45 ) ); ?>;
}
<?php if ( ! empty( $header_image_max_width ) && ! empty( $header_image_max_height ) ) : ?>
.header-image {
max-width: <?php echo esc_attr( $header_image_max_width ); ?>px;
}
.header-image img {
max-height: <?php echo esc_attr( $header_image_max_height ); ?>px;
}
<?php endif; ?>

View File

@@ -0,0 +1,22 @@
<?php
/**
* Compact body template.
*
* This template can be overridden by copying it to yourtheme/wpforms/emails/compact-body.php.
*
* @since 1.8.5
*
* @var string $message Email message.
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<table border="0" cellpadding="0" cellspacing="0" width="100%" role="presentation">
<tbody>
<?php echo wp_kses_post( $message ); ?>
</tbody>
</table>

View File

@@ -0,0 +1,15 @@
<?php
/**
* Compact field template.
*
* This template can be overridden by copying it to yourtheme/wpforms/emails/compact-field.php.
*
* @since 1.8.5
*/
?>
<tr class="field-{field_type}">
<td class="field-name"><strong>{field_name}</strong></td>
<td class="field-value" valign="middle">{field_value}</td>
</tr>

View File

@@ -0,0 +1,50 @@
<?php
/**
* Compact footer template.
*
* This template can be overridden by copying it to yourtheme/wpforms/emails/compact-footer.php.
*
* @since 1.8.5
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
</td>
</tr>
<tr>
<td align="<?php echo is_rtl() ? 'right' : 'left'; ?>" valign="top" class="footer">
<?php
/** This filter is documented in /includes/emails/templates/footer-default.php */
echo apply_filters( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
'wpforms_email_footer_text',
sprintf(
wp_kses( /* translators: %1$s - site URL; %2$s - site title. */
__( 'Sent from <a href="%1$s">%2$s</a>', 'wpforms-lite' ),
[
'a' => [
'href' => [],
],
]
),
esc_url( home_url() ),
wp_specialchars_decode( get_bloginfo( 'name' ) )
)
);
?>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</td>
<td><!-- Deliberately empty to support consistent sizing and layout across multiple email clients. --></td>
</tr>
</table>
</body>
</html>

View File

@@ -0,0 +1,48 @@
<?php
/**
* Compact header template.
*
* This template can be overridden by copying it to yourtheme/wpforms/emails/compact-header.php.
*
* @since 1.8.5
*
* @var string $title Email title.
* @var array $header_image Header image arguments.
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php bloginfo( 'charset' ); ?>">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="color-scheme" content="light dark">
<title><?php echo esc_html( $title ); ?></title>
</head>
<body <?php echo is_rtl() ? 'rightmargin' : 'leftmargin'; ?>="0" marginwidth="0" topmargin="0" marginheight="0" offset="0" bgcolor="#e9eaec">
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%" class="body" role="presentation">
<tr>
<td><!-- Deliberately empty to support consistent sizing and layout across multiple email clients. --></td>
<td align="center" valign="top" class="body-inner" width="700">
<div class="wrapper" width="100%" dir="<?php echo is_rtl() ? 'rtl' : 'ltr'; ?>">
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="container" role="presentation">
<tr>
<?php if ( ! empty( $header_image['url'] ) ) : ?>
<td align="center" valign="middle" class="header">
<div class="header-image has-image-size-<?php echo ! empty( $header_image['size'] ) ? esc_attr( $header_image['size'] ) : 'medium'; ?>">
<img src="<?php echo esc_url( $header_image['url'] ); ?>" <?php echo isset( $header_image['width'] ) ? 'width="' . absint( $header_image['width'] ) . '"' : ''; ?> alt="<?php echo esc_attr( get_bloginfo( 'name' ) ); ?>" />
</div>
</td>
<?php endif; ?>
</tr>
<tr>
<td class="wrapper-inner" bgcolor="#ffffff">
<table border="0" cellpadding="0" cellspacing="0" width="100%" role="presentation">
<tr>
<td valign="top" class="content <?php echo is_rtl() ? 'is-rtl' : 'is-ltr'; ?>">

View File

@@ -0,0 +1,13 @@
<?php
/**
* Compact media queries style template.
*
* This template can be overridden by copying it to yourtheme/wpforms/emails/compact-queries.php.
*
* @since 1.8.5
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
require WPFORMS_PLUGIN_DIR . 'assets/css/emails/partials/compact_media_queries.css';

View File

@@ -0,0 +1,66 @@
<?php
/**
* Compact style template.
*
* This template can be overridden by copying it to yourtheme/wpforms/emails/compact-style.php.
*
* @since 1.8.5
*
* @var string $email_background_color Background color for the email.
* @var string $email_body_color Background color for the email content body.
* @var string $email_text_color Text color for the email content.
* @var string $email_links_color Color for links in the email content.
* @var string $email_typography Preferred typography font-family for email content.
* @var string $header_image_max_width Maximum width for the header image.
* @var string $header_image_max_height Maximum height for the header image.
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
require WPFORMS_PLUGIN_DIR . '/assets/css/emails/compact.min.css';
?>
body, .body {
background-color: <?php echo sanitize_hex_color( $email_background_color ); ?>;
}
.wrapper-inner {
background-color: <?php echo sanitize_hex_color( $email_body_color ); ?>;
border: 1px solid <?php echo sanitize_hex_color( wpforms_generate_contrasting_color( $email_text_color, 72, 63 ) ); ?>;
}
body, table.body, h1, h2, h3, h4, h5, h6, p, td, th, a {
color: <?php echo sanitize_hex_color( $email_text_color ); ?>;
font-family: <?php echo esc_attr( $email_typography ); ?>;
}
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 ); ?>;
}
.content td {
border-bottom: 1px solid <?php echo sanitize_hex_color( wpforms_generate_contrasting_color( $email_text_color, 86, 72 ) ); ?>;
}
.footer, .footer a {
color: <?php echo sanitize_hex_color( wpforms_generate_contrasting_color( $email_text_color, 50, 45 ) ); ?>;
}
<?php if ( ! empty( $header_image_max_width ) && ! empty( $header_image_max_height ) ) : ?>
.header-image {
max-width: <?php echo esc_attr( $header_image_max_width ); ?>px;
}
.header-image img {
max-height: <?php echo esc_attr( $header_image_max_height ); ?>px;
}
<?php endif; ?>

View File

@@ -0,0 +1,18 @@
<?php
/**
* General body template (plain text).
*
* This template can be overridden by copying it to yourtheme/wpforms/emails/general-body-plain.php.
*
* @since 1.5.4
*
* @version 1.5.4
*
* @var string $message
*/
if ( ! \defined( 'ABSPATH' ) ) {
exit;
}
echo \wp_kses_post( $message );

View File

@@ -0,0 +1,28 @@
<?php
/**
* General body template.
*
* This template can be overridden by copying it to yourtheme/wpforms/emails/general-body.php.
*
* @since 1.5.4
*
* @version 1.5.4
*
* @var string $message
*/
if ( ! \defined( 'ABSPATH' ) ) {
exit;
}
?>
<table>
<tbody>
<tr>
<td>
<?php echo \wp_kses_post( $message ); ?>
</td>
</tr>
</tbody>
</table>

View File

@@ -0,0 +1,33 @@
<?php
/**
* General footer template.
*
* This template can be overridden by copying it to yourtheme/wpforms/emails/general-footer.php.
*
* @since 1.5.4
*
* @version 1.5.4
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
</td>
</tr>
<tr>
<td align="center" valign="top" class="footer">
<?php
/* translators: %s - link to the site. */
printf( esc_html__( 'Sent from %s', 'wpforms-lite' ), '<a href="' . esc_url( home_url() ) . '">' . esc_html( wp_specialchars_decode( get_bloginfo( 'name' ) ) ) . '</a>' );
?>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>

View File

@@ -0,0 +1,42 @@
<?php
/**
* General header template.
*
* This template can be overridden by copying it to yourtheme/wpforms/emails/general-header.php.
*
* @since 1.5.4
*
* @version 1.5.4
*
* @var string $title
* @var string $header_image
*/
if ( ! \defined( 'ABSPATH' ) ) {
exit;
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width">
<title><?php echo \esc_html( $title ); ?></title>
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%" class="body">
<tr>
<td align="center" valign="top" class="body-inner">
<table border="0" cellpadding="0" cellspacing="0" class="container">
<tr>
<td align="center" valign="middle" class="header">
<?php if ( ! empty( $header_image['url'] ) ) : ?>
<img src="<?php echo \esc_url( $header_image['url'] ); ?>" <?php echo isset( $header_image['width'] ) ? 'width="' . \absint( $header_image['width'] ) . '"' : ''; ?> alt="<?php echo \esc_attr( \get_bloginfo( 'name' ) ); ?>" />
<?php endif; ?>
</td>
</tr>
<tr>
<td align="left" valign="top" class="content">

View File

@@ -0,0 +1,15 @@
<?php
/**
* General media queries style template.
*
* This template can be overridden by copying it to yourtheme/wpforms/emails/general-queries.php.
*
* @since 1.5.4
*
* @version 1.5.4
*/
if ( ! \defined( 'ABSPATH' ) ) {
exit;
}
require \WPFORMS_PLUGIN_DIR . 'assets/css/emails/partials/media_queries.css';

View File

@@ -0,0 +1,30 @@
<?php
/**
* General style template.
*
* This template can be overridden by copying it to yourtheme/wpforms/emails/general-style.php.
*
* @since 1.5.4
*
* @version 1.5.4
*
* @var string $email_background_color
*/
if ( ! \defined( 'ABSPATH' ) ) {
exit;
}
require \WPFORMS_PLUGIN_DIR . '/assets/css/emails/general.min.css';
?>
body, .body {
background-color: <?php echo \esc_attr( $email_background_color ); ?>;
}
<?php if ( ! empty( $header_image_max_width ) ) : ?>
.header img {
max-width: <?php echo esc_attr( $header_image_max_width ); ?>px;
}
<?php endif; ?>

View File

@@ -0,0 +1,56 @@
<?php
/**
* Email Summary body template (plain text).
*
* This template can be overridden by copying it to yourtheme/wpforms/emails/summary-body-plain.php.
*
* @since 1.5.4
*
* @var array $entries
* @var array $info_block
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
echo esc_html__( 'Hi there!', 'wpforms-lite' ) . "\n\n";
if ( wpforms()->is_pro() ) {
echo esc_html__( 'Lets see how your forms performed in the past week.', 'wpforms-lite' ) . "\n\n";
} else {
echo esc_html__( 'Lets see how your forms performed.', 'wpforms-lite' ) . "\n\n";
echo esc_html__( 'Below is the total number of submissions for each form, however actual entries are not stored in WPForms Lite.', 'wpforms-lite' ) . "\n\n";
echo esc_html__( 'To view future entries inside your WordPress dashboard, and get more detailed reports, consider upgrading to Pro:', 'wpforms-lite' );
echo '&nbsp;';
echo 'https://wpforms.com/lite-upgrade/?utm_source=WordPress&utm_medium=Weekly%20Summary%20Email&utm_campaign=liteplugin&utm_content=Upgrade&utm_locale=' . wpforms_sanitize_key( get_locale() );
echo "\n\n\n";
}
echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n";
echo esc_html__( 'Form', 'wpforms-lite' ) . ' | ' . esc_html__( 'Entries', 'wpforms-lite' ) . "\n\n";
echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n";
foreach ( $entries as $row ) {
echo ( isset( $row['title'] ) ? esc_html( $row['title'] ) : '' ) . ' | ' . ( isset( $row['count'] ) ? absint( $row['count'] ) : '' ) . "\n\n";
}
if ( empty( $entries ) ) {
echo esc_html__( 'It appears you do not have any form entries yet.', 'wpforms-lite' ) . "\n\n";
}
echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n\n";
if ( ! empty( $info_block['title'] ) ) {
echo esc_html( $info_block['title'] ) . "\n\n";
}
if ( ! empty( $info_block['content'] ) ) {
echo wp_kses_post( $info_block['content'] ) . "\n\n";
}
if ( ! empty( $info_block['button'] ) && ! empty( $info_block['url'] ) ) {
echo esc_html( $info_block['button'] ) . ': ' . esc_url( $info_block['url'] ) . "\n\n";
}

View File

@@ -0,0 +1,192 @@
<?php
/**
* Email Summary body template.
*
* This template can be overridden by copying it to yourtheme/wpforms/emails/summary-body.php.
*
* @since 1.5.4
*
* @var array $entries
* @var array $info_block
*/
use WPForms\Integrations\LiteConnect\LiteConnect;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<table class="summary-container">
<tbody>
<tr>
<td>
<h6 class="greeting"><?php esc_html_e( 'Hi there!', 'wpforms-lite' ); ?></h6>
<?php if ( wpforms()->is_pro() ) : ?>
<p class="large"><?php esc_html_e( 'Lets see how your forms performed in the past week.', 'wpforms-lite' ); ?></p>
<?php else : ?>
<p class="large"><?php esc_html_e( 'Lets see how your forms performed.', 'wpforms-lite' ); ?></p>
<p class="lite-disclaimer">
<?php esc_html_e( 'Below is the total number of submissions for each form. However, form entries are not stored by WPForms Lite.', 'wpforms-lite' ); ?>
</p>
<?php if ( LiteConnect::is_enabled() ) : ?>
<p class="lite-disclaimer">
<strong><?php esc_html_e( 'Weve got you covered!', 'wpforms-lite' ); ?></strong><br/>
<?php
printf(
wp_kses( /* translators: %s - WPForms.com Upgrade page URL. */
__( 'Your entries are being backed up securely in the cloud. When youre ready to manage your entries inside WordPress, just <a href="%s" target="_blank" rel="noopener noreferrer">upgrade to Pro</a> and well automatically import them in seconds!', 'wpforms-lite' ),
[
'a' => [
'href' => [],
'rel' => [],
'target' => [],
],
]
),
'https://wpforms.com/lite-upgrade/?utm_source=WordPress&utm_medium=Weekly%20Summary%20Email&utm_campaign=liteplugin&utm_content=Upgrade&utm_locale=' . wpforms_sanitize_key( get_locale() )
);
?>
</p>
<p class="lite-disclaimer">
<?php
printf(
'<a href="%1$s" target="_blank" rel="noopener noreferrer">%2$s</a>',
'https://wpforms.com/lite-upgrade/?utm_source=WordPress&utm_medium=Weekly%20Summary%20Email&utm_campaign=liteplugin&utm_content=Upgrade&utm_locale=' . wpforms_sanitize_key( get_locale() ),
esc_html__( 'Check out what else youll get with your Pro license.', 'wpforms-lite' )
);
?>
</p>
<?php else : ?>
<p class="lite-disclaimer">
<strong><?php esc_html_e( 'Note: Entry backups are not enabled.', 'wpforms-lite' ); ?></strong><br/>
<?php esc_html_e( 'We recommend that you enable entry backups to guard against lost entries.', 'wpforms-lite' ); ?>
</p>
<p class="lite-disclaimer">
<?php
printf(
wp_kses( /* translators: %s - WPForms.com Documentation page URL. */
__( 'Backups are completely free, 100%% secure, and you can turn them on in a few clicks! <a href="%s" target="_blank" rel="noopener noreferrer">Enable entry backups now.</a>', 'wpforms-lite' ),
[
'a' => [
'href' => [],
'rel' => [],
'target' => [],
],
]
),
'https://wpforms.com/docs/how-to-use-lite-connect-for-wpforms/?utm_source=WordPress&utm_medium=Weekly%20Summary%20Email&utm_campaign=liteplugin&utm_content=Documentation#backup-with-lite-connect'
);
?>
</p>
<p class="lite-disclaimer">
<?php
printf(
wp_kses( /* translators: %s - WPForms.com Upgrade page URL. */
__( 'When youre ready to manage your entries inside WordPress, <a href="%s" target="_blank" rel="noopener noreferrer">upgrade to Pro</a> to import your entries.', 'wpforms-lite' ),
[
'a' => [
'href' => [],
'rel' => [],
'target' => [],
],
]
),
'https://wpforms.com/lite-upgrade/?utm_source=WordPress&utm_medium=Weekly%20Summary%20Email&utm_campaign=liteplugin&utm_content=Upgrade&utm_locale=' . wpforms_sanitize_key( get_locale() )
);
?>
</p>
<?php endif; ?>
<?php endif; ?>
<table class="email-summaries">
<thead>
<tr>
<th><?php esc_html_e( 'Form', 'wpforms-lite' ); ?></th>
<th class="entries-column text-center"><?php esc_html_e( 'Entries', 'wpforms-lite' ); ?></th>
</tr>
</thead>
<tbody>
<?php foreach ( $entries as $row ) : ?>
<tr>
<td class="text-large"><?php echo isset( $row['title'] ) ? esc_html( $row['title'] ) : ''; ?></td>
<td class="entry-count text-large">
<?php if ( empty( $row['edit_url'] ) ) : ?>
<span>
<?php echo isset( $row['count'] ) ? absint( $row['count'] ) : ''; ?>
</span>
<?php else : ?>
<a href="<?php echo esc_url( $row['edit_url'] ); ?>">
<?php echo isset( $row['count'] ) ? absint( $row['count'] ) : ''; ?>
</a>
<?php endif; ?>
</td>
</tr>
<?php endforeach; ?>
<?php if ( empty( $entries ) ) : ?>
<tr>
<td class="text-center" colspan="2"><?php esc_html_e( 'It appears you do not have any form entries yet.', 'wpforms-lite' ); ?></td>
</tr>
<?php endif; ?>
</tbody>
</table>
<?php if ( ! empty( $info_block ) ) : ?>
<table class="summary-info-table">
<?php if ( ! empty( $info_block['title'] ) || ! empty( $info_block['content'] ) ) : ?>
<tr>
<td class="summary-info-content">
<table>
<?php if ( ! empty( $info_block['title'] ) ) : ?>
<tr>
<td class="text-center">
<h6><?php echo esc_html( $info_block['title'] ); ?></h6>
</td>
</tr>
<?php endif; ?>
<?php if ( ! empty( $info_block['content'] ) ) : ?>
<tr>
<td class="text-center"><?php echo wp_kses_post( $info_block['content'] ); ?></td>
</tr>
<?php endif; ?>
</table>
</td>
</tr>
<?php endif; ?>
<?php if ( ! empty( $info_block['url'] ) && ! empty( $info_block['button'] ) ) : ?>
<tr>
<td class="summary-info-content button-container">
<center>
<table class="button rounded-button">
<tr>
<td>
<table>
<tr>
<td>
<a href="<?php echo esc_url( $info_block['url'] ); ?>" rel="noopener noreferrer" target="_blank">
<?php echo esc_html( $info_block['button'] ); ?>
</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</center>
</td>
</tr>
<?php endif; ?>
</table>
<?php endif; ?>
</td>
</tr>
</tbody>
</table>

View File

@@ -0,0 +1,25 @@
<?php
/**
* Summary footer template (plain text).
*
* This template can be overridden by copying it to yourtheme/wpforms/emails/summary-footer-plain.php.
*
* @since 1.6.2.3
*
* @version 1.6.2.3
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
echo "\n---\n\n";
printf( /* translators: %s - link to the site. */
esc_html__( 'This email was auto-generated and sent from %s.', 'wpforms-lite' ),
esc_html( wp_specialchars_decode( get_bloginfo( 'name' ) ) )
);
echo "\n";
printf( /* translators: %s - link to the documentation. */
esc_html__( 'Learn how to disable: %s.', 'wpforms-lite' ),
'https://wpforms.com/docs/how-to-use-email-summaries/#faq'
);

View File

@@ -0,0 +1,43 @@
<?php
/**
* Summary footer template.
*
* This template can be overridden by copying it to yourtheme/wpforms/emails/summary-footer.php.
*
* @since 1.6.2.3
*
* @version 1.6.2.3
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
</td>
</tr>
<tr>
<td align="center" valign="top" class="footer">
<?php
echo wp_kses(
sprintf( /* translators: %1$s - link to the site, %2$s - link to the documentation. */
__( 'This email was auto-generated and sent from %1$s. Learn <a href="%2$s">how to disable</a>.', 'wpforms-lite' ),
'<a href="' . esc_url( home_url() ) . '">' . esc_html( wp_specialchars_decode( get_bloginfo( 'name' ) ) ) . '</a>',
'https://wpforms.com/docs/how-to-use-email-summaries/#faq'
),
[
'a' => [
'href' => [],
],
]
);
?>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>

View File

@@ -0,0 +1,30 @@
<?php
/**
* Email Summary style template.
*
* This template can be overridden by copying it to yourtheme/wpforms/emails/summary-style.php.
*
* @since 1.5.4
*
* @version 1.5.4
*
* @var string $email_background_color
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
require \WPFORMS_PLUGIN_DIR . '/assets/css/emails/summary.min.css';
?>
body, .body {
background-color: <?php echo esc_attr( $email_background_color ); ?>;
}
<?php if ( ! empty( $header_image_max_width ) ) : ?>
.header img {
max-width: <?php echo esc_attr( $header_image_max_width ); ?>px;
}
<?php endif; ?>