@@ -29,65 +29,65 @@ discard block |
||
29 | 29 | <!-- Tabs --> |
30 | 30 | <h1 id="monsterinsights-settings-page-sub-nav" class="monsterinsights-sub-nav-container monsterinsights-nav-container" data-container="#monsterinsights-settings-sub-pages"> |
31 | 31 | <?php |
32 | - $i = 0; |
|
33 | - $class = ''; |
|
34 | - $is_pro = monsterinsights_is_pro_version(); |
|
35 | - foreach ( (array) monsterinsights_get_settings_tabs() as $id => $item ) { |
|
36 | - if ( isset( $item['comingsoon'] ) && $item['comingsoon'] || empty( $item['title'] ) ) { |
|
37 | - continue; |
|
38 | - } |
|
39 | - $class = ( 0 === $i ? 'monsterinsights-active' : '' ); |
|
40 | - ?> |
|
32 | + $i = 0; |
|
33 | + $class = ''; |
|
34 | + $is_pro = monsterinsights_is_pro_version(); |
|
35 | + foreach ( (array) monsterinsights_get_settings_tabs() as $id => $item ) { |
|
36 | + if ( isset( $item['comingsoon'] ) && $item['comingsoon'] || empty( $item['title'] ) ) { |
|
37 | + continue; |
|
38 | + } |
|
39 | + $class = ( 0 === $i ? 'monsterinsights-active' : '' ); |
|
40 | + ?> |
|
41 | 41 | <a class="monsterinsights-sub-nav-item monsterinsights-nav-item monstericon-<?php echo esc_attr( $id ); ?> <?php echo esc_attr( $class ); ?>" href="#monsterinsights-main-tab-tracking?monsterinsights-sub-tab-<?php echo esc_attr( $id ); ?>" title="<?php echo esc_attr( $item['title'] ); ?>"> |
42 | 42 | <?php echo esc_html( $item['title'] ); ?> |
43 | 43 | </a> |
44 | 44 | <?php |
45 | - $i++; |
|
46 | - } |
|
47 | - ?> |
|
45 | + $i++; |
|
46 | + } |
|
47 | + ?> |
|
48 | 48 | </h1> |
49 | 49 | |
50 | 50 | <h1 class="monsterinsights-hideme"></h1><!-- so wp notices are below the nav bar --> |
51 | 51 | |
52 | 52 | <?php |
53 | - // Output any notices now |
|
54 | - /** |
|
55 | - * Developer Alert: |
|
56 | - * |
|
57 | - * Per the README, this is considered an internal hook and should |
|
58 | - * not be used by other developers. This hook's behavior may be modified |
|
59 | - * or the hook may be removed at any time, without warning. |
|
60 | - */ |
|
61 | - do_action( 'monsterinsights_settings_tracking_tab_notice' ); |
|
62 | - ?> |
|
53 | + // Output any notices now |
|
54 | + /** |
|
55 | + * Developer Alert: |
|
56 | + * |
|
57 | + * Per the README, this is considered an internal hook and should |
|
58 | + * not be used by other developers. This hook's behavior may be modified |
|
59 | + * or the hook may be removed at any time, without warning. |
|
60 | + */ |
|
61 | + do_action( 'monsterinsights_settings_tracking_tab_notice' ); |
|
62 | + ?> |
|
63 | 63 | |
64 | 64 | <!-- Tab Panels --> |
65 | 65 | <div id="monsterinsights-settings-sub-pages" class="monsterinsights-sub-nav-tabs monsterinsights-nav-tabs" data-navigation="#monsterinsights-settings-page-sub-nav"> |
66 | 66 | <?php |
67 | - $i = 0; |
|
68 | - foreach ( (array) monsterinsights_get_settings_tabs() as $id => $item ) { |
|
69 | - if ( isset( $item['comingsoon'] ) && $item['comingsoon'] || empty( $item['title'] ) ) { |
|
70 | - continue; |
|
71 | - } |
|
72 | - $class = ( 0 === $i ? ' monsterinsights-active' : '' ); |
|
73 | - $i++; |
|
74 | - ?> |
|
67 | + $i = 0; |
|
68 | + foreach ( (array) monsterinsights_get_settings_tabs() as $id => $item ) { |
|
69 | + if ( isset( $item['comingsoon'] ) && $item['comingsoon'] || empty( $item['title'] ) ) { |
|
70 | + continue; |
|
71 | + } |
|
72 | + $class = ( 0 === $i ? ' monsterinsights-active' : '' ); |
|
73 | + $i++; |
|
74 | + ?> |
|
75 | 75 | <div id="monsterinsights-sub-tab-<?php echo esc_attr( $id ); ?>" class="monsterinsights-sub-nav-tab monsterinsights-nav-tab<?php echo esc_attr( $class ); ?>"> |
76 | 76 | <?php if ( $item['level'] === 'lite' || $is_pro ) { ?> |
77 | 77 | <?php echo '<h2 class="monsterinsights-sub-tab-header">' . esc_html( $item['title'] ) . '</h2>'; ?> |
78 | 78 | <?php } ?> |
79 | 79 | <div class="monsterinsights-subtab-settings-notices"> |
80 | 80 | <?php |
81 | - // Output any notices now |
|
82 | - /** |
|
83 | - * Developer Alert: |
|
84 | - * |
|
85 | - * Per the README, this is considered an internal hook and should |
|
86 | - * not be used by other developers. This hook's behavior may be modified |
|
87 | - * or the hook may be removed at any time, without warning. |
|
88 | - */ |
|
89 | - do_action( 'monsterinsights_tracking_' . $id . '_tab_notice' ); |
|
90 | - ?> |
|
81 | + // Output any notices now |
|
82 | + /** |
|
83 | + * Developer Alert: |
|
84 | + * |
|
85 | + * Per the README, this is considered an internal hook and should |
|
86 | + * not be used by other developers. This hook's behavior may be modified |
|
87 | + * or the hook may be removed at any time, without warning. |
|
88 | + */ |
|
89 | + do_action( 'monsterinsights_tracking_' . $id . '_tab_notice' ); |
|
90 | + ?> |
|
91 | 91 | </div> |
92 | 92 | <!-- Settings Form --> |
93 | 93 | <?php $class = ( $item['level'] !== 'lite' && ! $is_pro ) ? 'monsterinsights-no-settings-shown' : ''; ?> |
@@ -95,10 +95,10 @@ discard block |
||
95 | 95 | <table class="form-table"> |
96 | 96 | <tbody> |
97 | 97 | <?php |
98 | - //do_action( 'monsterinsights_settings_tab_top_' . $id ); |
|
99 | - echo monsterinsights_get_section_settings( $id, 'tracking' ); |
|
100 | - //do_action( 'monsterinsights_settings_tab_bottom_' . $id ); |
|
101 | - ?> |
|
98 | + //do_action( 'monsterinsights_settings_tab_top_' . $id ); |
|
99 | + echo monsterinsights_get_section_settings( $id, 'tracking' ); |
|
100 | + //do_action( 'monsterinsights_settings_tab_bottom_' . $id ); |
|
101 | + ?> |
|
102 | 102 | </tbody> |
103 | 103 | </table> |
104 | 104 | <?php echo monsterinsights_render_submit_field( $id, 'tracking' ); ?> |
@@ -111,8 +111,8 @@ discard block |
||
111 | 111 | </form> |
112 | 112 | </div> |
113 | 113 | <?php |
114 | - } |
|
115 | - ?> |
|
114 | + } |
|
115 | + ?> |
|
116 | 116 | </div> |
117 | 117 | </div> |
118 | 118 | <?php |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | $i++; |
74 | 74 | ?> |
75 | 75 | <div id="monsterinsights-sub-tab-<?php echo esc_attr( $id ); ?>" class="monsterinsights-sub-nav-tab monsterinsights-nav-tab<?php echo esc_attr( $class ); ?>"> |
76 | - <?php if ( $item['level'] === 'lite' || $is_pro ) { ?> |
|
76 | + <?php if ( $item['level'] === 'lite' || $is_pro ) { ?> |
|
77 | 77 | <?php echo '<h2 class="monsterinsights-sub-tab-header">' . esc_html( $item['title'] ) . '</h2>'; ?> |
78 | 78 | <?php } ?> |
79 | 79 | <div class="monsterinsights-subtab-settings-notices"> |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | </div> |
92 | 92 | <!-- Settings Form --> |
93 | 93 | <?php $class = ( $item['level'] !== 'lite' && ! $is_pro ) ? 'monsterinsights-no-settings-shown' : ''; ?> |
94 | - <form id="monsterinsights-tracking-<?php echo esc_attr( $id );?>-tab" class="<?php echo $class; ?>" method="post"> |
|
94 | + <form id="monsterinsights-tracking-<?php echo esc_attr( $id ); ?>-tab" class="<?php echo $class; ?>" method="post"> |
|
95 | 95 | <table class="form-table"> |
96 | 96 | <tbody> |
97 | 97 | <?php |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | </tbody> |
103 | 103 | </table> |
104 | 104 | <?php echo monsterinsights_render_submit_field( $id, 'tracking' ); ?> |
105 | - <?php if ( $item['level'] === 'lite' && !$is_pro ) { ?> |
|
105 | + <?php if ( $item['level'] === 'lite' && ! $is_pro ) { ?> |
|
106 | 106 | <div class="monsterinsights-upsell-under-box"> |
107 | 107 | <h2><?php esc_html_e( "Want even more fine tuned control over your website analytics?", 'google-analytics-for-wordpress' ); ?></h2> |
108 | 108 | <p class="monsterinsights-upsell-lite-text"><?php esc_html_e( "By upgrading to MonsterInsights Pro, you get access to numerous addons and tools that help you better understand what people are doing on your website, so you can keep doing more of what's working. Some of the features include: Ecommerce tracking, Author tracking, Post Type tracking, Ads tracking, Google AMP tracking, Performance optimization, and so much more!", 'google-analytics-for-wordpress' ); ?></p> |
@@ -29,26 +29,26 @@ discard block |
||
29 | 29 | <div id="monsterinsights-settings-general"> |
30 | 30 | <div class="monsterinsights-tab-settings-notices"> |
31 | 31 | <?php |
32 | - // Output any notices now |
|
33 | - /** |
|
34 | - * Developer Alert: |
|
35 | - * |
|
36 | - * Per the README, this is considered an internal hook and should |
|
37 | - * not be used by other developers. This hook's behavior may be modified |
|
38 | - * or the hook may be removed at any time, without warning. |
|
39 | - */ |
|
40 | - do_action( 'monsterinsights_settings_general_tab_notice' ); |
|
41 | - ?> |
|
32 | + // Output any notices now |
|
33 | + /** |
|
34 | + * Developer Alert: |
|
35 | + * |
|
36 | + * Per the README, this is considered an internal hook and should |
|
37 | + * not be used by other developers. This hook's behavior may be modified |
|
38 | + * or the hook may be removed at any time, without warning. |
|
39 | + */ |
|
40 | + do_action( 'monsterinsights_settings_general_tab_notice' ); |
|
41 | + ?> |
|
42 | 42 | </div> |
43 | 43 | <table class="form-table"> |
44 | 44 | <tbody> |
45 | 45 | <?php if ( monsterinsights_is_pro_version() ) { |
46 | - $license_key = MonsterInsights()->license->get_site_license_key(); |
|
47 | - $license_key = $license_key ? $license_key : MonsterInsights()->license->get_network_license_key(); |
|
48 | - $license_key = $license_key ? $license_key : MonsterInsights()->license->get_default_license_key(); |
|
46 | + $license_key = MonsterInsights()->license->get_site_license_key(); |
|
47 | + $license_key = $license_key ? $license_key : MonsterInsights()->license->get_network_license_key(); |
|
48 | + $license_key = $license_key ? $license_key : MonsterInsights()->license->get_default_license_key(); |
|
49 | 49 | |
50 | - $license_type = MonsterInsights()->license->get_site_license_type(); |
|
51 | - ?> |
|
50 | + $license_type = MonsterInsights()->license->get_site_license_type(); |
|
51 | + ?> |
|
52 | 52 | <tr id="monsterinsights-settings-key-box"> |
53 | 53 | <th scope="row"> |
54 | 54 | <label for="monsterinsights-settings-key"><?php esc_html_e( 'License Key', 'google-analytics-for-wordpress' ); ?></label> |
@@ -154,10 +154,10 @@ discard block |
||
154 | 154 | <?php } ?> |
155 | 155 | |
156 | 156 | <?php |
157 | - $manual_ua = MonsterInsights()->auth->get_manual_ua(); |
|
158 | - $auth_ua = MonsterInsights()->auth->get_ua(); |
|
157 | + $manual_ua = MonsterInsights()->auth->get_manual_ua(); |
|
158 | + $auth_ua = MonsterInsights()->auth->get_ua(); |
|
159 | 159 | |
160 | - if ( empty( $manual_ua ) && empty( $auth_ua ) && monsterinsights_get_network_ua() ) { ?> |
|
160 | + if ( empty( $manual_ua ) && empty( $auth_ua ) && monsterinsights_get_network_ua() ) { ?> |
|
161 | 161 | <!-- If we don't have a manual or auth UA but we have a valid default set (from network), explain that --> |
162 | 162 | <tr id="monsterinsights-default-google-authenticate-box"> |
163 | 163 | <th scope="row"> |
@@ -171,10 +171,10 @@ discard block |
||
171 | 171 | |
172 | 172 | <!-- Disable Dashboard --> |
173 | 173 | <?php |
174 | - $title = esc_html__( 'Disable Reports', 'google-analytics-for-wordpress' ); |
|
175 | - $description = esc_html__( 'Hide the reports page.', 'google-analytics-for-wordpress' ); |
|
176 | - echo monsterinsights_make_checkbox( 'dashboards_disabled', $title, $description ); |
|
177 | - ?> |
|
174 | + $title = esc_html__( 'Disable Reports', 'google-analytics-for-wordpress' ); |
|
175 | + $description = esc_html__( 'Hide the reports page.', 'google-analytics-for-wordpress' ); |
|
176 | + echo monsterinsights_make_checkbox( 'dashboards_disabled', $title, $description ); |
|
177 | + ?> |
|
178 | 178 | |
179 | 179 | <?php if ( $automatic_updates !== 'all' && $automatic_updates !== 'minor' ){ ?> |
180 | 180 | <?php $automatic_updates = $automatic_updates ? $automatic_updates : 'none'; ?> |
@@ -192,23 +192,23 @@ discard block |
||
192 | 192 | |
193 | 193 | <!-- Tracking --> |
194 | 194 | <?php |
195 | - $title = esc_html__( 'Allow Usage Tracking', 'google-analytics-for-wordpress' ); |
|
196 | - $description = esc_html__( 'By allowing us to track usage data we can better help you, because we know with which WordPress configurations, themes and plugins we should test.', 'google-analytics-for-wordpress' ); |
|
197 | - if ( ( ! $anon_tracking || monsterinsights_is_debug_mode() ) && ! monsterinsights_is_pro_version() ){ |
|
198 | - echo monsterinsights_make_checkbox( 'anonymous_data', $title, $description ); |
|
199 | - } |
|
200 | - ?> |
|
195 | + $title = esc_html__( 'Allow Usage Tracking', 'google-analytics-for-wordpress' ); |
|
196 | + $description = esc_html__( 'By allowing us to track usage data we can better help you, because we know with which WordPress configurations, themes and plugins we should test.', 'google-analytics-for-wordpress' ); |
|
197 | + if ( ( ! $anon_tracking || monsterinsights_is_debug_mode() ) && ! monsterinsights_is_pro_version() ){ |
|
198 | + echo monsterinsights_make_checkbox( 'anonymous_data', $title, $description ); |
|
199 | + } |
|
200 | + ?> |
|
201 | 201 | |
202 | 202 | <?php |
203 | - /** |
|
204 | - * Developer Alert: |
|
205 | - * |
|
206 | - * Per the README, this is considered an internal hook and should |
|
207 | - * not be used by other developers. This hook's behavior may be modified |
|
208 | - * or the hook may be removed at any time, without warning. |
|
209 | - */ |
|
210 | - do_action( 'monsterinsights_settings_general_box' ); |
|
211 | - ?> |
|
203 | + /** |
|
204 | + * Developer Alert: |
|
205 | + * |
|
206 | + * Per the README, this is considered an internal hook and should |
|
207 | + * not be used by other developers. This hook's behavior may be modified |
|
208 | + * or the hook may be removed at any time, without warning. |
|
209 | + */ |
|
210 | + do_action( 'monsterinsights_settings_general_box' ); |
|
211 | + ?> |
|
212 | 212 | </tbody> |
213 | 213 | </table> |
214 | 214 | <input type="hidden" name="monsterinsights_settings_tab" value="general"/> |
@@ -235,28 +235,28 @@ discard block |
||
235 | 235 | $manual_ua_code_old = MonsterInsights()->auth->get_manual_ua(); |
236 | 236 | |
237 | 237 | if ( $manual_ua_code && $manual_ua_code_old && $manual_ua_code_old === $manual_ua_code ) { |
238 | - // Same code we had before |
|
239 | - // Do nothing |
|
238 | + // Same code we had before |
|
239 | + // Do nothing |
|
240 | 240 | } else if ( $manual_ua_code && $manual_ua_code_old && $manual_ua_code_old !== $manual_ua_code ) { |
241 | - // Different UA code |
|
242 | - MonsterInsights()->auth->set_manual_ua( $manual_ua_code ); |
|
241 | + // Different UA code |
|
242 | + MonsterInsights()->auth->set_manual_ua( $manual_ua_code ); |
|
243 | 243 | } else if ( $manual_ua_code && empty( $manual_ua_code_old ) ) { |
244 | - // Move to manual |
|
245 | - MonsterInsights()->auth->set_manual_ua( $manual_ua_code ); |
|
244 | + // Move to manual |
|
245 | + MonsterInsights()->auth->set_manual_ua( $manual_ua_code ); |
|
246 | 246 | } else if ( empty( $manual_ua_code ) && $manual_ua_code_old ) { |
247 | - // Deleted manual |
|
248 | - MonsterInsights()->auth->delete_manual_ua(); |
|
247 | + // Deleted manual |
|
248 | + MonsterInsights()->auth->delete_manual_ua(); |
|
249 | 249 | } else if ( isset( $_POST['manual_ua_code'] ) && empty( $manual_ua_code ) ) { |
250 | - $throw_notice = true; |
|
250 | + $throw_notice = true; |
|
251 | 251 | } else { |
252 | - // Not UA before or after |
|
253 | - // Do nothing |
|
252 | + // Not UA before or after |
|
253 | + // Do nothing |
|
254 | 254 | } |
255 | 255 | |
256 | 256 | $dashboards_disabled = isset( $_POST['dashboards_disabled'] ) ? 1 : 0; |
257 | 257 | $dashboards_disabled_old = monsterinsights_get_option( 'dashboards_disabled', false ); |
258 | 258 | if ( $dashboards_disabled && ! $dashboards_disabled_old ) { |
259 | - do_action( 'monsterinsights_reports_delete_aggregate_data' ); |
|
259 | + do_action( 'monsterinsights_reports_delete_aggregate_data' ); |
|
260 | 260 | } |
261 | 261 | monsterinsights_update_option( 'dashboards_disabled', $dashboards_disabled ); |
262 | 262 | |
@@ -264,16 +264,16 @@ discard block |
||
264 | 264 | |
265 | 265 | $automatic_updates = isset( $_POST['automatic_updates'] ) && in_array( $_POST['automatic_updates'], array( 'all', 'minor', 'none' ) ) ? $_POST['automatic_updates'] : false; |
266 | 266 | if ( $automatic_updates ) { |
267 | - monsterinsights_update_option( 'automatic_updates', $automatic_updates ); |
|
267 | + monsterinsights_update_option( 'automatic_updates', $automatic_updates ); |
|
268 | 268 | } |
269 | 269 | |
270 | 270 | $anonymous_data = isset( $_POST['anonymous_data'] ) ? 1 : 0; |
271 | 271 | if ( $anonymous_data ) { |
272 | - if ( monsterinsights_is_pro_version() ) { |
|
273 | - monsterinsights_update_option( 'anonymous_data', 1 ); |
|
274 | - } else { |
|
275 | - monsterinsights_update_option( 'anonymous_data', $anonymous_data ); |
|
276 | - } |
|
272 | + if ( monsterinsights_is_pro_version() ) { |
|
273 | + monsterinsights_update_option( 'anonymous_data', 1 ); |
|
274 | + } else { |
|
275 | + monsterinsights_update_option( 'anonymous_data', $anonymous_data ); |
|
276 | + } |
|
277 | 277 | } |
278 | 278 | |
279 | 279 | /** |
@@ -287,9 +287,9 @@ discard block |
||
287 | 287 | |
288 | 288 | // Output an admin notice so the user knows what happened |
289 | 289 | if ( $throw_notice ) { |
290 | - add_action( 'monsterinsights_settings_general_tab_notice', 'monsterinsights_invalid_ua_code' ); |
|
290 | + add_action( 'monsterinsights_settings_general_tab_notice', 'monsterinsights_invalid_ua_code' ); |
|
291 | 291 | } else { |
292 | - add_action( 'monsterinsights_settings_general_tab_notice', 'monsterinsights_updated_settings' ); |
|
292 | + add_action( 'monsterinsights_settings_general_tab_notice', 'monsterinsights_updated_settings' ); |
|
293 | 293 | } |
294 | 294 | } |
295 | 295 | add_action( 'monsterinsights_settings_save_general', 'monsterinsights_settings_save_general', 11 ); |
296 | 296 | \ No newline at end of file |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | <form id="monsterinsights-google-authenticate" method="post"> |
110 | 110 | <?php if ( MonsterInsights()->auth->get_viewname() && MonsterInsights()->auth->get_ua() ) { ?> |
111 | 111 | <?php if ( monsterinsights_is_pro_version() && ! MonsterInsights()->license->is_site_licensed() ) { ?> |
112 | - <p><?php echo esc_html__( 'Please activate MonsterInsights Pro with an active, valid license key in order to use MonsterInsights Pro.' , 'google-analytics-for-wordpress' ); ?></p> |
|
112 | + <p><?php echo esc_html__( 'Please activate MonsterInsights Pro with an active, valid license key in order to use MonsterInsights Pro.', 'google-analytics-for-wordpress' ); ?></p> |
|
113 | 113 | <?php } else { ?> |
114 | 114 | <p><?php echo esc_html__( 'Profile Active: ', 'google-analytics-for-wordpress' ) . MonsterInsights()->auth->get_viewname(); ?></p> |
115 | 115 | <p><?php wp_nonce_field( 'monsterinsights-google-authenticated-nonce', 'monsterinsights-google-authenticated-nonce' ); ?> |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | <?php } ?> |
120 | 120 | <?php } else { ?> |
121 | 121 | <?php if ( monsterinsights_is_pro_version() && ! MonsterInsights()->license->is_site_licensed() ) { ?> |
122 | - <p><?php echo esc_html__( 'Please activate MonsterInsights Pro with an active, valid license key in order to use MonsterInsights Pro.' , 'google-analytics-for-wordpress' ); ?></p> |
|
122 | + <p><?php echo esc_html__( 'Please activate MonsterInsights Pro with an active, valid license key in order to use MonsterInsights Pro.', 'google-analytics-for-wordpress' ); ?></p> |
|
123 | 123 | <?php } else { ?> |
124 | 124 | <?php wp_nonce_field( 'monsterinsights-google-authenticate-nonce', 'monsterinsights-google-authenticate-nonce' ); ?> |
125 | 125 | <?php submit_button( esc_html__( 'Authenticate with your Google account', 'google-analytics-for-wordpress' ), 'button-action', 'monsterinsights-google-authenticate-submit', false ); ?> |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | <tbody> |
143 | 143 | <?php if ( ! MonsterInsights()->auth->get_viewname() ) { ?> |
144 | 144 | <!-- Manual UA --> |
145 | - <tr id="monsterinsights-google-ua-box" <?php echo ( ! MonsterInsights()->auth->get_manual_ua() ? 'class="monsterinsights-hideme"' : ''); ?> > |
|
145 | + <tr id="monsterinsights-google-ua-box" <?php echo ( ! MonsterInsights()->auth->get_manual_ua() ? 'class="monsterinsights-hideme"' : '' ); ?> > |
|
146 | 146 | <th scope="row"> |
147 | 147 | <label for="monsterinsights-google-ua"><?php esc_html_e( 'Manually enter your UA code', 'google-analytics-for-wordpress' ); ?></label> |
148 | 148 | </th> |
@@ -176,16 +176,16 @@ discard block |
||
176 | 176 | echo monsterinsights_make_checkbox( 'dashboards_disabled', $title, $description ); |
177 | 177 | ?> |
178 | 178 | |
179 | - <?php if ( $automatic_updates !== 'all' && $automatic_updates !== 'minor' ){ ?> |
|
179 | + <?php if ( $automatic_updates !== 'all' && $automatic_updates !== 'minor' ) { ?> |
|
180 | 180 | <?php $automatic_updates = $automatic_updates ? $automatic_updates : 'none'; ?> |
181 | 181 | <tr id="monsterinsights-automatic-updates-mode"> |
182 | 182 | <th scope="row"> |
183 | 183 | <label for="monsterinsights-tracking-mode"><?php esc_html_e( 'Automatic Updates', 'google-analytics-for-wordpress' ); ?></label> |
184 | 184 | </th> |
185 | 185 | <td> |
186 | - <label><input type="radio" name="automatic_updates" value="all" <?php checked( $automatic_updates, 'all' ); ?> ><?php esc_html_e('Yes (Recommended) - Get the latest features, bugfixes, and security updates as they are released.', 'google-analytics-for-wordpress'); ?> </label> |
|
187 | - <label><input type="radio" name="automatic_updates" value="minor" <?php checked( $automatic_updates, 'minor' ); ?> ><?php esc_html_e( 'Minor Only - Only get bugfixes and security updates, but not major features.', 'google-analytics-for-wordpress'); ?> </label> |
|
188 | - <label><input type="radio" name="automatic_updates" value="none" <?php checked( $automatic_updates, 'none' ); ?> ><?php esc_html_e( 'None - Manually update everything.', 'google-analytics-for-wordpress'); ?> </label> |
|
186 | + <label><input type="radio" name="automatic_updates" value="all" <?php checked( $automatic_updates, 'all' ); ?> ><?php esc_html_e( 'Yes (Recommended) - Get the latest features, bugfixes, and security updates as they are released.', 'google-analytics-for-wordpress' ); ?> </label> |
|
187 | + <label><input type="radio" name="automatic_updates" value="minor" <?php checked( $automatic_updates, 'minor' ); ?> ><?php esc_html_e( 'Minor Only - Only get bugfixes and security updates, but not major features.', 'google-analytics-for-wordpress' ); ?> </label> |
|
188 | + <label><input type="radio" name="automatic_updates" value="none" <?php checked( $automatic_updates, 'none' ); ?> ><?php esc_html_e( 'None - Manually update everything.', 'google-analytics-for-wordpress' ); ?> </label> |
|
189 | 189 | </td> |
190 | 190 | </tr> |
191 | 191 | <?php } ?> |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | <?php |
195 | 195 | $title = esc_html__( 'Allow Usage Tracking', 'google-analytics-for-wordpress' ); |
196 | 196 | $description = esc_html__( 'By allowing us to track usage data we can better help you, because we know with which WordPress configurations, themes and plugins we should test.', 'google-analytics-for-wordpress' ); |
197 | - if ( ( ! $anon_tracking || monsterinsights_is_debug_mode() ) && ! monsterinsights_is_pro_version() ){ |
|
197 | + if ( ( ! $anon_tracking || monsterinsights_is_debug_mode() ) && ! monsterinsights_is_pro_version() ) { |
|
198 | 198 | echo monsterinsights_make_checkbox( 'anonymous_data', $title, $description ); |
199 | 199 | } |
200 | 200 | ?> |
@@ -194,7 +194,7 @@ |
||
194 | 194 | <?php |
195 | 195 | $title = esc_html__( 'Allow Usage Tracking', 'google-analytics-for-wordpress' ); |
196 | 196 | $description = esc_html__( 'By allowing us to track usage data we can better help you, because we know with which WordPress configurations, themes and plugins we should test.', 'google-analytics-for-wordpress' ); |
197 | - if ( ( ! $anon_tracking || monsterinsights_is_debug_mode() ) && ! monsterinsights_is_pro_version() ){ |
|
197 | + if ( ( ! $anon_tracking || monsterinsights_is_debug_mode() ) && ! monsterinsights_is_pro_version() ) { |
|
198 | 198 | echo monsterinsights_make_checkbox( 'anonymous_data', $title, $description ); |
199 | 199 | } |
200 | 200 | ?> |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | |
19 | 19 | final class MonsterInsights_Auth { |
20 | 20 | |
21 | - private $profile = array(); |
|
21 | + private $profile = array(); |
|
22 | 22 | private $network = array(); |
23 | 23 | |
24 | 24 | /** |
@@ -67,17 +67,17 @@ discard block |
||
67 | 67 | } |
68 | 68 | } |
69 | 69 | |
70 | - public function set_analytics_profile( $data = array() ){ |
|
70 | + public function set_analytics_profile( $data = array() ) { |
|
71 | 71 | update_option( 'monsterinsights_site_profile', $data ); |
72 | - $this->profile = $data; |
|
72 | + $this->profile = $data; |
|
73 | 73 | } |
74 | 74 | |
75 | - public function set_network_analytics_profile( $data = array() ){ |
|
75 | + public function set_network_analytics_profile( $data = array() ) { |
|
76 | 76 | update_site_option( 'monsterinsights_network_profile', $data ); |
77 | - $this->network = $data; |
|
77 | + $this->network = $data; |
|
78 | 78 | } |
79 | 79 | |
80 | - public function delete_analytics_profile( $migrate = true ){ |
|
80 | + public function delete_analytics_profile( $migrate = true ) { |
|
81 | 81 | if ( $migrate ) { |
82 | 82 | $newdata = array(); |
83 | 83 | if ( isset( $this->profile['ua'] ) ) { |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | } |
92 | 92 | } |
93 | 93 | |
94 | - public function delete_network_analytics_profile( $migrate = true ){ |
|
94 | + public function delete_network_analytics_profile( $migrate = true ) { |
|
95 | 95 | if ( $migrate ) { |
96 | 96 | $newdata = array(); |
97 | 97 | if ( isset( $this->network['ua'] ) ) { |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | |
125 | 125 | do_action( 'monsterinsights_reports_delete_aggregate_data' ); |
126 | 126 | |
127 | - $this->profile = $data; |
|
127 | + $this->profile = $data; |
|
128 | 128 | $this->set_analytics_profile( $data ); |
129 | 129 | } |
130 | 130 | |
@@ -181,55 +181,55 @@ discard block |
||
181 | 181 | return ! empty( $this->network['ua'] ) ? monsterinsights_is_valid_ua( $this->network['ua'] ) : ''; |
182 | 182 | } |
183 | 183 | |
184 | - public function get_viewname(){ |
|
184 | + public function get_viewname() { |
|
185 | 185 | return ! empty( $this->profile['viewname'] ) ? $this->profile['viewname'] : ''; |
186 | 186 | } |
187 | 187 | |
188 | - public function get_network_viewname(){ |
|
188 | + public function get_network_viewname() { |
|
189 | 189 | return ! empty( $this->network['viewname'] ) ? $this->network['viewname'] : ''; |
190 | 190 | } |
191 | 191 | |
192 | - public function get_accountid(){ |
|
192 | + public function get_accountid() { |
|
193 | 193 | return ! empty( $this->profile['a'] ) ? $this->profile['a'] : ''; |
194 | 194 | } |
195 | 195 | |
196 | - public function get_network_accountid(){ |
|
196 | + public function get_network_accountid() { |
|
197 | 197 | return ! empty( $this->network['a'] ) ? $this->network['a'] : ''; |
198 | 198 | } |
199 | 199 | |
200 | - public function get_propertyid(){ |
|
200 | + public function get_propertyid() { |
|
201 | 201 | return ! empty( $this->profile['w'] ) ? $this->profile['w'] : ''; |
202 | 202 | } |
203 | 203 | |
204 | - public function get_network_propertyid(){ |
|
204 | + public function get_network_propertyid() { |
|
205 | 205 | return ! empty( $this->network['w'] ) ? $this->network['w'] : ''; |
206 | 206 | } |
207 | 207 | |
208 | - public function get_viewid(){ // also known as profileID |
|
208 | + public function get_viewid() { // also known as profileID |
|
209 | 209 | return ! empty( $this->profile['p'] ) ? $this->profile['p'] : ''; |
210 | 210 | } |
211 | 211 | |
212 | - public function get_network_viewid(){ // also known as profileID |
|
212 | + public function get_network_viewid() { // also known as profileID |
|
213 | 213 | return ! empty( $this->network['p'] ) ? $this->network['p'] : ''; |
214 | 214 | } |
215 | 215 | |
216 | - public function get_key(){ |
|
216 | + public function get_key() { |
|
217 | 217 | return ! empty( $this->profile['key'] ) ? $this->profile['key'] : ''; |
218 | 218 | } |
219 | 219 | |
220 | - public function get_network_key(){ |
|
220 | + public function get_network_key() { |
|
221 | 221 | return ! empty( $this->network['key'] ) ? $this->network['key'] : ''; |
222 | 222 | } |
223 | 223 | |
224 | - public function get_token(){ |
|
224 | + public function get_token() { |
|
225 | 225 | return ! empty( $this->profile['token'] ) ? $this->profile['token'] : ''; |
226 | 226 | } |
227 | 227 | |
228 | - public function get_network_token(){ |
|
228 | + public function get_network_token() { |
|
229 | 229 | return ! empty( $this->network['token'] ) ? $this->network['token'] : ''; |
230 | 230 | } |
231 | 231 | |
232 | - public function get_referral_url(){ |
|
232 | + public function get_referral_url() { |
|
233 | 233 | $url = ''; |
234 | 234 | |
235 | 235 | if ( $this->is_authed() ) { |
@@ -67,17 +67,17 @@ discard block |
||
67 | 67 | } |
68 | 68 | } |
69 | 69 | |
70 | - public function set_analytics_profile( $data = array() ){ |
|
70 | + public function set_analytics_profile( $data = array() ) { |
|
71 | 71 | update_option( 'monsterinsights_site_profile', $data ); |
72 | 72 | $this->profile = $data; |
73 | 73 | } |
74 | 74 | |
75 | - public function set_network_analytics_profile( $data = array() ){ |
|
75 | + public function set_network_analytics_profile( $data = array() ) { |
|
76 | 76 | update_site_option( 'monsterinsights_network_profile', $data ); |
77 | 77 | $this->network = $data; |
78 | 78 | } |
79 | 79 | |
80 | - public function delete_analytics_profile( $migrate = true ){ |
|
80 | + public function delete_analytics_profile( $migrate = true ) { |
|
81 | 81 | if ( $migrate ) { |
82 | 82 | $newdata = array(); |
83 | 83 | if ( isset( $this->profile['ua'] ) ) { |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | } |
92 | 92 | } |
93 | 93 | |
94 | - public function delete_network_analytics_profile( $migrate = true ){ |
|
94 | + public function delete_network_analytics_profile( $migrate = true ) { |
|
95 | 95 | if ( $migrate ) { |
96 | 96 | $newdata = array(); |
97 | 97 | if ( isset( $this->network['ua'] ) ) { |
@@ -181,55 +181,57 @@ discard block |
||
181 | 181 | return ! empty( $this->network['ua'] ) ? monsterinsights_is_valid_ua( $this->network['ua'] ) : ''; |
182 | 182 | } |
183 | 183 | |
184 | - public function get_viewname(){ |
|
184 | + public function get_viewname() { |
|
185 | 185 | return ! empty( $this->profile['viewname'] ) ? $this->profile['viewname'] : ''; |
186 | 186 | } |
187 | 187 | |
188 | - public function get_network_viewname(){ |
|
188 | + public function get_network_viewname() { |
|
189 | 189 | return ! empty( $this->network['viewname'] ) ? $this->network['viewname'] : ''; |
190 | 190 | } |
191 | 191 | |
192 | - public function get_accountid(){ |
|
192 | + public function get_accountid() { |
|
193 | 193 | return ! empty( $this->profile['a'] ) ? $this->profile['a'] : ''; |
194 | 194 | } |
195 | 195 | |
196 | - public function get_network_accountid(){ |
|
196 | + public function get_network_accountid() { |
|
197 | 197 | return ! empty( $this->network['a'] ) ? $this->network['a'] : ''; |
198 | 198 | } |
199 | 199 | |
200 | - public function get_propertyid(){ |
|
200 | + public function get_propertyid() { |
|
201 | 201 | return ! empty( $this->profile['w'] ) ? $this->profile['w'] : ''; |
202 | 202 | } |
203 | 203 | |
204 | - public function get_network_propertyid(){ |
|
204 | + public function get_network_propertyid() { |
|
205 | 205 | return ! empty( $this->network['w'] ) ? $this->network['w'] : ''; |
206 | 206 | } |
207 | 207 | |
208 | - public function get_viewid(){ // also known as profileID |
|
208 | + public function get_viewid() { |
|
209 | +// also known as profileID |
|
209 | 210 | return ! empty( $this->profile['p'] ) ? $this->profile['p'] : ''; |
210 | 211 | } |
211 | 212 | |
212 | - public function get_network_viewid(){ // also known as profileID |
|
213 | + public function get_network_viewid() { |
|
214 | +// also known as profileID |
|
213 | 215 | return ! empty( $this->network['p'] ) ? $this->network['p'] : ''; |
214 | 216 | } |
215 | 217 | |
216 | - public function get_key(){ |
|
218 | + public function get_key() { |
|
217 | 219 | return ! empty( $this->profile['key'] ) ? $this->profile['key'] : ''; |
218 | 220 | } |
219 | 221 | |
220 | - public function get_network_key(){ |
|
222 | + public function get_network_key() { |
|
221 | 223 | return ! empty( $this->network['key'] ) ? $this->network['key'] : ''; |
222 | 224 | } |
223 | 225 | |
224 | - public function get_token(){ |
|
226 | + public function get_token() { |
|
225 | 227 | return ! empty( $this->profile['token'] ) ? $this->profile['token'] : ''; |
226 | 228 | } |
227 | 229 | |
228 | - public function get_network_token(){ |
|
230 | + public function get_network_token() { |
|
229 | 231 | return ! empty( $this->network['token'] ) ? $this->network['token'] : ''; |
230 | 232 | } |
231 | 233 | |
232 | - public function get_referral_url(){ |
|
234 | + public function get_referral_url() { |
|
233 | 235 | $url = ''; |
234 | 236 | |
235 | 237 | if ( $this->is_authed() ) { |
@@ -2,7 +2,7 @@ |
||
2 | 2 | |
3 | 3 | require_once MONSTERINSIGHTS_PLUGIN_DIR . 'lite/includes/admin/settings.php'; |
4 | 4 | |
5 | -if ( is_admin() ) { |
|
5 | +if ( is_admin() ) { |
|
6 | 6 | require_once MONSTERINSIGHTS_PLUGIN_DIR . 'lite/includes/admin/tools.php'; |
7 | 7 | |
8 | 8 | //require_once MONSTERINSIGHTS_PLUGIN_DIR . 'lite/includes/admin/tab-support.php'; |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | $settings['social']['social_notice'] = array( |
12 | 12 | 'id' => 'social_notice', |
13 | 13 | 'no_label' => true, |
14 | - 'name' => __( 'Want to increase your traffic, conversion, & engagement?', 'google-analytics-for-wordpress'), |
|
14 | + 'name' => __( 'Want to increase your traffic, conversion, & engagement?', 'google-analytics-for-wordpress' ), |
|
15 | 15 | 'type' => 'upgrade_notice', |
16 | 16 | 'desc' => esc_html__( "By upgrading to MonsterInsights Pro, you can add Social tracking to see who's clicking on your social share links, so you can track and maximize your social sharing exposure.", 'google-analytics-for-wordpress' ) |
17 | 17 | ); |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | $settings['ads']['ads_notice'] = array( |
21 | 21 | 'id' => 'ads_notice', |
22 | 22 | 'no_label' => true, |
23 | - 'name' => __( 'Want to increase your traffic, conversion, & engagement?', 'google-analytics-for-wordpress'), |
|
23 | + 'name' => __( 'Want to increase your traffic, conversion, & engagement?', 'google-analytics-for-wordpress' ), |
|
24 | 24 | 'type' => 'upgrade_notice', |
25 | 25 | 'desc' => esc_html__( "By upgrading to MonsterInsights Pro, you can add Ads tracking to see who's clicking on your Google Ads, so you can increase your revenue.", 'google-analytics-for-wordpress' ) |
26 | 26 | ); |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | $settings['forms']['forms_notice'] = array( |
30 | 30 | 'id' => 'forms_notice', |
31 | 31 | 'no_label' => true, |
32 | - 'name' => __( 'Want to increase your traffic, conversion, & engagement?', 'google-analytics-for-wordpress'), |
|
32 | + 'name' => __( 'Want to increase your traffic, conversion, & engagement?', 'google-analytics-for-wordpress' ), |
|
33 | 33 | 'type' => 'upgrade_notice', |
34 | 34 | 'desc' => esc_html__( "By upgrading to MonsterInsights Pro, you can add Forms tracking to see who's seeing and submitting your forms, so you can increase your conversion rate.", 'google-analytics-for-wordpress' ) |
35 | 35 | ); |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | $settings['media']['media_notice'] = array( |
39 | 39 | 'id' => 'media_notice', |
40 | 40 | 'no_label' => true, |
41 | - 'name' => __( 'Want to increase your traffic, conversion, & engagement?', 'google-analytics-for-wordpress'), |
|
41 | + 'name' => __( 'Want to increase your traffic, conversion, & engagement?', 'google-analytics-for-wordpress' ), |
|
42 | 42 | 'type' => 'upgrade_notice', |
43 | 43 | 'desc' => esc_html__( "By upgrading to MonsterInsights Pro, you can add Media tracking to see who's interacting with the media on your site, so you know what your users are most interested in on your site. You can use this to tailor future content to meet your audience's interest to promote repeat visitors and expand your average user's time spent visiting your website on each visit.", 'google-analytics-for-wordpress' ) |
44 | 44 | ); |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | $settings['membership']['membership_notice'] = array( |
48 | 48 | 'id' => 'membership_notice', |
49 | 49 | 'no_label' => true, |
50 | - 'name' => __( 'Want to increase your traffic, conversion, & engagement?', 'google-analytics-for-wordpress'), |
|
50 | + 'name' => __( 'Want to increase your traffic, conversion, & engagement?', 'google-analytics-for-wordpress' ), |
|
51 | 51 | 'type' => 'upgrade_notice', |
52 | 52 | 'desc' => esc_html__( "By upgrading to MonsterInsights Pro, you can add Membership tracking.", 'google-analytics-for-wordpress' ) |
53 | 53 | ); |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | $settings['dimensions']['dimensions_notice'] = array( |
57 | 57 | 'id' => 'dimensions_notice', |
58 | 58 | 'no_label' => true, |
59 | - 'name' => __( 'Want to increase your traffic, conversion, & engagement?', 'google-analytics-for-wordpress'), |
|
59 | + 'name' => __( 'Want to increase your traffic, conversion, & engagement?', 'google-analytics-for-wordpress' ), |
|
60 | 60 | 'type' => 'upgrade_notice', |
61 | 61 | 'desc' => esc_html__( "By upgrading to MonsterInsights Pro, you can add Custom Dimensions and track who's the most popular author on your site, which post types get the most traffic, and more. Why not check it out?", 'google-analytics-for-wordpress' ) |
62 | 62 | ); |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | $settings['performance']['performance_notice'] = array( |
66 | 66 | 'id' => 'performance_notice', |
67 | 67 | 'no_label' => true, |
68 | - 'name' => __( 'Want to increase your traffic, conversion, & engagement?', 'google-analytics-for-wordpress'), |
|
68 | + 'name' => __( 'Want to increase your traffic, conversion, & engagement?', 'google-analytics-for-wordpress' ), |
|
69 | 69 | 'type' => 'upgrade_notice', |
70 | 70 | 'desc' => esc_html__( "By upgrading to MonsterInsights Pro, you can adjust the sample rate so you don't exceed Google Analytics' processing limit. You can also use it to enable Google Optimize for A/B testing and personalization.", 'google-analytics-for-wordpress' ) |
71 | 71 | ); |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | $settings['reporting']['reporting_notice'] = array( |
75 | 75 | 'id' => 'reporting_notice', |
76 | 76 | 'no_label' => true, |
77 | - 'name' => __( 'Want to increase your traffic, conversion, & engagement?', 'google-analytics-for-wordpress'), |
|
77 | + 'name' => __( 'Want to increase your traffic, conversion, & engagement?', 'google-analytics-for-wordpress' ), |
|
78 | 78 | 'type' => 'upgrade_notice', |
79 | 79 | 'desc' => esc_html__( "By upgrading to MonsterInsights Pro, you can enable enhanced reporting.", 'google-analytics-for-wordpress' ) |
80 | 80 | ); |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | $settings['amp']['amp_notice'] = array( |
84 | 84 | 'id' => 'amp_notice', |
85 | 85 | 'no_label' => true, |
86 | - 'name' => __( 'Want to use track users visiting your AMP pages?', 'google-analytics-for-wordpress'), |
|
86 | + 'name' => __( 'Want to use track users visiting your AMP pages?', 'google-analytics-for-wordpress' ), |
|
87 | 87 | 'type' => 'upgrade_notice', |
88 | 88 | 'desc' => esc_html__( "By upgrading to MonsterInsights Pro, you can enable AMP page tracking.", 'google-analytics-for-wordpress' ) |
89 | 89 | ); |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | $settings['goptimize']['goptimize_notice'] = array( |
93 | 93 | 'id' => 'goptimize_notice', |
94 | 94 | 'no_label' => true, |
95 | - 'name' => __( 'Want to use Google Optimize to retarget your website vistors and perform A/B split tests with ease?', 'google-analytics-for-wordpress'), |
|
95 | + 'name' => __( 'Want to use Google Optimize to retarget your website vistors and perform A/B split tests with ease?', 'google-analytics-for-wordpress' ), |
|
96 | 96 | 'type' => 'upgrade_notice', |
97 | 97 | 'desc' => esc_html__( "By upgrading to MonsterInsights Pro, you can enable Google Optimize.", 'google-analytics-for-wordpress' ) |
98 | 98 | ); |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | $settings['fbia']['fbia_notice'] = array( |
102 | 102 | 'id' => 'fbia_notice', |
103 | 103 | 'no_label' => true, |
104 | - 'name' => __( 'Want to expand your website audience beyond your website with Facebook Instant Articles?', 'google-analytics-for-wordpress'), |
|
104 | + 'name' => __( 'Want to expand your website audience beyond your website with Facebook Instant Articles?', 'google-analytics-for-wordpress' ), |
|
105 | 105 | 'type' => 'upgrade_notice', |
106 | 106 | 'desc' => esc_html__( "By upgrading to MonsterInsights Pro, you can track your Facebook Instant Article visitors with MonsterInsights.", 'google-analytics-for-wordpress' ) |
107 | 107 | ); |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | $settings['bounce']['bounce_notice'] = array( |
111 | 111 | 'id' => 'bounce_notice', |
112 | 112 | 'no_label' => true, |
113 | - 'name' => __( 'Want to adjust your website bounce rate?', 'google-analytics-for-wordpress'), |
|
113 | + 'name' => __( 'Want to adjust your website bounce rate?', 'google-analytics-for-wordpress' ), |
|
114 | 114 | 'type' => 'upgrade_notice', |
115 | 115 | 'desc' => esc_html__( "By upgrading to MonsterInsights Pro, you can adjust your Google Analytics bounce rate with MonsterInsights.", 'google-analytics-for-wordpress' ) |
116 | 116 | ); |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | $settings['notifications']['notifications_notice'] = array( |
120 | 120 | 'id' => 'notifications_notice', |
121 | 121 | 'no_label' => true, |
122 | - 'name' => __( 'Want to increase your traffic, conversion, & engagement?', 'google-analytics-for-wordpress'), |
|
122 | + 'name' => __( 'Want to increase your traffic, conversion, & engagement?', 'google-analytics-for-wordpress' ), |
|
123 | 123 | 'type' => 'upgrade_notice', |
124 | 124 | 'desc' => esc_html__( "By upgrading to MonsterInsights Pro, you can enable notifications.", 'google-analytics-for-wordpress' ) |
125 | 125 | ); |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | $settings['ecommerce']['ecommerce_notice'] = array( |
129 | 129 | 'id' => 'ecommerce_notice', |
130 | 130 | 'no_label' => true, |
131 | - 'name' => __( 'Want to increase your traffic, conversion, & engagement?', 'google-analytics-for-wordpress'), |
|
131 | + 'name' => __( 'Want to increase your traffic, conversion, & engagement?', 'google-analytics-for-wordpress' ), |
|
132 | 132 | 'type' => 'upgrade_notice', |
133 | 133 | 'desc' => esc_html__( "By upgrading to MonsterInsights Pro, you can add Ecommerce tracking to see who's buying your product, what's the most popular item on your store, the average order value, and tons more.", 'google-analytics-for-wordpress' ) |
134 | 134 | ); |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | // Exit if accessed directly |
4 | -if ( ! defined( 'ABSPATH' ) ) { |
|
4 | +if ( ! defined( 'ABSPATH' ) ) { |
|
5 | 5 | exit; |
6 | 6 | } |
7 | 7 |
@@ -23,7 +23,7 @@ |
||
23 | 23 | parent::__construct(); |
24 | 24 | } |
25 | 25 | |
26 | - protected function get_report_html( $data = array() ){ |
|
26 | + protected function get_report_html( $data = array() ) { |
|
27 | 27 | return $this->get_upsell_notice(); |
28 | 28 | } |
29 | 29 | } |
30 | 30 | \ No newline at end of file |
@@ -23,7 +23,7 @@ |
||
23 | 23 | parent::__construct(); |
24 | 24 | } |
25 | 25 | |
26 | - protected function get_report_html( $data = array() ){ |
|
26 | + protected function get_report_html( $data = array() ) { |
|
27 | 27 | return $this->get_upsell_notice(); |
28 | 28 | } |
29 | 29 | } |
30 | 30 | \ No newline at end of file |
@@ -23,7 +23,7 @@ |
||
23 | 23 | parent::__construct(); |
24 | 24 | } |
25 | 25 | |
26 | - protected function get_report_html( $data = array() ){ |
|
26 | + protected function get_report_html( $data = array() ) { |
|
27 | 27 | return $this->get_upsell_notice(); |
28 | 28 | } |
29 | 29 | } |
@@ -23,7 +23,7 @@ |
||
23 | 23 | parent::__construct(); |
24 | 24 | } |
25 | 25 | |
26 | - protected function get_report_html( $data = array() ){ |
|
26 | + protected function get_report_html( $data = array() ) { |
|
27 | 27 | return $this->get_upsell_notice(); |
28 | 28 | } |
29 | 29 | } |
@@ -227,7 +227,7 @@ discard block |
||
227 | 227 | self::$instance->notices = new MonsterInsights_Notice_Admin(); |
228 | 228 | self::$instance->license_actions = new MonsterInsights_License_Actions(); |
229 | 229 | self::$instance->reporting = new MonsterInsights_Reporting(); |
230 | - self::$instance->api_auth = new MonsterInsights_API_Auth(); |
|
230 | + self::$instance->api_auth = new MonsterInsights_API_Auth(); |
|
231 | 231 | if ( defined( 'DOING_CRON' ) && DOING_CRON ) { |
232 | 232 | self::$instance->require_updater(); |
233 | 233 | } else { |
@@ -351,19 +351,19 @@ discard block |
||
351 | 351 | } |
352 | 352 | |
353 | 353 | if ( ! defined( 'MONSTERINSIGHTS_PLUGIN_DIR' ) ) { |
354 | - define( 'MONSTERINSIGHTS_PLUGIN_DIR', plugin_dir_path( $this->file ) ); |
|
354 | + define( 'MONSTERINSIGHTS_PLUGIN_DIR', plugin_dir_path( $this->file ) ); |
|
355 | 355 | } |
356 | 356 | |
357 | 357 | if ( ! defined( 'GAWP_PATH' ) ) { |
358 | - define( 'GAWP_PATH', MONSTERINSIGHTS_PLUGIN_DIR ); |
|
358 | + define( 'GAWP_PATH', MONSTERINSIGHTS_PLUGIN_DIR ); |
|
359 | 359 | } |
360 | 360 | |
361 | 361 | if ( ! defined( 'MONSTERINSIGHTS_PLUGIN_URL' ) ) { |
362 | - define( 'MONSTERINSIGHTS_PLUGIN_URL', plugin_dir_url( $this->file ) ); |
|
362 | + define( 'MONSTERINSIGHTS_PLUGIN_URL', plugin_dir_url( $this->file ) ); |
|
363 | 363 | } |
364 | 364 | |
365 | 365 | if ( ! defined( 'GAWP_URL' ) ) { |
366 | - define( 'GAWP_URL', MONSTERINSIGHTS_PLUGIN_URL ); |
|
366 | + define( 'GAWP_URL', MONSTERINSIGHTS_PLUGIN_URL ); |
|
367 | 367 | } |
368 | 368 | } |
369 | 369 | |
@@ -383,7 +383,7 @@ discard block |
||
383 | 383 | } |
384 | 384 | |
385 | 385 | // Traditional WordPress plugin locale filter. |
386 | - $mi_locale = apply_filters( 'plugin_locale', $mi_locale, 'google-analytics-for-wordpress' ); |
|
386 | + $mi_locale = apply_filters( 'plugin_locale', $mi_locale, 'google-analytics-for-wordpress' ); |
|
387 | 387 | $mi_mofile = sprintf( '%1$s-%2$s.mo', 'google-analytics-for-wordpress', $mi_locale ); |
388 | 388 | |
389 | 389 | // Look for wp-content/languages/google-analytics-for-wordpress/google-analytics-for-wordpress-{lang}_{country}.mo |
@@ -440,7 +440,7 @@ discard block |
||
440 | 440 | public function monsterinsights_wp_notice() { |
441 | 441 | $url = admin_url( 'plugins.php' ); |
442 | 442 | // Check for MS dashboard |
443 | - if( is_network_admin() ) { |
|
443 | + if ( is_network_admin() ) { |
|
444 | 444 | $url = network_admin_url( 'plugins.php' ); |
445 | 445 | } |
446 | 446 | ?> |
@@ -461,7 +461,7 @@ discard block |
||
461 | 461 | public function monsterinsights_pro_notice() { |
462 | 462 | $url = admin_url( 'plugins.php' ); |
463 | 463 | // Check for MS dashboard |
464 | - if( is_network_admin() ) { |
|
464 | + if ( is_network_admin() ) { |
|
465 | 465 | $url = network_admin_url( 'plugins.php' ); |
466 | 466 | } |
467 | 467 | ?> |
@@ -487,7 +487,7 @@ discard block |
||
487 | 487 | require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/options.php'; |
488 | 488 | require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/helpers.php'; |
489 | 489 | require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/deprecated.php'; |
490 | - $monsterinsights_settings = monsterinsights_get_options(); |
|
490 | + $monsterinsights_settings = monsterinsights_get_options(); |
|
491 | 491 | } |
492 | 492 | |
493 | 493 | |
@@ -501,7 +501,7 @@ discard block |
||
501 | 501 | * |
502 | 502 | * @return void |
503 | 503 | */ |
504 | - public function load_licensing(){ |
|
504 | + public function load_licensing() { |
|
505 | 505 | if ( is_admin() || ( defined( 'DOING_CRON' ) && DOING_CRON ) ) { |
506 | 506 | require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/license.php'; |
507 | 507 | self::$instance->license = new MonsterInsights_License(); |
@@ -672,7 +672,7 @@ discard block |
||
672 | 672 | $instance->api_auth->delete_auth(); |
673 | 673 | |
674 | 674 | // Delete network data |
675 | - $instance->reporting->delete_aggregate_data('network'); |
|
675 | + $instance->reporting->delete_aggregate_data( 'network' ); |
|
676 | 676 | |
677 | 677 | // Delete network license |
678 | 678 | $instance->license->delete_network_license(); |
@@ -686,7 +686,7 @@ discard block |
||
686 | 686 | $instance->api_auth->delete_auth(); |
687 | 687 | |
688 | 688 | // Delete data |
689 | - $instance->reporting->delete_aggregate_data('site'); |
|
689 | + $instance->reporting->delete_aggregate_data( 'site' ); |
|
690 | 690 | |
691 | 691 | // Delete license |
692 | 692 | $instance->license->delete_site_license(); |
@@ -698,7 +698,7 @@ discard block |
||
698 | 698 | $instance->api_auth->delete_auth(); |
699 | 699 | |
700 | 700 | // Delete data |
701 | - $instance->reporting->delete_aggregate_data('site'); |
|
701 | + $instance->reporting->delete_aggregate_data( 'site' ); |
|
702 | 702 | |
703 | 703 | // Delete license |
704 | 704 | $instance->license->delete_site_license(); |
@@ -793,7 +793,7 @@ discard block |
||
793 | 793 | * |
794 | 794 | * @return void |
795 | 795 | */ |
796 | -function monsterinsights_lite_call_install_and_upgrade(){ |
|
796 | +function monsterinsights_lite_call_install_and_upgrade() { |
|
797 | 797 | add_action( 'wp_loaded', 'monsterinsights_lite_install_and_upgrade' ); |
798 | 798 | } |
799 | 799 |
@@ -501,7 +501,7 @@ discard block |
||
501 | 501 | * |
502 | 502 | * @return void |
503 | 503 | */ |
504 | - public function load_licensing(){ |
|
504 | + public function load_licensing() { |
|
505 | 505 | if ( is_admin() || ( defined( 'DOING_CRON' ) && DOING_CRON ) ) { |
506 | 506 | require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/license.php'; |
507 | 507 | self::$instance->license = new MonsterInsights_License(); |
@@ -793,7 +793,7 @@ discard block |
||
793 | 793 | * |
794 | 794 | * @return void |
795 | 795 | */ |
796 | -function monsterinsights_lite_call_install_and_upgrade(){ |
|
796 | +function monsterinsights_lite_call_install_and_upgrade() { |
|
797 | 797 | add_action( 'wp_loaded', 'monsterinsights_lite_install_and_upgrade' ); |
798 | 798 | } |
799 | 799 |
@@ -23,7 +23,7 @@ |
||
23 | 23 | parent::__construct(); |
24 | 24 | } |
25 | 25 | |
26 | - protected function get_report_html( $data = array() ){ |
|
26 | + protected function get_report_html( $data = array() ) { |
|
27 | 27 | return $this->get_upsell_notice(); |
28 | 28 | } |
29 | 29 | } |
30 | 30 | \ No newline at end of file |
@@ -23,7 +23,7 @@ |
||
23 | 23 | parent::__construct(); |
24 | 24 | } |
25 | 25 | |
26 | - protected function get_report_html( $data = array() ){ |
|
26 | + protected function get_report_html( $data = array() ) { |
|
27 | 27 | return $this->get_upsell_notice(); |
28 | 28 | } |
29 | 29 | } |
30 | 30 | \ No newline at end of file |