1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
|
<?php /** * Email Summary body template. * * This template can be overridden by copying it to yourtheme/wpforms/emails/summary-body.php. * * @since 1.5.4 * * @version 1.5.4 * * @var array $entries * @var array $info_block */
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()->pro ) : ?> <p class="large"><?php \esc_html_e( 'Let’s see how your forms performed in the past week.', 'wpforms-lite' ); ?></p> <?php else : ?> <p class="large"><?php \esc_html_e( 'Let’s 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 actual entries are not stored in WPForms Lite. To generate detailed reports and view future entries inside your WordPress dashboard, consider upgrading to Pro.', 'wpforms-lite' ); ?> </p> <?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>
|