PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.10
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.10
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-plain.php

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

69 lines 2.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Template for plain text stats email
4 *
5 * @since 6.7
6 * @package Formidable
7 *
8 * @var array $args Content args.
9 */
10
11 if ( ! defined( 'ABSPATH' ) ) {
12 die( 'You are not allowed to call this page directly.' );
13 }
14
15 FrmEmailSummaryHelper::plain_text_echo( $args['subject'] );
16
17 echo "\r\n\r\n";
18
19 FrmEmailSummaryHelper::plain_text_echo( FrmAppHelper::get_formatted_time( $args['from_date'] ) . ' - ' . FrmAppHelper::get_formatted_time( $args['to_date'] ) . ' - ' . esc_url_raw( $args['site_url'] ) );
20
21 echo "\r\n\r\n";
22
23 FrmEmailSummaryHelper::plain_text_echo( __( 'Statistics', 'formidable' ) );
24
25 echo "\r\n\r\n";
26
27 foreach ( $args['stats'] as $stat ) {
28 FrmEmailSummaryHelper::plain_text_echo( $stat['label'] . ': ' . ( isset( $stat['display'] ) ? $stat['display'] : intval( $stat['count'] ) ) . "\r\n" );
29 }
30
31 echo "\r\n";
32
33 if ( ! empty( $args['dashboard_url'] ) ) {
34 FrmEmailSummaryHelper::plain_text_echo( __( 'Go to Dashboard:', 'formidable' ) );
35 echo ' ' . esc_url_raw( $args['dashboard_url'] ) . "\r\n\r\n";
36 }
37
38 if ( $args['top_forms'] ) {
39 FrmEmailSummaryHelper::plain_text_echo( $args['top_forms_label'] );
40
41 echo "\r\n\r\n";
42
43 foreach ( $args['top_forms'] as $top_form ) {
44 FrmEmailSummaryHelper::plain_text_echo( $top_form->form_name );
45 echo ': ';
46
47 // translators: submission count.
48 $submissions_count = sprintf( _n( '%s submission', '%s submissions', $top_form->items_count, 'formidable' ), intval( number_format_i18n( $top_form->items_count ) ) );
49 FrmEmailSummaryHelper::plain_text_echo( $submissions_count );
50 unset( $submissions_count );
51 echo "\r\n";
52 }
53
54 echo "\r\n";
55 }
56
57 if ( ! empty( $args['out_of_date_plugins'] ) ) {
58 FrmEmailSummaryHelper::plain_text_echo(
59 sprintf(
60 // translators: the list of out-of-date plugins.
61 __( 'The following plugins are out of date: %s', 'formidable' ),
62 implode( ', ', $args['out_of_date_plugins'] )
63 )
64 );
65 echo "\r\n";
66 FrmEmailSummaryHelper::plain_text_echo( __( 'Please go to your Plugins page to update them.', 'formidable' ) );
67 echo "\r\n\r\n";
68 }
69