PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.32.1
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.32.1
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
formidable / classes / views / summary-emails / stats.php

stats.php in Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More 6.32.1, at classes/views/summary-emails/stats.php

122 lines 4.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Template for stats email
4 *
5 * @since 6.7
6 *
7 * @package Formidable
8 *
9 * @var array $args Content args.
10 */
11
12 if ( ! defined( 'ABSPATH' ) ) {
13 die( 'You are not allowed to call this page directly.' );
14 }
15 ?>
16
17 <div style="padding-top: 1.375em;">
18 <!-- Header section -->
19 <div style="<?php echo esc_attr( FrmEmailSummaryHelper::get_section_style( '' ) ); ?>">
20 <h1 style="font-size: 2.5em; line-height: 1.2em; margin: 0 0 32px;"><?php echo esc_html( $args['subject'] ); ?></h1>
21
22 <div style="line-height: 1.5; color: #475467;">
23 <?php echo esc_html( FrmAppHelper::get_formatted_time( $args['from_date'] ) ); ?> - <?php echo esc_html( FrmAppHelper::get_formatted_time( $args['to_date'] ) ); ?> &middot; <a style="color: #475467;" href="<?php echo esc_url( $args['site_url'] ); ?>" title=""><?php echo esc_url( $args['site_url_display'] ); ?></a>
24 </div>
25 </div>
26
27 <!-- Overall section -->
28 <div style="<?php echo esc_attr( FrmEmailSummaryHelper::get_section_style() ); ?>">
29 <?php FrmEmailSummaryHelper::section_heading_with_icon( 'chart', __( 'Statistics', 'formidable' ) ); ?>
30
31 <table width="100%" cellspacing="0" cellpadding="0">
32 <tr>
33 <?php
34 foreach ( $args['stats'] as $stat ) {
35 ?>
36 <td style="padding:0 0.375em;">
37 <div style="line-height: 1.5; margin-bottom: 0.375em;"><?php echo esc_html( $stat['label'] ); ?></div>
38 <div>
39 <strong style="font-size: 1.5em; line-height: 1; vertical-align: text-top;">
40 <?php echo isset( $stat['display'] ) ? esc_html( $stat['display'] ) : intval( $stat['count'] ); ?>
41 </strong>
42 <?php FrmEmailSummaryHelper::show_comparison( $stat['compare'] ); ?>
43 </div>
44 </td>
45 <?php
46 }
47 ?>
48 </tr>
49 </table>
50
51 <?php if ( ! empty( $args['dashboard_url'] ) ) : ?>
52 <a
53 href="<?php echo esc_url( $args['dashboard_url'] ); ?>"
54 style="<?php echo esc_attr( FrmEmailSummaryHelper::get_button_style( true ) ); ?>"
55 ><?php esc_html_e( 'Open Dashboard', 'formidable' ); ?></a>
56 <?php endif; ?>
57 </div>
58
59 <?php if ( $args['top_forms'] ) : ?>
60 <!-- Top forms section -->
61 <div style="<?php echo esc_attr( FrmEmailSummaryHelper::get_section_style() ); ?>">
62 <?php FrmEmailSummaryHelper::section_heading_with_icon( 'trophy', $args['top_forms_label'] ); ?>
63
64 <table width="100%" cellspacing="0" cellpadding="0">
65 <tr style="font-size: 0.75em; font-weight: 500; line-height: 2; text-transform: uppercase;">
66 <th align="left" style=""><?php esc_html_e( 'Form name', 'formidable' ); ?></th>
67 <th align="right" style=""><?php esc_html_e( 'Submissions', 'formidable' ); ?></th>
68 </tr>
69
70 <?php
71 foreach ( $args['top_forms'] as $index => $top_form ) {
72 ?>
73 <tr>
74 <td align="left" style="padding: 1em 0.33em 0.28em 0"><?php echo intval( $index + 1 ); ?>. <?php echo esc_html( $top_form->form_name ); ?></td>
75 <td align="right" style="padding: 1em 0 0.28em;"><?php echo intval( $top_form->items_count ); ?></td>
76 </tr>
77 <?php
78 }
79 ?>
80 </table>
81 </div>
82 <?php endif; ?>
83
84 <?php if ( ! empty( $args['inbox_msg'] ) ) : ?>
85 <!-- Inbox notice section -->
86 <div style="<?php echo esc_attr( FrmEmailSummaryHelper::get_section_style() ); ?>">
87 <?php FrmEmailSummaryHelper::section_heading_with_icon( 'speaker', $args['inbox_msg']['subject'] ); ?>
88
89 <div style="line-height: 1.5;">
90 <?php echo wp_kses_post( wpautop( $args['inbox_msg']['message'] ) ); ?>
91 </div>
92
93 <?php if ( ! empty( $args['inbox_msg']['cta'] ) ) : ?>
94 <p>
95 <?php echo wp_kses_post( FrmEmailSummaryHelper::process_inbox_cta_button( $args['inbox_msg']['cta'] ) ); ?>
96 </p>
97 <?php endif; ?>
98 </div>
99 <?php endif; ?>
100
101 <?php if ( ! empty( $args['out_of_date_plugins'] ) ) : ?>
102 <div style="<?php echo esc_attr( FrmEmailSummaryHelper::get_section_style() ); ?>">
103 <?php FrmEmailSummaryHelper::section_heading_with_icon( 'notice', __( 'Out of date plugins', 'formidable' ) ); ?>
104
105 <p style="line-height: 1.5;">
106 <?php
107 printf(
108 // translators: the list of out-of-date plugins.
109 esc_html__( 'The following plugins are out of date: %s', 'formidable' ),
110 '<span style="font-style: italic;">' . esc_html( implode( ', ', $args['out_of_date_plugins'] ) ) . '</span>'
111 );
112 ?>
113 </p>
114
115 <a
116 href="<?php echo esc_url( $args['plugins_url'] ); ?>"
117 style="<?php echo esc_attr( FrmEmailSummaryHelper::get_button_style( true ) ); ?>"
118 ><?php esc_html_e( 'Update', 'formidable' ); ?></a>
119 </div>
120 <?php endif; ?>
121 </div>
122