Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/wpforms-.../template.../emails
File: summary-body.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Email Summary body template.
[2] Fix | Delete
*
[3] Fix | Delete
* This template can be overridden by copying it to yourtheme/wpforms/emails/summary-body.php.
[4] Fix | Delete
*
[5] Fix | Delete
* @since 1.5.4
[6] Fix | Delete
* @since 1.8.8 Added `$overview`, `$has_trends`, `$notification_block`, and `$icons` parameters.
[7] Fix | Delete
*
[8] Fix | Delete
* @var array $overview Form entries overview data.
[9] Fix | Delete
* @var array $entries Form entries data to loop through.
[10] Fix | Delete
* @var bool $has_trends Whether trends data is available.
[11] Fix | Delete
* @var array $notification_block Notification block shown before the Info block.
[12] Fix | Delete
* @var array $info_block Info block shown at the end of the email.
[13] Fix | Delete
* @var array $icons Icons used for the design purposes.
[14] Fix | Delete
*/
[15] Fix | Delete
[16] Fix | Delete
use WPForms\Integrations\LiteConnect\LiteConnect;
[17] Fix | Delete
[18] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) {
[19] Fix | Delete
exit;
[20] Fix | Delete
}
[21] Fix | Delete
[22] Fix | Delete
?>
[23] Fix | Delete
[24] Fix | Delete
<table class="summary-container" border="0" cellpadding="0" cellspacing="0" width="100%" role="presentation">
[25] Fix | Delete
<tbody>
[26] Fix | Delete
<tr>
[27] Fix | Delete
<td class="summary-content" bgcolor="#ffffff">
[28] Fix | Delete
<table border="0" cellpadding="0" cellspacing="0" width="100%" role="presentation">
[29] Fix | Delete
<tbody>
[30] Fix | Delete
<tr>
[31] Fix | Delete
<td><!-- Deliberately empty to support consistent sizing and layout across multiple email clients. --></td>
[32] Fix | Delete
<td class="summary-content-inner" align="center" valign="top" width="600">
[33] Fix | Delete
<div class="summary-header" width="100%">
[34] Fix | Delete
<h6 class="greeting"><?php esc_html_e( 'Hi there!', 'wpforms-lite' ); ?></h6>
[35] Fix | Delete
<p><?php esc_html_e( 'Let’s see how your forms performed in the past week.', 'wpforms-lite' ); ?></p>
[36] Fix | Delete
<?php if ( ! wpforms()->is_pro() ) : ?>
[37] Fix | Delete
<p class="lite-disclaimer">
[38] Fix | Delete
<?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' ); ?>
[39] Fix | Delete
</p>
[40] Fix | Delete
[41] Fix | Delete
<?php if ( LiteConnect::is_enabled() ) : ?>
[42] Fix | Delete
<p class="lite-disclaimer">
[43] Fix | Delete
<strong><?php esc_html_e( 'We’ve got you covered!', 'wpforms-lite' ); ?></strong><br/>
[44] Fix | Delete
<?php
[45] Fix | Delete
printf(
[46] Fix | Delete
wp_kses( /* translators: %1$s - WPForms.com Upgrade page URL. */
[47] Fix | Delete
__( 'Your entries are being backed up securely in the cloud. When you’re ready to manage your entries inside WordPress, just <a href="%1$s" target="_blank" rel="noopener noreferrer">upgrade to Pro</a> and we’ll automatically import them in seconds!', 'wpforms-lite' ),
[48] Fix | Delete
[
[49] Fix | Delete
'a' => [
[50] Fix | Delete
'href' => [],
[51] Fix | Delete
'rel' => [],
[52] Fix | Delete
'target' => [],
[53] Fix | Delete
],
[54] Fix | Delete
]
[55] Fix | Delete
),
[56] Fix | Delete
esc_url( wpforms_utm_link( 'https://wpforms.com/lite-upgrade/', 'Weekly Summary Email', 'Upgrade' ) )
[57] Fix | Delete
);
[58] Fix | Delete
?>
[59] Fix | Delete
</p>
[60] Fix | Delete
<p class="lite-disclaimer">
[61] Fix | Delete
<?php
[62] Fix | Delete
printf(
[63] Fix | Delete
'<a href="%1$s" target="_blank" rel="noopener noreferrer"><strong>%2$s</strong></a>',
[64] Fix | Delete
esc_url( wpforms_utm_link( 'https://wpforms.com/lite-upgrade/', 'Weekly Summary Email', 'Upgrade' ) ),
[65] Fix | Delete
esc_html__( 'Check out what else you’ll get with your Pro license.', 'wpforms-lite' )
[66] Fix | Delete
);
[67] Fix | Delete
?>
[68] Fix | Delete
</p>
[69] Fix | Delete
<?php else : ?>
[70] Fix | Delete
<p class="lite-disclaimer">
[71] Fix | Delete
<strong><?php esc_html_e( 'Note: Entry backups are not enabled.', 'wpforms-lite' ); ?></strong><br/>
[72] Fix | Delete
<?php esc_html_e( 'We recommend that you enable entry backups to guard against lost entries.', 'wpforms-lite' ); ?>
[73] Fix | Delete
</p>
[74] Fix | Delete
<p class="lite-disclaimer">
[75] Fix | Delete
<?php
[76] Fix | Delete
printf(
[77] Fix | Delete
wp_kses( /* translators: %1$s - WPForms.com Documentation page URL. */
[78] Fix | Delete
__( 'Backups are completely free, 100%% secure, and you can turn them on in a few clicks! <a href="%1$s" target="_blank" rel="noopener noreferrer">Enable entry backups now.</a>', 'wpforms-lite' ),
[79] Fix | Delete
[
[80] Fix | Delete
'a' => [
[81] Fix | Delete
'href' => [],
[82] Fix | Delete
'rel' => [],
[83] Fix | Delete
'target' => [],
[84] Fix | Delete
],
[85] Fix | Delete
]
[86] Fix | Delete
),
[87] Fix | Delete
esc_url( wpforms_utm_link( 'https://wpforms.com/docs/how-to-use-lite-connect-for-wpforms/', 'Weekly Summary Email', 'Documentation#backup-with-lite-connect' ) )
[88] Fix | Delete
);
[89] Fix | Delete
?>
[90] Fix | Delete
</p>
[91] Fix | Delete
<p class="lite-disclaimer">
[92] Fix | Delete
<?php
[93] Fix | Delete
printf(
[94] Fix | Delete
wp_kses( /* translators: %1$s - WPForms.com Upgrade page URL. */
[95] Fix | Delete
__( 'When you’re ready to manage your entries inside WordPress, <a href="%1$s" target="_blank" rel="noopener noreferrer">upgrade to Pro</a> to import your entries.', 'wpforms-lite' ),
[96] Fix | Delete
[
[97] Fix | Delete
'a' => [
[98] Fix | Delete
'href' => [],
[99] Fix | Delete
'rel' => [],
[100] Fix | Delete
'target' => [],
[101] Fix | Delete
],
[102] Fix | Delete
]
[103] Fix | Delete
),
[104] Fix | Delete
esc_url( wpforms_utm_link( 'https://wpforms.com/lite-upgrade/', 'Weekly Summary Email', 'Upgrade' ) )
[105] Fix | Delete
);
[106] Fix | Delete
?>
[107] Fix | Delete
</p>
[108] Fix | Delete
<?php endif; ?>
[109] Fix | Delete
<?php endif; ?>
[110] Fix | Delete
</div>
[111] Fix | Delete
<div class="email-summaries-overview-wrapper" width="100%">
[112] Fix | Delete
<?php if ( isset( $overview['total'] ) ) : ?>
[113] Fix | Delete
<table class="email-summaries-overview" border="0" cellpadding="0" cellspacing="0" width="100%" role="presentation" bgcolor="#f8f8f8">
[114] Fix | Delete
<tbody>
[115] Fix | Delete
<tr>
[116] Fix | Delete
<td class="overview-icon" valign="top">
[117] Fix | Delete
<img src="<?php echo esc_url( $icons['overview'] ); ?>" width="52" height="52" alt="<?php esc_attr_e( 'Overview', 'wpforms-lite' ); ?>" />
[118] Fix | Delete
</td>
[119] Fix | Delete
<td class="overview-stats" valign="top">
[120] Fix | Delete
<h5>
[121] Fix | Delete
<?php
[122] Fix | Delete
printf(
[123] Fix | Delete
/* translators: %1$d - number of entries. */
[124] Fix | Delete
esc_html__( '%1$d Total', 'wpforms-lite' ),
[125] Fix | Delete
absint( $overview['total'] )
[126] Fix | Delete
);
[127] Fix | Delete
?>
[128] Fix | Delete
</h5>
[129] Fix | Delete
<p>
[130] Fix | Delete
<?php echo wp_kses( _n( 'Entry This Week', 'Entries This Week', absint( $overview['total'] ), 'wpforms-lite' ), [] ); ?>
[131] Fix | Delete
</p>
[132] Fix | Delete
</td>
[133] Fix | Delete
<?php if ( isset( $overview['trends'] ) ) : ?>
[134] Fix | Delete
<td class="summary-trend">
[135] Fix | Delete
<table class="trend-<?php echo esc_attr( (int) $overview['trends'] < 0 ? 'downward' : 'upward' ); ?>" border="0" cellpadding="0" cellspacing="0" width="100%" role="presentation">
[136] Fix | Delete
<tr valign="middle">
[137] Fix | Delete
<td valign="middle">
[138] Fix | Delete
<img src="<?php echo esc_url( $icons[ (int) $overview['trends'] < 0 ? 'downward' : 'upward' ] ); ?>" width="14" height="18" alt="<?php echo esc_attr( (int) $overview['trends'] < 0 ? 'downward' : 'upward' ); ?>" />
[139] Fix | Delete
</td>
[140] Fix | Delete
<td dir="ltr" valign="middle">
[141] Fix | Delete
<?php echo esc_html( $overview['trends'] ); ?>
[142] Fix | Delete
</td>
[143] Fix | Delete
</tr>
[144] Fix | Delete
</table>
[145] Fix | Delete
</td>
[146] Fix | Delete
<?php endif; ?>
[147] Fix | Delete
</tr>
[148] Fix | Delete
</tbody>
[149] Fix | Delete
</table>
[150] Fix | Delete
<?php endif; ?>
[151] Fix | Delete
</div>
[152] Fix | Delete
<div class="email-summaries-wrapper" width="100%">
[153] Fix | Delete
<table class="email-summaries" border="0" cellpadding="0" cellspacing="0" width="100%" role="presentation">
[154] Fix | Delete
<thead>
[155] Fix | Delete
<tr>
[156] Fix | Delete
<th align="<?php echo is_rtl() ? 'right' : 'left'; ?>" valign="top"><?php esc_html_e( 'Form', 'wpforms-lite' ); ?></th>
[157] Fix | Delete
<th class="entries-column" align="<?php echo is_rtl() ? 'right' : 'left'; ?>" valign="top" colspan="2"><?php esc_html_e( 'Entries', 'wpforms-lite' ); ?></th>
[158] Fix | Delete
</tr>
[159] Fix | Delete
</thead>
[160] Fix | Delete
<tbody>
[161] Fix | Delete
<?php foreach ( $entries as $row ) : ?>
[162] Fix | Delete
<tr id="form-<?php echo esc_attr( $row['form_id'] ); ?>">
[163] Fix | Delete
<td class="form-name" valign="middle"><?php echo isset( $row['title'] ) ? esc_html( $row['title'] ) : ''; ?></td>
[164] Fix | Delete
<td class="entry-count" align="center" valign="middle">
[165] Fix | Delete
<?php if ( empty( $row['edit_url'] ) ) : ?>
[166] Fix | Delete
<span>
[167] Fix | Delete
<?php echo isset( $row['count'] ) ? absint( $row['count'] ) : ''; ?>
[168] Fix | Delete
</span>
[169] Fix | Delete
<?php else : ?>
[170] Fix | Delete
<a href="<?php echo esc_url( $row['edit_url'] ); ?>">
[171] Fix | Delete
<?php echo isset( $row['count'] ) ? absint( $row['count'] ) : ''; ?>
[172] Fix | Delete
</a>
[173] Fix | Delete
<?php endif; ?>
[174] Fix | Delete
</td>
[175] Fix | Delete
<?php if ( $has_trends ) : ?>
[176] Fix | Delete
<td class="summary-trend" align="center" valign="middle">
[177] Fix | Delete
<?php if ( isset( $row['trends'] ) ) : ?>
[178] Fix | Delete
<table class="trend-<?php echo esc_attr( (int) $row['trends'] < 0 ? 'downward' : 'upward' ); ?>" border="0" cellpadding="0" cellspacing="0" width="100%" role="presentation">
[179] Fix | Delete
<tr valign="middle">
[180] Fix | Delete
<td valign="middle">
[181] Fix | Delete
<img src="<?php echo esc_url( $icons[ (int) $row['trends'] < 0 ? 'downward' : 'upward' ] ); ?>" width="10" height="13" alt="<?php echo esc_attr( (int) $row['trends'] < 0 ? 'downward' : 'upward' ); ?>" />
[182] Fix | Delete
</td>
[183] Fix | Delete
<td dir="ltr" valign="middle">
[184] Fix | Delete
<?php echo esc_html( $row['trends'] ); ?>
[185] Fix | Delete
</td>
[186] Fix | Delete
</tr>
[187] Fix | Delete
</table>
[188] Fix | Delete
<?php else : ?>
[189] Fix | Delete
&mdash;
[190] Fix | Delete
<?php endif; ?>
[191] Fix | Delete
</td>
[192] Fix | Delete
<?php endif; ?>
[193] Fix | Delete
</tr>
[194] Fix | Delete
<?php endforeach; ?>
[195] Fix | Delete
[196] Fix | Delete
<?php if ( empty( $entries ) ) : ?>
[197] Fix | Delete
<tr>
[198] Fix | Delete
<td colspan="3">
[199] Fix | Delete
<?php esc_html_e( 'It appears you do not have any form entries yet.', 'wpforms-lite' ); ?>
[200] Fix | Delete
</td>
[201] Fix | Delete
</tr>
[202] Fix | Delete
<?php endif; ?>
[203] Fix | Delete
</tbody>
[204] Fix | Delete
</table>
[205] Fix | Delete
</div>
[206] Fix | Delete
</td>
[207] Fix | Delete
<td><!-- Deliberately empty to support consistent sizing and layout across multiple email clients. --></td>
[208] Fix | Delete
</tr>
[209] Fix | Delete
</tbody>
[210] Fix | Delete
</table>
[211] Fix | Delete
</td>
[212] Fix | Delete
</tr>
[213] Fix | Delete
<?php if ( ! empty( $notification_block ) ) : ?>
[214] Fix | Delete
<tr class="summary-notice" align="center">
[215] Fix | Delete
<td class="summary-notification-block" bgcolor="#edf3f7">
[216] Fix | Delete
<table class="summary-notification-table summary-notification-table" border="0" cellpadding="0" cellspacing="0" width="100%" role="presentation">
[217] Fix | Delete
<tbody>
[218] Fix | Delete
<?php if ( ! empty( $icons['notification_block'] ) ) : ?>
[219] Fix | Delete
<tr>
[220] Fix | Delete
<td class="summary-notice-icon" align="center" valign="middle">
[221] Fix | Delete
<img src="<?php echo esc_url( $icons['notification_block'] ); ?>" width="52" height="52" alt="<?php esc_attr_e( 'Notification', 'wpforms-lite' ); ?>" />
[222] Fix | Delete
</td>
[223] Fix | Delete
</tr>
[224] Fix | Delete
<?php endif; ?>
[225] Fix | Delete
<?php if ( ! empty( $notification_block['title'] ) || ! empty( $notification_block['content'] ) ) : ?>
[226] Fix | Delete
<tr>
[227] Fix | Delete
<td class="summary-notice-content" align="center" valign="middle">
[228] Fix | Delete
<?php if ( ! empty( $notification_block['title'] ) ) : ?>
[229] Fix | Delete
<h4><?php echo esc_html( $notification_block['title'] ); ?></h4>
[230] Fix | Delete
<?php endif; ?>
[231] Fix | Delete
<?php if ( ! empty( $notification_block['content'] ) ) : ?>
[232] Fix | Delete
<p><?php echo wp_kses_post( $notification_block['content'] ); ?></p>
[233] Fix | Delete
<?php endif; ?>
[234] Fix | Delete
</td>
[235] Fix | Delete
</tr>
[236] Fix | Delete
<?php endif; ?>
[237] Fix | Delete
[238] Fix | Delete
<?php if ( ! empty( $notification_block['btns'] ) ) : ?>
[239] Fix | Delete
<tr>
[240] Fix | Delete
<td class="button-container" align="center" valign="middle">
[241] Fix | Delete
<table class="button-wrapper" cellspacing="24">
[242] Fix | Delete
<tr>
[243] Fix | Delete
<?php if ( ! empty( $notification_block['btns']['main']['url'] ) && ! empty( $notification_block['btns']['main']['text'] ) ) : ?>
[244] Fix | Delete
<td class="button button-blue" align="center" border="1" valign="middle">
[245] Fix | Delete
<a href="<?php echo esc_url( $notification_block['btns']['main']['url'] ); ?>" class="button-link" rel="noopener noreferrer" target="_blank" bgcolor="#036aab">
[246] Fix | Delete
<?php echo esc_html( $notification_block['btns']['main']['text'] ); ?>
[247] Fix | Delete
</a>
[248] Fix | Delete
</td>
[249] Fix | Delete
<?php endif; ?>
[250] Fix | Delete
<?php if ( ! empty( $notification_block['btns']['alt']['url'] ) && ! empty( $notification_block['btns']['alt']['text'] ) ) : ?>
[251] Fix | Delete
<td class="button button-blue-outline" align="center" border="1" valign="middle">
[252] Fix | Delete
<a href="<?php echo esc_url( $notification_block['btns']['alt']['url'] ); ?>" class="button-link" rel="noopener noreferrer" target="_blank" bgcolor="#edf3f7">
[253] Fix | Delete
<?php echo esc_html( $notification_block['btns']['alt']['text'] ); ?>
[254] Fix | Delete
</a>
[255] Fix | Delete
</td>
[256] Fix | Delete
<?php endif; ?>
[257] Fix | Delete
</tr>
[258] Fix | Delete
</table>
[259] Fix | Delete
</td>
[260] Fix | Delete
</tr>
[261] Fix | Delete
<?php endif; ?>
[262] Fix | Delete
</tbody>
[263] Fix | Delete
</table>
[264] Fix | Delete
</td>
[265] Fix | Delete
</tr>
[266] Fix | Delete
<?php endif; ?>
[267] Fix | Delete
<?php if ( ! empty( $info_block ) ) : ?>
[268] Fix | Delete
<?php if ( ! empty( $notification_block ) ) : ?>
[269] Fix | Delete
<tr><td class="summary-notice-divider" height="1">&nbsp;</td></tr>
[270] Fix | Delete
<?php endif; ?>
[271] Fix | Delete
<tr class="summary-notice" align="center">
[272] Fix | Delete
<td class="summary-info-block" bgcolor="#f7f0ed">
[273] Fix | Delete
<table class="summary-info-table summary-notice-table" border="0" cellpadding="0" cellspacing="0" width="100%" role="presentation">
[274] Fix | Delete
<tbody>
[275] Fix | Delete
<?php if ( ! empty( $icons['info_block'] ) ) : ?>
[276] Fix | Delete
<tr>
[277] Fix | Delete
<td class="summary-notice-icon" align="center" valign="middle">
[278] Fix | Delete
<img src="<?php echo esc_url( $icons['info_block'] ); ?>" width="52" height="52" alt="<?php esc_attr_e( 'Info', 'wpforms-lite' ); ?>" />
[279] Fix | Delete
</td>
[280] Fix | Delete
</tr>
[281] Fix | Delete
<?php endif; ?>
[282] Fix | Delete
<?php if ( ! empty( $info_block['title'] ) || ! empty( $info_block['content'] ) ) : ?>
[283] Fix | Delete
<tr>
[284] Fix | Delete
<td class="summary-notice-content" align="center" valign="middle">
[285] Fix | Delete
<?php if ( ! empty( $info_block['title'] ) ) : ?>
[286] Fix | Delete
<h4><?php echo esc_html( $info_block['title'] ); ?></h4>
[287] Fix | Delete
<?php endif; ?>
[288] Fix | Delete
<?php if ( ! empty( $info_block['content'] ) ) : ?>
[289] Fix | Delete
<p><?php echo wp_kses_post( $info_block['content'] ); ?></p>
[290] Fix | Delete
<?php endif; ?>
[291] Fix | Delete
</td>
[292] Fix | Delete
</tr>
[293] Fix | Delete
<?php endif; ?>
[294] Fix | Delete
[295] Fix | Delete
<?php if ( ! empty( $info_block['url'] ) && ! empty( $info_block['button'] ) ) : ?>
[296] Fix | Delete
<tr>
[297] Fix | Delete
<td class="button-container" align="center" valign="middle">
[298] Fix | Delete
<table class="button-wrapper" cellspacing="24">
[299] Fix | Delete
<tr>
[300] Fix | Delete
<td class="button button-orange" align="center" border="1" valign="middle">
[301] Fix | Delete
<a href="<?php echo esc_url( $info_block['url'] ); ?>" class="button-link" rel="noopener noreferrer" target="_blank" bgcolor="#e27730">
[302] Fix | Delete
<?php echo esc_html( $info_block['button'] ); ?>
[303] Fix | Delete
</a>
[304] Fix | Delete
</td>
[305] Fix | Delete
</tr>
[306] Fix | Delete
</table>
[307] Fix | Delete
</td>
[308] Fix | Delete
</tr>
[309] Fix | Delete
<?php endif; ?>
[310] Fix | Delete
</tbody>
[311] Fix | Delete
</table>
[312] Fix | Delete
</td>
[313] Fix | Delete
</tr>
[314] Fix | Delete
<?php endif; ?>
[315] Fix | Delete
</tbody>
[316] Fix | Delete
</table>
[317] Fix | Delete
[318] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function