PluginProbe
Hustle – Email Marketing, Lead Generation, Optins, Popups / 7.8.14.2
Hustle – Email Marketing, Lead Generation, Optins, Popups v7.8.14.2
7.8.14.2 7.8.14 7.8.14.1 7.8.13 7.8.13.1 trunk 3.0 3.1 3.1.1 3.1.2 3.1.3 3.1.4 4.3.2 4.4.4 4.4.5 4.4.5.1 4.4.5.4 4.6 4.6.1.1 4.6.1.4 4.7.0.2 4.7.0.3 4.7.0.7 4.7.0.9 4.7.1.0 All 103 releases
wordpress-popup / views / admin / dashboard / components / sui-summary.php
sui-summary.php
65 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 * SUI Summary
4 *
5 * @package Hustle
6 * @since 4.3.0
7 */
8
9 ?>
10
11 <h2 class="sui-screen-reader-text"><?php esc_html_e( 'Quick Summary', 'hustle' ); ?></h2>
12
13 <div class="<?php echo esc_attr( implode( ' ', $sui['summary']['classes'] ) ); ?>">
14
15 <div class="sui-summary-image-space" style="<?php echo esc_attr( $sui['summary']['style'] ); ?>" aria-hidden="true"></div>
16
17 <div class="sui-summary-segment">
18
19 <div class="sui-summary-details">
20
21 <?php /* translators: 1. Plugin name 2. Active modules total number */ ?>
22 <p class="sui-screen-reader-text"><?php echo esc_html( sprintf( __( '%1$s has %2$s active modules', 'hustle' ), Opt_In_Utils::get_plugin_name(), esc_attr( $active_modules ) ) ); ?></p>
23
24 <span class="sui-summary-large" aria-hidden="true"><?php echo esc_html( $active_modules ); ?></span>
25 <span class="sui-summary-sub" aria-hidden="true"><?php esc_html_e( 'Active Modules', 'hustle' ); ?></span>
26
27 <?php if ( Hustle_Settings_Admin::global_tracking() ) { ?>
28 <?php /* translators: active modules total number */ ?>
29 <p class="sui-screen-reader-text"><?php printf( esc_html__( 'Last conversion: %s', 'hustle' ), esc_html( $last_conversion ) ); ?></p>
30
31 <span class="sui-summary-detail" aria-hidden="true"><?php echo esc_html( $last_conversion ); ?></span>
32 <span class="sui-summary-sub" aria-hidden="true"><?php esc_html_e( 'Last Conversion', 'hustle' ); ?></span>
33 <?php } ?>
34
35 </div>
36
37 </div>
38
39 <div class="sui-summary-segment">
40
41 <?php if ( is_array( $metrics ) && ! empty( $metrics ) ) : ?>
42
43 <ul class="sui-list">
44
45 <?php foreach ( $metrics as $key => $data ) : ?>
46
47 <li class="hustle-<?php echo esc_attr( $key ); ?>">
48 <span class="sui-list-label"><?php echo esc_html( $data['label'] ); ?></span>
49 <span class="sui-list-detail"><?php echo wp_kses_post( $data['value'] ); ?></span>
50 </li>
51
52 <?php endforeach; ?>
53
54 </ul>
55
56 <?php else : ?>
57
58 <p class="sui-description" aria-hidden="true"><?php esc_html_e( 'No data to display.', 'hustle' ); ?></p>
59
60 <?php endif; ?>
61
62 </div>
63
64 </div>
65