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/clone/wp-conte.../plugins/wpforms-.../template.../emails
File: summary-body-plain.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Email Summary body template (plain text).
[2] Fix | Delete
*
[3] Fix | Delete
* This template can be overridden by copying it to yourtheme/wpforms/emails/summary-body-plain.php.
[4] Fix | Delete
*
[5] Fix | Delete
* @since 1.5.4
[6] Fix | Delete
* @since 1.8.8 Added `$overview`, and `$notification_block` 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 array $notification_block Notification block shown before the Info block.
[11] Fix | Delete
* @var array $info_block Info block shown at the end of the email.
[12] Fix | Delete
*/
[13] Fix | Delete
[14] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) {
[15] Fix | Delete
exit;
[16] Fix | Delete
}
[17] Fix | Delete
[18] Fix | Delete
// Used to separate strings in the email.
[19] Fix | Delete
$separator = ' | ';
[20] Fix | Delete
[21] Fix | Delete
echo esc_html__( 'Hi there!', 'wpforms-lite' ) . "\n\n";
[22] Fix | Delete
[23] Fix | Delete
echo esc_html__( 'Let’s see how your forms performed in the past week.', 'wpforms-lite' ) . "\n\n";
[24] Fix | Delete
[25] Fix | Delete
if ( ! wpforms()->is_pro() ) {
[26] Fix | Delete
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";
[27] Fix | Delete
echo esc_html__( 'To view future entries inside your WordPress dashboard, and get more detailed reports, consider upgrading to Pro:', 'wpforms-lite' );
[28] Fix | Delete
echo '&nbsp;';
[29] Fix | Delete
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() );
[30] Fix | Delete
echo "\n\n\n";
[31] Fix | Delete
}
[32] Fix | Delete
[33] Fix | Delete
if ( isset( $overview['total'] ) ) {
[34] Fix | Delete
echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n";
[35] Fix | Delete
printf( /* translators: %1$d - number of entries. */
[36] Fix | Delete
esc_html__( '%1$d Total', 'wpforms-lite' ),
[37] Fix | Delete
absint( $overview['total'] )
[38] Fix | Delete
);
[39] Fix | Delete
[40] Fix | Delete
if ( isset( $overview['trends'] ) ) {
[41] Fix | Delete
echo esc_html( $separator ) . ( (int) $overview['trends'] >= 0 ? '↑' : '↓' ) . esc_html( $overview['trends'] ) . "\n\n";
[42] Fix | Delete
echo wp_kses( _n( 'Entry This Week', 'Entries This Week', absint( $overview['total'] ), 'wpforms-lite' ), [] );
[43] Fix | Delete
}
[44] Fix | Delete
[45] Fix | Delete
echo "\n\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n";
[46] Fix | Delete
}
[47] Fix | Delete
[48] Fix | Delete
echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n";
[49] Fix | Delete
[50] Fix | Delete
echo esc_html__( 'Form', 'wpforms-lite' ) . esc_html( $separator ) . esc_html__( 'Entries', 'wpforms-lite' );
[51] Fix | Delete
[52] Fix | Delete
echo "\n\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n";
[53] Fix | Delete
[54] Fix | Delete
foreach ( $entries as $row ) {
[55] Fix | Delete
echo ( isset( $row['title'] ) ? esc_html( $row['title'] ) : '' ) . esc_html( $separator ) . ( isset( $row['count'] ) ? absint( $row['count'] ) : '' );
[56] Fix | Delete
[57] Fix | Delete
if ( isset( $row['trends'] ) ) {
[58] Fix | Delete
echo esc_html( $separator ) . ( (int) $row['trends'] >= 0 ? '↑' : '↓' ) . esc_html( $row['trends'] );
[59] Fix | Delete
}
[60] Fix | Delete
[61] Fix | Delete
echo "\n\n";
[62] Fix | Delete
}
[63] Fix | Delete
[64] Fix | Delete
if ( empty( $entries ) ) {
[65] Fix | Delete
echo esc_html__( 'It appears you do not have any form entries yet.', 'wpforms-lite' ) . "\n\n";
[66] Fix | Delete
}
[67] Fix | Delete
[68] Fix | Delete
if ( ! empty( $notification_block ) ) {
[69] Fix | Delete
echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n\n";
[70] Fix | Delete
[71] Fix | Delete
if ( ! empty( $notification_block['title'] ) ) {
[72] Fix | Delete
echo esc_html( $notification_block['title'] ) . "\n\n";
[73] Fix | Delete
}
[74] Fix | Delete
[75] Fix | Delete
if ( ! empty( $notification_block['content'] ) ) {
[76] Fix | Delete
echo wp_kses_post( $notification_block['content'] ) . "\n\n";
[77] Fix | Delete
}
[78] Fix | Delete
[79] Fix | Delete
if ( ! empty( $notification_block['btns']['main']['url'] ) && ! empty( $notification_block['btns']['main']['text'] ) ) {
[80] Fix | Delete
echo esc_html( $notification_block['btns']['main']['text'] ) . ': ' . esc_url( $notification_block['btns']['main']['url'] ) . "\n\n";
[81] Fix | Delete
}
[82] Fix | Delete
[83] Fix | Delete
if ( ! empty( $notification_block['btns']['alt']['url'] ) && ! empty( $notification_block['btns']['alt']['text'] ) ) {
[84] Fix | Delete
echo esc_html( $notification_block['btns']['alt']['text'] ) . ': ' . esc_url( $notification_block['btns']['alt']['url'] ) . "\n\n";
[85] Fix | Delete
}
[86] Fix | Delete
}
[87] Fix | Delete
[88] Fix | Delete
echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n\n";
[89] Fix | Delete
[90] Fix | Delete
if ( ! empty( $info_block['title'] ) ) {
[91] Fix | Delete
echo esc_html( $info_block['title'] ) . "\n\n";
[92] Fix | Delete
}
[93] Fix | Delete
[94] Fix | Delete
if ( ! empty( $info_block['content'] ) ) {
[95] Fix | Delete
echo wp_kses_post( $info_block['content'] ) . "\n\n";
[96] Fix | Delete
}
[97] Fix | Delete
[98] Fix | Delete
if ( ! empty( $info_block['button'] ) && ! empty( $info_block['url'] ) ) {
[99] Fix | Delete
echo esc_html( $info_block['button'] ) . ': ' . esc_url( $info_block['url'] ) . "\n\n";
[100] Fix | Delete
}
[101] Fix | Delete
[102] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function