PluginProbe ʕ •ᴥ•ʔ
Hustle – Email Marketing, Lead Generation, Optins, Popups / 7.8.9
Hustle – Email Marketing, Lead Generation, Optins, Popups v7.8.9
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 4.7.1.1 4.8.0.0 5.0.0 5.0.1 5.0.1.1 5.0.1.2 5.1 5.1.1 5.1.2 5.1.3 5.1.3.1 5.1.3.2 5.1.4 5.1.5 6.0 6.0.1 6.0.2 6.0.3 6.0.4.2 6.0.5 6.0.6.1 6.0.7 6.0.8.1 6.0.9 7.0.0.1 7.0.2 7.0.3 7.0.4 7.1.0 7.1.1 7.2.0 7.2.1 7.3.0 7.3.1 7.3.3 7.3.5 7.3.6 7.3.7 7.4.0 7.4.1 7.4.11 7.4.13 7.4.13.1 7.4.2 7.4.3 7.4.4 7.4.5 7.4.5.1 7.4.5.2 7.4.6 7.4.7 7.5.0 7.6.0 7.6.1 7.6.3 7.6.4 7.6.6 7.7.0 7.7.1 7.8.0 7.8.1 7.8.10 7.8.10.1 7.8.10.2 7.8.11 7.8.12 7.8.12.1 7.8.2 7.8.3 7.8.4 7.8.5 7.8.6 7.8.7 7.8.8 7.8.9 7.8.9.1 7.8.9.2 7.8.9.3
wordpress-popup / views / admin / settings / tab-analytics.php
wordpress-popup / views / admin / settings Last commit date
analytics 3 years ago data 3 years ago dialogs 9 months ago general 9 months ago permissions 5 years ago privacy 5 years ago recaptcha 6 years ago unsubscribe 9 months ago tab-accessibility.php 6 years ago tab-analytics.php 3 years ago tab-data.php 4 years ago tab-general.php 3 years ago tab-metrics.php 3 years ago tab-palettes.php 3 years ago tab-permissions.php 3 years ago tab-privacy.php 6 years ago tab-recaptcha.php 6 years ago tab-unsubscribe.php 6 years ago
tab-analytics.php
155 lines
1 <?php
2 /**
3 * Analytics tab.
4 *
5 * @package Hustle
6 * @since 4.0.0
7 */
8
9 $settings = Hustle_Settings_Admin::get_dashboard_analytics_settings();
10 $is_enabled = '1' === $settings['enabled'];
11 ?>
12
13 <div id="analytics-box" class="sui-box hustle-settings-tab-analytics" data-tab="analytics"
14 <?php
15 if ( $section && 'analytics' !== $section ) {
16 echo 'style="display: none;"';}
17 ?>
18 >
19
20 <div class="sui-box-header">
21 <h2 class="sui-box-title"><?php esc_html_e( 'Dashboard Analytics Tracking', 'hustle' ); ?></h2>
22 </div>
23
24 <?php if ( ! Hustle_Settings_Admin::global_tracking() ) { ?>
25 <div class="sui-box-body">
26 <?php
27 $this->get_html_for_options(
28 array(
29 array(
30 'type' => 'inline_notice',
31 'class' => 'sui-notice-yellow',
32 'icon' => 'info',
33 'value' => sprintf(
34 /* translators: 1. Open link tag; 2. Close link tag. */
35 esc_html__( 'Global Tracking is disabled for this site. Please enable %1$sGlobal Tracking%2$s to view the Dashboard Analytics tracking data.', 'hustle' ),
36 '<a href="#" data-tab="general" class="hustle-open-tab">',
37 '</a>'
38 ),
39 ),
40 )
41 );
42 ?>
43 </div>
44 <?php } else { ?>
45
46 <form id="hustle-analytics-settings-form" class="sui-box-body">
47
48 <p><?php /* translators: Plugin name */ echo esc_html( sprintf( __( "Add analytics tracking for your %s modules that doesn't require any third-party integration, and display the data in the WordPress Admin Dashboard area.", 'hustle' ), Opt_In_Utils::get_plugin_name() ) ); ?>
49
50 <?php if ( $is_enabled ) { ?>
51
52 <div class="sui-box-settings-row">
53
54 <div class="sui-box-settings-col-2">
55
56 <?php
57 $this->get_html_for_options(
58 array(
59 array(
60 'type' => 'inline_notice',
61 'class' => 'sui-notice-success',
62 'icon' => 'check-tick',
63 'value' => esc_html__( 'Analytics tracking is enabled, and the widget is visible to the selected user roles in their dashboard.', 'hustle' ),
64 ),
65 )
66 );
67 ?>
68
69 </div>
70
71 </div>
72
73 <?php
74 /**
75 * Widget Title.
76 */
77 $this->render(
78 'admin/settings/analytics/widget-title',
79 array(
80 'value' => $settings['title'],
81 )
82 );
83
84 /**
85 * User Role
86 */
87 $this->render(
88 'admin/settings/analytics/user-role',
89 array(
90 'value' => array_keys( $settings['role'] ),
91 )
92 );
93
94 /**
95 * Modules
96 */
97 $this->render(
98 'admin/settings/analytics/modules',
99 array(
100 'values' => $settings['modules'],
101 )
102 );
103
104 } else {
105 ?>
106
107 <p>
108 <button
109 class="sui-button sui-button-blue hustle-settings-save"
110 data-enabled="1"
111 data-target="analytics"
112 >
113 <span class="sui-loading-text"><?php esc_html_e( 'Activate', 'hustle' ); ?></span>
114 <span class="sui-icon-loader sui-loading" aria-hidden="true"></span>
115 </button>
116 </p>
117
118 <?php } ?>
119
120 </form>
121
122 <?php if ( $is_enabled ) { ?>
123
124 <div class="sui-box-footer">
125
126 <button
127 class="sui-button sui-button-ghost hustle-settings-save"
128 data-enabled="0"
129 data-target="analytics"
130 >
131 <span class="sui-loading-text"><?php esc_html_e( 'Deactivate', 'hustle' ); ?></span>
132 <span class="sui-icon-loader sui-loading" aria-hidden="true"></span>
133 </button>
134
135 <div class="sui-actions-right">
136
137 <button
138 class="sui-button sui-button-blue hustle-settings-save"
139 data-form-id="hustle-analytics-settings-form"
140 data-target="analytics"
141 >
142 <span class="sui-loading-text"><?php esc_html_e( 'Save Settings', 'hustle' ); ?></span>
143 <span class="sui-icon-loader sui-loading" aria-hidden="true"></span>
144 </button>
145
146 </div>
147
148 </div>
149
150 <?php } ?>
151
152 <?php } ?>
153
154 </div>
155