@@ -33,13 +33,13 @@ |
||
33 | 33 | $track_user = monsterinsights_track_user(); |
34 | 34 | |
35 | 35 | if ( $track_user ) { |
36 | - require_once plugin_dir_path( MONSTERINSIGHTS_PLUGIN_FILE ) . 'includes/frontend/events/class-analytics-events.php'; |
|
37 | - new MonsterInsights_Analytics_Events(); |
|
36 | + require_once plugin_dir_path( MONSTERINSIGHTS_PLUGIN_FILE ) . 'includes/frontend/events/class-analytics-events.php'; |
|
37 | + new MonsterInsights_Analytics_Events(); |
|
38 | 38 | |
39 | - // Let's run form tracking if we find it |
|
40 | - if ( function_exists( 'monsterinsights_forms_output_after_script' ) ) { |
|
41 | - monsterinsights_forms_output_after_script( array() ); |
|
42 | - } |
|
39 | + // Let's run form tracking if we find it |
|
40 | + if ( function_exists( 'monsterinsights_forms_output_after_script' ) ) { |
|
41 | + monsterinsights_forms_output_after_script( array() ); |
|
42 | + } |
|
43 | 43 | } |
44 | 44 | } |
45 | 45 | add_action( 'seedprod_monsterinsights_output_tracking', 'monsterinsights_seedprod_tracking', 6, 1 ); |
46 | 46 | \ No newline at end of file |
@@ -30,7 +30,7 @@ |
||
30 | 30 | do_action( 'monsterinsights_tracking_after_analytics' ); |
31 | 31 | do_action( 'monsterinsights_tracking_after', 'analytics' ); |
32 | 32 | |
33 | - $track_user = monsterinsights_track_user(); |
|
33 | + $track_user = monsterinsights_track_user(); |
|
34 | 34 | |
35 | 35 | if ( $track_user ) { |
36 | 36 | require_once plugin_dir_path( MONSTERINSIGHTS_PLUGIN_FILE ) . 'includes/frontend/events/class-analytics-events.php'; |
@@ -34,13 +34,13 @@ discard block |
||
34 | 34 | do_action( 'monsterinsights_tracking_before_' . $mode ); |
35 | 35 | do_action( 'monsterinsights_tracking_before', $mode ); |
36 | 36 | if ( $mode === 'preview' ) { |
37 | - require_once plugin_dir_path( MONSTERINSIGHTS_PLUGIN_FILE ) . 'includes/frontend/tracking/class-tracking-preview.php'; |
|
38 | - $tracking = new MonsterInsights_Tracking_Preview(); |
|
39 | - echo $tracking->frontend_output(); |
|
37 | + require_once plugin_dir_path( MONSTERINSIGHTS_PLUGIN_FILE ) . 'includes/frontend/tracking/class-tracking-preview.php'; |
|
38 | + $tracking = new MonsterInsights_Tracking_Preview(); |
|
39 | + echo $tracking->frontend_output(); |
|
40 | 40 | } else { |
41 | - require_once plugin_dir_path( MONSTERINSIGHTS_PLUGIN_FILE ) . 'includes/frontend/tracking/class-tracking-analytics.php'; |
|
42 | - $tracking = new MonsterInsights_Tracking_Analytics(); |
|
43 | - echo $tracking->frontend_output(); |
|
41 | + require_once plugin_dir_path( MONSTERINSIGHTS_PLUGIN_FILE ) . 'includes/frontend/tracking/class-tracking-analytics.php'; |
|
42 | + $tracking = new MonsterInsights_Tracking_Analytics(); |
|
43 | + echo $tracking->frontend_output(); |
|
44 | 44 | } |
45 | 45 | |
46 | 46 | do_action( 'monsterinsights_tracking_after_' . $mode ); |
@@ -65,10 +65,10 @@ discard block |
||
65 | 65 | $track_user = monsterinsights_track_user(); |
66 | 66 | |
67 | 67 | if ( $track_user ) { |
68 | - require_once plugin_dir_path( MONSTERINSIGHTS_PLUGIN_FILE ) . 'includes/frontend/events/class-analytics-events.php'; |
|
69 | - new MonsterInsights_Analytics_Events(); |
|
68 | + require_once plugin_dir_path( MONSTERINSIGHTS_PLUGIN_FILE ) . 'includes/frontend/events/class-analytics-events.php'; |
|
69 | + new MonsterInsights_Analytics_Events(); |
|
70 | 70 | } else { |
71 | - // User is in the disabled group or events mode is off |
|
71 | + // User is in the disabled group or events mode is off |
|
72 | 72 | } |
73 | 73 | } |
74 | 74 | add_action( 'template_redirect', 'monsterinsights_events_tracking', 9 ); |
@@ -87,17 +87,17 @@ discard block |
||
87 | 87 | global $post; |
88 | 88 | |
89 | 89 | if ( monsterinsights_get_option( 'tag_links_in_rss', false ) ){ |
90 | - if ( is_feed() ) { |
|
91 | - if ( monsterinsights_get_option( 'allow_anchor', false ) ) { |
|
92 | - $delimiter = '#'; |
|
93 | - } else { |
|
94 | - $delimiter = '?'; |
|
95 | - if ( strpos( $guid, $delimiter ) > 0 ) { |
|
96 | - $delimiter = '&'; |
|
97 | - } |
|
98 | - } |
|
99 | - return $guid . $delimiter . 'utm_source=rss&utm_medium=rss&utm_campaign=' . urlencode( $post->post_name ); |
|
100 | - } |
|
90 | + if ( is_feed() ) { |
|
91 | + if ( monsterinsights_get_option( 'allow_anchor', false ) ) { |
|
92 | + $delimiter = '#'; |
|
93 | + } else { |
|
94 | + $delimiter = '?'; |
|
95 | + if ( strpos( $guid, $delimiter ) > 0 ) { |
|
96 | + $delimiter = '&'; |
|
97 | + } |
|
98 | + } |
|
99 | + return $guid . $delimiter . 'utm_source=rss&utm_medium=rss&utm_campaign=' . urlencode( $post->post_name ); |
|
100 | + } |
|
101 | 101 | } |
102 | 102 | return $guid; |
103 | 103 | } |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | * @return array Array of the options to use. |
63 | 63 | */ |
64 | 64 | function monsterinsights_events_tracking( ) { |
65 | - $track_user = monsterinsights_track_user(); |
|
65 | + $track_user = monsterinsights_track_user(); |
|
66 | 66 | |
67 | 67 | if ( $track_user ) { |
68 | 68 | require_once plugin_dir_path( MONSTERINSIGHTS_PLUGIN_FILE ) . 'includes/frontend/events/class-analytics-events.php'; |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | function monsterinsights_rss_link_tagger( $guid ) { |
87 | 87 | global $post; |
88 | 88 | |
89 | - if ( monsterinsights_get_option( 'tag_links_in_rss', false ) ){ |
|
89 | + if ( monsterinsights_get_option( 'tag_links_in_rss', false ) ) { |
|
90 | 90 | if ( is_feed() ) { |
91 | 91 | if ( monsterinsights_get_option( 'allow_anchor', false ) ) { |
92 | 92 | $delimiter = '#'; |
@@ -56,7 +56,7 @@ |
||
56 | 56 | |
57 | 57 | |
58 | 58 | /** |
59 | - * Error page HTML |
|
59 | + * Error page HTML |
|
60 | 60 | **/ |
61 | 61 | function monsterinsights_settings_error_page( $id = 'monsterinsights-vue-site-sett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discard block |
||
40 | 40 | |
41 | 41 | // Get addons data from transient or perform API query if no transient. |
42 | 42 | if ( false === ( $addons = get_transient( '_monsterinsights_addons' ) ) ) { |
43 | - $addons = monsterinsights_get_addons_data( $key ); |
|
43 | + $addons = monsterinsights_get_addons_data( $key ); |
|
44 | 44 | } |
45 | 45 | |
46 | 46 | // If no Addons exist, return false |
47 | 47 | if ( ! $addons ) { |
48 | - return false; |
|
48 | + return false; |
|
49 | 49 | } |
50 | 50 | |
51 | 51 | // Iterate through Addons, to build two arrays: |
52 | 52 | // - Addons the user is licensed to use, |
53 | 53 | // - Addons the user isn't licensed to use. |
54 | 54 | $results = array( |
55 | - 'licensed' => array(), |
|
56 | - 'unlicensed'=> array(), |
|
55 | + 'licensed' => array(), |
|
56 | + 'unlicensed'=> array(), |
|
57 | 57 | ); |
58 | 58 | foreach ( (array) $addons as $i => $addon ) { |
59 | 59 | |
60 | - // Determine whether the user is licensed to use this Addon or not. |
|
61 | - if ( |
|
62 | - empty( $type ) || |
|
63 | - ( in_array( 'Pro', $addon->categories ) && ( $type != 'pro' && $type != 'master' ) ) || |
|
64 | - ( in_array( 'Plus', $addon->categories ) && $type != 'plus' && $type != 'pro' && $type != 'master' ) || |
|
65 | - ( in_array( 'Basic', $addon->categories ) && ( $type != 'basic' && $type != 'plus' && $type != 'pro' && $type != 'master' ) ) |
|
66 | - ) { |
|
67 | - // Unlicensed |
|
68 | - $results['unlicensed'][] = $addon; |
|
69 | - continue; |
|
70 | - } |
|
71 | - |
|
72 | - // Licensed |
|
73 | - $results['licensed'][] = $addon; |
|
60 | + // Determine whether the user is licensed to use this Addon or not. |
|
61 | + if ( |
|
62 | + empty( $type ) || |
|
63 | + ( in_array( 'Pro', $addon->categories ) && ( $type != 'pro' && $type != 'master' ) ) || |
|
64 | + ( in_array( 'Plus', $addon->categories ) && $type != 'plus' && $type != 'pro' && $type != 'master' ) || |
|
65 | + ( in_array( 'Basic', $addon->categories ) && ( $type != 'basic' && $type != 'plus' && $type != 'pro' && $type != 'master' ) ) |
|
66 | + ) { |
|
67 | + // Unlicensed |
|
68 | + $results['unlicensed'][] = $addon; |
|
69 | + continue; |
|
70 | + } |
|
71 | + |
|
72 | + // Licensed |
|
73 | + $results['licensed'][] = $addon; |
|
74 | 74 | |
75 | 75 | } |
76 | 76 | |
@@ -93,21 +93,21 @@ discard block |
||
93 | 93 | // Get Addons |
94 | 94 | // If the key is valid, we'll get personalised upgrade URLs for each Addon (if necessary) and plugin update information. |
95 | 95 | if ( $key ) { |
96 | - $addons = MonsterInsights()->license_actions->perform_remote_request( 'get-addons-data-v600', array( 'tgm-updater-key' => $key ) ); |
|
96 | + $addons = MonsterInsights()->license_actions->perform_remote_request( 'get-addons-data-v600', array( 'tgm-updater-key' => $key ) ); |
|
97 | 97 | } else { |
98 | - $addons = MonsterInsights()->license_actions->perform_remote_request( 'get-all-addons-data', array() ); |
|
98 | + $addons = MonsterInsights()->license_actions->perform_remote_request( 'get-all-addons-data', array() ); |
|
99 | 99 | } |
100 | 100 | |
101 | 101 | // If there was an API error, set transient for only 10 minutes. |
102 | 102 | if ( ! $addons ) { |
103 | - set_transient( '_monsterinsights_addons', false, 10 * MINUTE_IN_SECONDS ); |
|
104 | - return false; |
|
103 | + set_transient( '_monsterinsights_addons', false, 10 * MINUTE_IN_SECONDS ); |
|
104 | + return false; |
|
105 | 105 | } |
106 | 106 | |
107 | 107 | // If there was an error retrieving the addons, set the error. |
108 | 108 | if ( isset( $addons->error ) ) { |
109 | - set_transient( '_monsterinsights_addons', false, 10 * MINUTE_IN_SECONDS ); |
|
110 | - return false; |
|
109 | + set_transient( '_monsterinsights_addons', false, 10 * MINUTE_IN_SECONDS ); |
|
110 | + return false; |
|
111 | 111 | } |
112 | 112 | |
113 | 113 | // Otherwise, our request worked. Save the data and return it. |
@@ -128,9 +128,9 @@ discard block |
||
128 | 128 | $keys = array_keys( get_plugins() ); |
129 | 129 | |
130 | 130 | foreach ( $keys as $key ) { |
131 | - if ( preg_match( '|^' . $slug . '|', $key ) ) { |
|
132 | - return $key; |
|
133 | - } |
|
131 | + if ( preg_match( '|^' . $slug . '|', $key ) ) { |
|
132 | + return $key; |
|
133 | + } |
|
134 | 134 | } |
135 | 135 | |
136 | 136 | return $slug; |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | * not be used by other developers. This hook's behavior may be modified |
39 | 39 | * or the hook may be removed at any time, without warning. |
40 | 40 | */ |
41 | - $reports = apply_filters( 'monsterinsights_get_reports', array() ); |
|
41 | + $reports = apply_filters( 'monsterinsights_get_reports', array() ); |
|
42 | 42 | return $reports; |
43 | 43 | } |
44 | 44 | |
@@ -60,22 +60,22 @@ discard block |
||
60 | 60 | */ |
61 | 61 | do_action( 'monsterinsights_head' ); |
62 | 62 | echo monsterinsights_ublock_notice(); |
63 | - monsterinsights_settings_error_page( 'monsterinsights-reports'); |
|
63 | + monsterinsights_settings_error_page( 'monsterinsights-reports' ); |
|
64 | 64 | } |
65 | 65 | |
66 | 66 | function monsterinsights_refresh_reports_data() { |
67 | 67 | check_ajax_referer( 'mi-admin-nonce', 'security' ); |
68 | 68 | |
69 | 69 | // Get variables |
70 | - $start = ! empty( $_REQUEST['start'] ) ? $_REQUEST['start'] : ''; |
|
71 | - $end = ! empty( $_REQUEST['end'] ) ? $_REQUEST['end'] : ''; |
|
72 | - $name = ! empty( $_REQUEST['report'] ) ? $_REQUEST['report'] : ''; |
|
73 | - $isnetwork = ! empty( $_REQUEST['isnetwork'] ) ? $_REQUEST['isnetwork'] : ''; |
|
70 | + $start = ! empty( $_REQUEST['start'] ) ? $_REQUEST['start'] : ''; |
|
71 | + $end = ! empty( $_REQUEST['end'] ) ? $_REQUEST['end'] : ''; |
|
72 | + $name = ! empty( $_REQUEST['report'] ) ? $_REQUEST['report'] : ''; |
|
73 | + $isnetwork = ! empty( $_REQUEST['isnetwork'] ) ? $_REQUEST['isnetwork'] : ''; |
|
74 | 74 | |
75 | 75 | |
76 | 76 | // Current user can authenticate |
77 | 77 | if ( ! current_user_can( 'monsterinsights_view_dashboard' ) ) { |
78 | - wp_send_json_error( array( 'message' => __( "You don't have permission to view MonsterInsights reports.", 'google-analytics-for-wordpress' ) ) ); |
|
78 | + wp_send_json_error( array( 'message' => __( "You don't have permission to view MonsterInsights reports.", 'google-analytics-for-wordpress' ) ) ); |
|
79 | 79 | } |
80 | 80 | |
81 | 81 | if ( ! empty( $_REQUEST['isnetwork'] ) && $_REQUEST['isnetwork'] ) { |
@@ -83,15 +83,15 @@ discard block |
||
83 | 83 | } |
84 | 84 | |
85 | 85 | // Only for Pro users, require a license key to be entered first so we can link to things. |
86 | - if ( monsterinsights_is_pro_version() ) { |
|
86 | + if ( monsterinsights_is_pro_version() ) { |
|
87 | 87 | if ( ! MonsterInsights()->license->is_site_licensed() && ! MonsterInsights()->license->is_network_licensed() ) { |
88 | - wp_send_json_error( array( 'message' => __( "You can't view MonsterInsights reports because you are not licensed.", 'google-analytics-for-wordpress' ) ) ); |
|
88 | + wp_send_json_error( array( 'message' => __( "You can't view MonsterInsights reports because you are not licensed.", 'google-analytics-for-wordpress' ) ) ); |
|
89 | 89 | } else if ( MonsterInsights()->license->is_site_licensed() && ! MonsterInsights()->license->site_license_has_error() ) { |
90 | 90 | // good to go: site licensed |
91 | 91 | } else if ( MonsterInsights()->license->is_network_licensed() && ! MonsterInsights()->license->network_license_has_error() ) { |
92 | 92 | // good to go: network licensed |
93 | 93 | } else { |
94 | - wp_send_json_error( array( 'message' => __( "You can't view MonsterInsights reports due to license key errors.", 'google-analytics-for-wordpress' ) ) ); |
|
94 | + wp_send_json_error( array( 'message' => __( "You can't view MonsterInsights reports due to license key errors.", 'google-analytics-for-wordpress' ) ) ); |
|
95 | 95 | } |
96 | 96 | } |
97 | 97 | |
@@ -99,20 +99,20 @@ discard block |
||
99 | 99 | $site_auth = MonsterInsights()->auth->get_viewname(); |
100 | 100 | $ms_auth = is_multisite() && MonsterInsights()->auth->get_network_viewname(); |
101 | 101 | if ( ! $site_auth && ! $ms_auth ) { |
102 | - wp_send_json_error( array( 'message' => __( "You must authenticate with MonsterInsights before you can view reports.", 'google-analytics-for-wordpress' ) ) ); |
|
102 | + wp_send_json_error( array( 'message' => __( "You must authenticate with MonsterInsights before you can view reports.", 'google-analytics-for-wordpress' ) ) ); |
|
103 | 103 | } |
104 | 104 | |
105 | 105 | if ( empty( $name ) ) { |
106 | - wp_send_json_error( array( 'message' => __( "Unknown report. Try refreshing and retrying. Contact support if this issue persists.", 'google-analytics-for-wordpress' ) ) ); |
|
106 | + wp_send_json_error( array( 'message' => __( "Unknown report. Try refreshing and retrying. Contact support if this issue persists.", 'google-analytics-for-wordpress' ) ) ); |
|
107 | 107 | } |
108 | 108 | |
109 | 109 | $report = MonsterInsights()->reporting->get_report( $name ); |
110 | 110 | |
111 | 111 | if ( empty( $report ) ) { |
112 | - wp_send_json_error( array( 'message' => __( "Unknown report. Try refreshing and retrying. Contact support if this issue persists.", 'google-analytics-for-wordpress' ) ) ); |
|
112 | + wp_send_json_error( array( 'message' => __( "Unknown report. Try refreshing and retrying. Contact support if this issue persists.", 'google-analytics-for-wordpress' ) ) ); |
|
113 | 113 | } |
114 | 114 | |
115 | - $args = array( 'start' => $start, 'end' => $end ); |
|
115 | + $args = array( 'start' => $start, 'end' => $end ); |
|
116 | 116 | if ( $isnetwork ) { |
117 | 117 | $args['network'] = true; |
118 | 118 | } |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | 'success' => true |
127 | 127 | ) |
128 | 128 | ); |
129 | - wp_send_json_success( array( 'html' => $data ) ); |
|
129 | + wp_send_json_success( array( 'html' => $data ) ); |
|
130 | 130 | } else { |
131 | 131 | wp_send_json_error( array( 'message' => $data['error'], 'data' => $data['data'] ) ); |
132 | 132 | } |
@@ -19,28 +19,28 @@ |
||
19 | 19 | global $admin_page_hooks; |
20 | 20 | |
21 | 21 | if ( ! is_object( $current_screen ) || empty( $current_screen->id ) || empty( $admin_page_hooks ) ) { |
22 | - return false; |
|
22 | + return false; |
|
23 | 23 | } |
24 | 24 | |
25 | 25 | $settings_page = false; |
26 | 26 | if ( ! empty( $admin_page_hooks['monsterinsights_settings'] ) && $current_screen->id === $admin_page_hooks['monsterinsights_settings'] ) { |
27 | - $settings_page = true; |
|
27 | + $settings_page = true; |
|
28 | 28 | } |
29 | 29 | |
30 | 30 | if ( $current_screen->id === 'toplevel_page_monsterinsights_settings' ) { |
31 | - $settings_page = true; |
|
31 | + $settings_page = true; |
|
32 | 32 | } |
33 | 33 | |
34 | 34 | if ( $current_screen->id === 'insights_page_monsterinsights_settings' ) { |
35 | - $settings_page = true; |
|
35 | + $settings_page = true; |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | if ( strpos( $current_screen->id, 'monsterinsights_settings' ) !== false ) { |
39 | - $settings_page = true; |
|
39 | + $settings_page = true; |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | if ( ! empty( $current_screen->base ) && strpos( $current_screen->base, 'monsterinsights_network' ) !== false ) { |
43 | - $settings_page = true; |
|
43 | + $settings_page = true; |
|
44 | 44 | } |
45 | 45 | |
46 | 46 | return $settings_page; |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | return; |
41 | 41 | } |
42 | 42 | |
43 | - $site_license = array( |
|
43 | + $site_license = array( |
|
44 | 44 | 'key' => MonsterInsights()->license->get_site_license_key(), |
45 | 45 | 'type' => MonsterInsights()->license->get_site_license_type(), |
46 | 46 | 'is_disabled' => MonsterInsights()->license->site_license_disabled(), |
@@ -100,8 +100,8 @@ discard block |
||
100 | 100 | // Array fields are needed even if empty. |
101 | 101 | $array_fields = array( 'view_reports', 'save_settings', 'ignore_users' ); |
102 | 102 | foreach ( $array_fields as $array_field ) { |
103 | - if ( ! isset( $options[ $array_field ] ) ) { |
|
104 | - $options[ $array_field ] = array(); |
|
103 | + if ( ! isset( $options[$array_field] ) ) { |
|
104 | + $options[$array_field] = array(); |
|
105 | 105 | } |
106 | 106 | } |
107 | 107 | if ( isset( $options['custom_code'] ) ) { |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | } |
176 | 176 | } |
177 | 177 | if ( $empty ) { |
178 | - unset( $value[ $key ] ); |
|
178 | + unset( $value[$key] ); |
|
179 | 179 | } |
180 | 180 | } |
181 | 181 | } |
@@ -225,7 +225,7 @@ discard block |
||
225 | 225 | } else { |
226 | 226 | $addon = $this->get_addon( $installed_plugins, $addons_type, $addon, $slug ); |
227 | 227 | } |
228 | - $parsed_addons[ $addon->slug ] = $addon; |
|
228 | + $parsed_addons[$addon->slug] = $addon; |
|
229 | 229 | } |
230 | 230 | } |
231 | 231 | |
@@ -310,7 +310,7 @@ discard block |
||
310 | 310 | $installed = false; |
311 | 311 | $plugin_basename = monsterinsights_get_plugin_basename_from_slug( $slug ); |
312 | 312 | |
313 | - if ( isset( $installed_plugins[ $plugin_basename ] ) ) { |
|
313 | + if ( isset( $installed_plugins[$plugin_basename] ) ) { |
|
314 | 314 | $installed = true; |
315 | 315 | $ms_active = is_plugin_active_for_network( $plugin_basename ); |
316 | 316 | $ss_active = is_plugin_active( $plugin_basename ); |
@@ -455,8 +455,8 @@ discard block |
||
455 | 455 | ); |
456 | 456 | |
457 | 457 | foreach ( $exclude as $e ) { |
458 | - if ( ! empty( $new_settings[ $e ] ) ) { |
|
459 | - unset( $new_settings[ $e ] ); |
|
458 | + if ( ! empty( $new_settings[$e] ) ) { |
|
459 | + unset( $new_settings[$e] ); |
|
460 | 460 | } |
461 | 461 | } |
462 | 462 | |
@@ -467,8 +467,8 @@ discard block |
||
467 | 467 | } |
468 | 468 | |
469 | 469 | foreach ( $exclude as $e ) { |
470 | - if ( ! empty( $settings[ $e ] ) ) { |
|
471 | - $new_settings = $settings[ $e ]; |
|
470 | + if ( ! empty( $settings[$e] ) ) { |
|
471 | + $new_settings = $settings[$e]; |
|
472 | 472 | } |
473 | 473 | } |
474 | 474 | |
@@ -616,7 +616,7 @@ discard block |
||
616 | 616 | ), |
617 | 617 | admin_url( 'admin.php' ) |
618 | 618 | ); |
619 | - $url = esc_url( $url ); |
|
619 | + $url = esc_url( $url ); |
|
620 | 620 | |
621 | 621 | ob_start(); |
622 | 622 | if ( false === ( $creds = request_filesystem_credentials( $url, $method, false, false, null ) ) ) { |
@@ -47,17 +47,17 @@ |
||
47 | 47 | if ( ! empty( $data['data']['countries'] ) ) { |
48 | 48 | $country_names = monsterinsights_get_country_list( true ); |
49 | 49 | foreach ( $data['data']['countries'] as $key => $country ) { |
50 | - $data['data']['countries'][ $key ]['name'] = isset( $country_names[ $country['iso'] ] ) ? $country_names[ $country['iso'] ] : $country['iso']; |
|
50 | + $data['data']['countries'][$key]['name'] = isset( $country_names[$country['iso']] ) ? $country_names[$country['iso']] : $country['iso']; |
|
51 | 51 | } |
52 | 52 | } |
53 | 53 | |
54 | 54 | // Escape urls for the top pages report. |
55 | 55 | if ( ! empty( $data['data']['toppages'] ) ) { |
56 | 56 | foreach ( $data['data']['toppages'] as $key => $page ) { |
57 | - $title = $data['data']['toppages'][ $key ]['title']; |
|
58 | - $url = '(not set)' === $title ? '' : esc_url( $data['data']['toppages'][ $key ]['hostname'] ); |
|
57 | + $title = $data['data']['toppages'][$key]['title']; |
|
58 | + $url = '(not set)' === $title ? '' : esc_url( $data['data']['toppages'][$key]['hostname'] ); |
|
59 | 59 | |
60 | - $data['data']['toppages'][ $key ]['hostname'] = $url; |
|
60 | + $data['data']['toppages'][$key]['hostname'] = $url; |
|
61 | 61 | } |
62 | 62 | } |
63 | 63 |
@@ -34,23 +34,23 @@ discard block |
||
34 | 34 | $menu_icon_inline = monsterinsights_get_inline_menu_icon(); |
35 | 35 | |
36 | 36 | if ( $dashboards_disabled || ! $is_authed || ( current_user_can( 'monsterinsights_save_settings' ) && ! current_user_can( 'monsterinsights_view_dashboard' ) ) ) { |
37 | - // If dashboards disabled, first settings page |
|
38 | - add_menu_page( __( 'MonsterInsights', 'google-analytics-for-wordpress' ), __( 'Insights', 'google-analytics-for-wordpress' ), 'monsterinsights_save_settings', 'monsterinsights_settings', 'monsterinsights_settings_page', $menu_icon_inline, '100.00013467543' ); |
|
39 | - $hook = 'monsterinsights_settings'; |
|
37 | + // If dashboards disabled, first settings page |
|
38 | + add_menu_page( __( 'MonsterInsights', 'google-analytics-for-wordpress' ), __( 'Insights', 'google-analytics-for-wordpress' ), 'monsterinsights_save_settings', 'monsterinsights_settings', 'monsterinsights_settings_page', $menu_icon_inline, '100.00013467543' ); |
|
39 | + $hook = 'monsterinsights_settings'; |
|
40 | 40 | |
41 | - add_submenu_page( $hook, __( 'MonsterInsights', 'google-analytics-for-wordpress' ), __( 'Settings', 'google-analytics-for-wordpress' ), 'monsterinsights_save_settings', 'monsterinsights_settings' ); |
|
41 | + add_submenu_page( $hook, __( 'MonsterInsights', 'google-analytics-for-wordpress' ), __( 'Settings', 'google-analytics-for-wordpress' ), 'monsterinsights_save_settings', 'monsterinsights_settings' ); |
|
42 | 42 | } else { |
43 | - // if dashboards enabled, first dashboard |
|
44 | - add_menu_page( __( 'General:', 'google-analytics-for-wordpress' ), __( 'Insights', 'google-analytics-for-wordpress' ), 'monsterinsights_view_dashboard', 'monsterinsights_reports', 'monsterinsights_reports_page', $menu_icon_inline, '100.00013467543' ); |
|
43 | + // if dashboards enabled, first dashboard |
|
44 | + add_menu_page( __( 'General:', 'google-analytics-for-wordpress' ), __( 'Insights', 'google-analytics-for-wordpress' ), 'monsterinsights_view_dashboard', 'monsterinsights_reports', 'monsterinsights_reports_page', $menu_icon_inline, '100.00013467543' ); |
|
45 | 45 | |
46 | - $hook = 'monsterinsights_reports'; |
|
46 | + $hook = 'monsterinsights_reports'; |
|
47 | 47 | |
48 | - add_submenu_page( $hook, __( 'General Reports:', 'google-analytics-for-wordpress' ), __( 'Reports', 'google-analytics-for-wordpress' ), 'monsterinsights_view_dashboard', 'monsterinsights_reports', 'monsterinsights_reports_page' ); |
|
48 | + add_submenu_page( $hook, __( 'General Reports:', 'google-analytics-for-wordpress' ), __( 'Reports', 'google-analytics-for-wordpress' ), 'monsterinsights_view_dashboard', 'monsterinsights_reports', 'monsterinsights_reports_page' ); |
|
49 | 49 | |
50 | - // then settings page |
|
51 | - add_submenu_page( $hook, __( 'MonsterInsights', 'google-analytics-for-wordpress' ), __( 'Settings', 'google-analytics-for-wordpress' ), 'monsterinsights_save_settings', 'monsterinsights_settings', 'monsterinsights_settings_page' ); |
|
50 | + // then settings page |
|
51 | + add_submenu_page( $hook, __( 'MonsterInsights', 'google-analytics-for-wordpress' ), __( 'Settings', 'google-analytics-for-wordpress' ), 'monsterinsights_save_settings', 'monsterinsights_settings', 'monsterinsights_settings_page' ); |
|
52 | 52 | |
53 | - // Add dashboard submenu. |
|
53 | + // Add dashboard submenu. |
|
54 | 54 | add_submenu_page( 'index.php', __( 'General Reports:', 'google-analytics-for-wordpress' ), __( 'Insights', 'google-analytics-for-wordpress' ), 'monsterinsights_view_dashboard', 'admin.php?page=monsterinsights_reports' ); |
55 | 55 | } |
56 | 56 | |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | // then addons |
63 | 63 | $network_key = MonsterInsights()->license->get_network_license_key(); |
64 | 64 | if ( ! monsterinsights_is_network_active() || ( monsterinsights_is_network_active() && empty( $network_key ) ) ) { |
65 | - add_submenu_page( $hook, __( 'Addons:', 'google-analytics-for-wordpress' ), '<span style="color:#7cc048"> ' . __( 'Addons', 'google-analytics-for-wordpress' ) . '</span>', 'monsterinsights_save_settings', $submenu_base . '#/addons' ); |
|
65 | + add_submenu_page( $hook, __( 'Addons:', 'google-analytics-for-wordpress' ), '<span style="color:#7cc048"> ' . __( 'Addons', 'google-analytics-for-wordpress' ) . '</span>', 'monsterinsights_save_settings', $submenu_base . '#/addons' ); |
|
66 | 66 | } |
67 | 67 | |
68 | 68 | // Add About us page. |
@@ -79,12 +79,12 @@ discard block |
||
79 | 79 | // First, let's see if this is an MS network enabled plugin. If it is, we should load the license |
80 | 80 | // menu page and the updater on the network panel |
81 | 81 | if ( ! function_exists( 'is_plugin_active_for_network' ) ) { |
82 | - require_once( ABSPATH . '/wp-admin/includes/plugin.php' ); |
|
82 | + require_once( ABSPATH . '/wp-admin/includes/plugin.php' ); |
|
83 | 83 | } |
84 | 84 | |
85 | 85 | $plugin = plugin_basename( MONSTERINSIGHTS_PLUGIN_FILE ); |
86 | 86 | if ( ! is_plugin_active_for_network( $plugin ) ) { |
87 | - return; |
|
87 | + return; |
|
88 | 88 | } |
89 | 89 | |
90 | 90 | $menu_icon_inline = monsterinsights_get_inline_menu_icon(); |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | function monsterinsights_add_admin_body_class( $classes ) { |
111 | 111 | $screen = function_exists( 'get_current_screen' ) ? get_current_screen() : false; |
112 | 112 | if ( empty( $screen ) || empty( $screen->id ) || strpos( $screen->id, 'monsterinsights' ) === false ) { |
113 | - return $classes; |
|
113 | + return $classes; |
|
114 | 114 | } |
115 | 115 | |
116 | 116 | return "$classes monsterinsights_page "; |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | $screen = function_exists( 'get_current_screen' ) ? get_current_screen() : false; |
128 | 128 | |
129 | 129 | if ( empty( $screen ) || empty( $screen->id ) || strpos( $screen->id, 'monsterinsights_tools' ) === false || 'insights_page_monsterinsights_tools' === $screen->id ) { |
130 | - return $classes; |
|
130 | + return $classes; |
|
131 | 131 | } |
132 | 132 | |
133 | 133 | return "$classes insights_page_monsterinsights_tools "; |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | function monsterinsights_add_admin_body_class_addons_page( $classes ) { |
144 | 144 | $screen = function_exists( 'get_current_screen' ) ? get_current_screen() : false; |
145 | 145 | if ( empty( $screen ) || empty( $screen->id ) || strpos( $screen->id, 'monsterinsights_addons' ) === false || 'insights_page_monsterinsights_addons' === $screen->id ) { |
146 | - return $classes; |
|
146 | + return $classes; |
|
147 | 147 | } |
148 | 148 | |
149 | 149 | return "$classes insights_page_monsterinsights_addons "; |
@@ -163,17 +163,17 @@ discard block |
||
163 | 163 | |
164 | 164 | // If lite, show a link where they can get pro from |
165 | 165 | if ( ! monsterinsights_is_pro_version() ) { |
166 | - $get_pro = '<a title="' . esc_html__( 'Get MonsterInsights Pro', 'google-analytics-for-wordpress' ) .'" href="'. monsterinsights_get_upgrade_link( 'all-plugins', 'upgrade-link', "https://www.monsterinsights.com/docs/" ) .'">' . esc_html__( 'Get MonsterInsights Pro', 'google-analytics-for-wordpress' ) . '</a>'; |
|
167 | - array_unshift( $links, $get_pro ); |
|
166 | + $get_pro = '<a title="' . esc_html__( 'Get MonsterInsights Pro', 'google-analytics-for-wordpress' ) .'" href="'. monsterinsights_get_upgrade_link( 'all-plugins', 'upgrade-link', "https://www.monsterinsights.com/docs/" ) .'">' . esc_html__( 'Get MonsterInsights Pro', 'google-analytics-for-wordpress' ) . '</a>'; |
|
167 | + array_unshift( $links, $get_pro ); |
|
168 | 168 | } |
169 | 169 | |
170 | 170 | // If Lite, support goes to forum. If pro, it goes to our website |
171 | 171 | if ( monsterinsights_is_pro_version() ) { |
172 | - $support = '<a title="MonsterInsights Pro Support" href="'. monsterinsights_get_url( 'all-plugins', 'pro-support-link', "https://www.monsterinsights.com/my-account/support/" ) .'">' . esc_html__( 'Support', 'google-analytics-for-wordpress' ) . '</a>'; |
|
173 | - array_unshift( $links, $support ); |
|
172 | + $support = '<a title="MonsterInsights Pro Support" href="'. monsterinsights_get_url( 'all-plugins', 'pro-support-link', "https://www.monsterinsights.com/my-account/support/" ) .'">' . esc_html__( 'Support', 'google-analytics-for-wordpress' ) . '</a>'; |
|
173 | + array_unshift( $links, $support ); |
|
174 | 174 | } else { |
175 | - $support = '<a title="MonsterInsights Lite Support" href="'. monsterinsights_get_url( 'all-plugins', 'lite-support-link', "https://www.monsterinsights.com/lite-support/" ) .'">' . esc_html__( 'Support', 'google-analytics-for-wordpress' ) . '</a>'; |
|
176 | - array_unshift( $links, $support ); |
|
175 | + $support = '<a title="MonsterInsights Lite Support" href="'. monsterinsights_get_url( 'all-plugins', 'lite-support-link', "https://www.monsterinsights.com/lite-support/" ) .'">' . esc_html__( 'Support', 'google-analytics-for-wordpress' ) . '</a>'; |
|
176 | + array_unshift( $links, $support ); |
|
177 | 177 | } |
178 | 178 | |
179 | 179 | $settings_link = '<a href="' . esc_url( admin_url( 'admin.php?page=monsterinsights_settings' ) ) . '">' . esc_html__( 'Settings', 'google-analytics-for-wordpress' ) . '</a>'; |
@@ -198,26 +198,26 @@ discard block |
||
198 | 198 | function monsterinsights_load_admin_partial( $template, $data = array() ) { |
199 | 199 | |
200 | 200 | if ( monsterinsights_is_pro_version() ) { |
201 | - $dir = trailingslashit( plugin_dir_path( MonsterInsights()->file ) . 'pro/includes/admin/partials' ); |
|
201 | + $dir = trailingslashit( plugin_dir_path( MonsterInsights()->file ) . 'pro/includes/admin/partials' ); |
|
202 | 202 | |
203 | - if ( file_exists( $dir . $template . '.php' ) ) { |
|
204 | - require_once( $dir . $template . '.php' ); |
|
205 | - return true; |
|
206 | - } |
|
203 | + if ( file_exists( $dir . $template . '.php' ) ) { |
|
204 | + require_once( $dir . $template . '.php' ); |
|
205 | + return true; |
|
206 | + } |
|
207 | 207 | } else { |
208 | - $dir = trailingslashit( plugin_dir_path( MonsterInsights()->file ) . 'lite/includes/admin/partials' ); |
|
208 | + $dir = trailingslashit( plugin_dir_path( MonsterInsights()->file ) . 'lite/includes/admin/partials' ); |
|
209 | 209 | |
210 | - if ( file_exists( $dir . $template . '.php' ) ) { |
|
211 | - require_once( $dir . $template . '.php' ); |
|
212 | - return true; |
|
213 | - } |
|
210 | + if ( file_exists( $dir . $template . '.php' ) ) { |
|
211 | + require_once( $dir . $template . '.php' ); |
|
212 | + return true; |
|
213 | + } |
|
214 | 214 | } |
215 | 215 | |
216 | 216 | $dir = trailingslashit( plugin_dir_path( MonsterInsights()->file ) . 'includes/admin/partials' ); |
217 | 217 | |
218 | 218 | if ( file_exists( $dir . $template . '.php' ) ) { |
219 | - require_once( $dir . $template . '.php' ); |
|
220 | - return true; |
|
219 | + require_once( $dir . $template . '.php' ); |
|
220 | + return true; |
|
221 | 221 | } |
222 | 222 | |
223 | 223 | return false; |
@@ -234,8 +234,8 @@ discard block |
||
234 | 234 | function monsterinsights_admin_footer( $text ) { |
235 | 235 | global $current_screen; |
236 | 236 | if ( ! empty( $current_screen->id ) && strpos( $current_screen->id, 'monsterinsights' ) !== false ) { |
237 | - $url = 'https://wordpress.org/support/view/plugin-reviews/google-analytics-for-wordpress?filter=5'; |
|
238 | - $text = sprintf( esc_html__( 'Please rate %sMonsterInsights%s %s on %sWordPress.org%s to help us spread the word. Thank you from the MonsterInsights team!', 'google-analytics-for-wordpress' ), '<strong>', '</strong>', '<a class="monsterinsights-no-text-decoration" href="' . $url . '" target="_blank" rel="noopener noreferrer"><i class="monstericon-star"></i><i class="monstericon-star"></i><i class="monstericon-star"></i><i class="monstericon-star"></i><i class="monstericon-star"></i></a>', '<a href="' . $url . '" target="_blank" rel="noopener noreferrer">', '</a>' ); |
|
237 | + $url = 'https://wordpress.org/support/view/plugin-reviews/google-analytics-for-wordpress?filter=5'; |
|
238 | + $text = sprintf( esc_html__( 'Please rate %sMonsterInsights%s %s on %sWordPress.org%s to help us spread the word. Thank you from the MonsterInsights team!', 'google-analytics-for-wordpress' ), '<strong>', '</strong>', '<a class="monsterinsights-no-text-decoration" href="' . $url . '" target="_blank" rel="noopener noreferrer"><i class="monstericon-star"></i><i class="monstericon-star"></i><i class="monstericon-star"></i><i class="monstericon-star"></i><i class="monstericon-star"></i></a>', '<a href="' . $url . '" target="_blank" rel="noopener noreferrer">', '</a>' ); |
|
239 | 239 | } |
240 | 240 | return $text; |
241 | 241 | } |
@@ -246,12 +246,12 @@ discard block |
||
246 | 246 | // Don't show on MonsterInsights pages |
247 | 247 | $screen = get_current_screen(); |
248 | 248 | if ( empty( $screen->id ) || strpos( $screen->id, 'monsterinsights' ) !== false ) { |
249 | - return; |
|
249 | + return; |
|
250 | 250 | } |
251 | 251 | |
252 | 252 | // Make sure they have the permissions to do something |
253 | 253 | if ( ! current_user_can( 'monsterinsights_save_settings' ) ) { |
254 | - return; |
|
254 | + return; |
|
255 | 255 | } |
256 | 256 | |
257 | 257 | // Priority: |
@@ -268,45 +268,45 @@ discard block |
||
268 | 268 | |
269 | 269 | // 1. Google Analytics not authenticated |
270 | 270 | if ( ! is_network_admin() && ! monsterinsights_get_ua() ) { |
271 | - $page = admin_url( 'admin.php?page=monsterinsights_settings' ); |
|
272 | - $message = sprintf( esc_html__( 'Please configure your %1$sGoogle Analytics settings%2$s!', 'google-analytics-for-wordpress' ),'<a href="' . $page . '">', '</a>' ); |
|
273 | - echo '<div class="error"><p>'. $message.'</p></div>'; |
|
274 | - return; |
|
271 | + $page = admin_url( 'admin.php?page=monsterinsights_settings' ); |
|
272 | + $message = sprintf( esc_html__( 'Please configure your %1$sGoogle Analytics settings%2$s!', 'google-analytics-for-wordpress' ),'<a href="' . $page . '">', '</a>' ); |
|
273 | + echo '<div class="error"><p>'. $message.'</p></div>'; |
|
274 | + return; |
|
275 | 275 | } |
276 | 276 | |
277 | 277 | // 2. License key not entered for pro |
278 | 278 | $key = monsterinsights_is_pro_version() ? MonsterInsights()->license->get_license_key() : ''; |
279 | 279 | if ( monsterinsights_is_pro_version() && empty( $key ) ) { |
280 | - $page = is_network_admin() ? network_admin_url( 'admin.php?page=monsterinsights_network' ) : admin_url( 'admin.php?page=monsterinsights_settings' ); |
|
281 | - $message = sprintf( esc_html__( 'Warning: No valid license key has been entered for MonsterInsights. You are currently not getting updates, and are not able to view reports. %1$sPlease click here to enter your license key and begin receiving updates and reports.%2$s', 'google-analytics-for-wordpress' ), '<a href="'. esc_url( $page ) . '">', '</a>' ); |
|
282 | - echo '<div class="error"><p>'. $message.'</p></div>'; |
|
283 | - return; |
|
280 | + $page = is_network_admin() ? network_admin_url( 'admin.php?page=monsterinsights_network' ) : admin_url( 'admin.php?page=monsterinsights_settings' ); |
|
281 | + $message = sprintf( esc_html__( 'Warning: No valid license key has been entered for MonsterInsights. You are currently not getting updates, and are not able to view reports. %1$sPlease click here to enter your license key and begin receiving updates and reports.%2$s', 'google-analytics-for-wordpress' ), '<a href="'. esc_url( $page ) . '">', '</a>' ); |
|
282 | + echo '<div class="error"><p>'. $message.'</p></div>'; |
|
283 | + return; |
|
284 | 284 | } |
285 | 285 | |
286 | 286 | // 3. License key not valid/okay for pro |
287 | 287 | if ( monsterinsights_is_pro_version() ) { |
288 | - $message = ''; |
|
289 | - if ( MonsterInsights()->license->get_site_license_key() ){ |
|
290 | - if ( MonsterInsights()->license->site_license_expired() ) { |
|
291 | - $message = sprintf( esc_html__( 'Your license key for MonsterInsights has expired. %1$sPlease click here to renew your license key.%2$s', 'google-analytics-for-wordpress' ), '<a href="'. monsterinsights_get_url( 'admin-notices', 'expired-license', "https://www.monsterinsights.com/login/" ) .'" target="_blank" rel="noopener noreferrer" referrer="no-referrer">', '</a>' ); |
|
292 | - } else if ( MonsterInsights()->license->site_license_disabled() ) { |
|
293 | - $message = esc_html__( 'Your license key for MonsterInsights has been disabled. Please use a different key.', 'google-analytics-for-wordpress' ); |
|
294 | - } else if ( MonsterInsights()->license->site_license_invalid() ) { |
|
295 | - $message = esc_html__( 'Your license key for MonsterInsights is invalid. The key no longer exists or the user associated with the key has been deleted. Please use a different key.', 'google-analytics-for-wordpress' ); |
|
296 | - } |
|
297 | - } else if ( MonsterInsights()->license->get_network_license_key() ) { |
|
298 | - if ( MonsterInsights()->license->network_license_expired() ) { |
|
299 | - $message = sprintf( esc_html__( 'Your network license key for MonsterInsights has expired. %1$sPlease click here to renew your license key.%2$s', 'google-analytics-for-wordpress' ), '<a href="'. monsterinsights_get_url( 'admin-notices', 'expired-license', "https://www.monsterinsights.com/login/" ) .'" target="_blank" rel="noopener noreferrer" referrer="no-referrer">', '</a>' ); |
|
300 | - } else if ( MonsterInsights()->license->network_license_disabled() ) { |
|
301 | - $message = esc_html__( 'Your network license key for MonsterInsights has been disabled. Please use a different key.', 'google-analytics-for-wordpress' ); |
|
302 | - } else if ( MonsterInsights()->license->network_license_invalid() ) { |
|
303 | - $message = esc_html__( 'Your network license key for MonsterInsights is invalid. The key no longer exists or the user associated with the key has been deleted. Please use a different key.', 'google-analytics-for-wordpress' ); |
|
304 | - } |
|
305 | - } |
|
306 | - if ( ! empty( $message ) ) { |
|
307 | - echo '<div class="error"><p>'. $message.'</p></div>'; |
|
308 | - return; |
|
309 | - } |
|
288 | + $message = ''; |
|
289 | + if ( MonsterInsights()->license->get_site_license_key() ){ |
|
290 | + if ( MonsterInsights()->license->site_license_expired() ) { |
|
291 | + $message = sprintf( esc_html__( 'Your license key for MonsterInsights has expired. %1$sPlease click here to renew your license key.%2$s', 'google-analytics-for-wordpress' ), '<a href="'. monsterinsights_get_url( 'admin-notices', 'expired-license', "https://www.monsterinsights.com/login/" ) .'" target="_blank" rel="noopener noreferrer" referrer="no-referrer">', '</a>' ); |
|
292 | + } else if ( MonsterInsights()->license->site_license_disabled() ) { |
|
293 | + $message = esc_html__( 'Your license key for MonsterInsights has been disabled. Please use a different key.', 'google-analytics-for-wordpress' ); |
|
294 | + } else if ( MonsterInsights()->license->site_license_invalid() ) { |
|
295 | + $message = esc_html__( 'Your license key for MonsterInsights is invalid. The key no longer exists or the user associated with the key has been deleted. Please use a different key.', 'google-analytics-for-wordpress' ); |
|
296 | + } |
|
297 | + } else if ( MonsterInsights()->license->get_network_license_key() ) { |
|
298 | + if ( MonsterInsights()->license->network_license_expired() ) { |
|
299 | + $message = sprintf( esc_html__( 'Your network license key for MonsterInsights has expired. %1$sPlease click here to renew your license key.%2$s', 'google-analytics-for-wordpress' ), '<a href="'. monsterinsights_get_url( 'admin-notices', 'expired-license', "https://www.monsterinsights.com/login/" ) .'" target="_blank" rel="noopener noreferrer" referrer="no-referrer">', '</a>' ); |
|
300 | + } else if ( MonsterInsights()->license->network_license_disabled() ) { |
|
301 | + $message = esc_html__( 'Your network license key for MonsterInsights has been disabled. Please use a different key.', 'google-analytics-for-wordpress' ); |
|
302 | + } else if ( MonsterInsights()->license->network_license_invalid() ) { |
|
303 | + $message = esc_html__( 'Your network license key for MonsterInsights is invalid. The key no longer exists or the user associated with the key has been deleted. Please use a different key.', 'google-analytics-for-wordpress' ); |
|
304 | + } |
|
305 | + } |
|
306 | + if ( ! empty( $message ) ) { |
|
307 | + echo '<div class="error"><p>'. $message.'</p></div>'; |
|
308 | + return; |
|
309 | + } |
|
310 | 310 | } |
311 | 311 | |
312 | 312 | // 4. Notices for PHP/WP version deprecations |
@@ -370,7 +370,7 @@ discard block |
||
370 | 370 | |
371 | 371 | $notices = get_option( 'monsterinsights_notices' ); |
372 | 372 | if ( ! is_array( $notices ) ) { |
373 | - $notices = array(); |
|
373 | + $notices = array(); |
|
374 | 374 | } |
375 | 375 | |
376 | 376 | // 6. Authenticate, not manual |
@@ -378,12 +378,12 @@ discard block |
||
378 | 378 | $url = is_network_admin() ? network_admin_url( 'admin.php?page=monsterinsights_network' ) : admin_url( 'admin.php?page=monsterinsights_settings' ); |
379 | 379 | |
380 | 380 | if ( empty( $authed ) && ! isset( $notices['monsterinsights_auth_not_manual' ] ) ) { |
381 | - echo '<div class="notice notice-info is-dismissible monsterinsights-notice" data-notice="monsterinsights_auth_not_manual">'; |
|
382 | - echo '<p>'; |
|
383 | - echo sprintf( esc_html__( 'Important: You are currently using manual UA code output. We highly recommend %1$sauthenticating with MonsterInsights%2$s so that you can access our new reporting area and take advantage of new MonsterInsights features.', 'google-analytics-for-wordpress' ), '<a href="' . $url .'">', '</a>' ); |
|
384 | - echo '</p>'; |
|
385 | - echo '</div>'; |
|
386 | - return; |
|
381 | + echo '<div class="notice notice-info is-dismissible monsterinsights-notice" data-notice="monsterinsights_auth_not_manual">'; |
|
382 | + echo '<p>'; |
|
383 | + echo sprintf( esc_html__( 'Important: You are currently using manual UA code output. We highly recommend %1$sauthenticating with MonsterInsights%2$s so that you can access our new reporting area and take advantage of new MonsterInsights features.', 'google-analytics-for-wordpress' ), '<a href="' . $url .'">', '</a>' ); |
|
384 | + echo '</p>'; |
|
385 | + echo '</div>'; |
|
386 | + return; |
|
387 | 387 | } |
388 | 388 | |
389 | 389 | // 7. Automatic updates not configured |
@@ -403,64 +403,64 @@ discard block |
||
403 | 403 | |
404 | 404 | // 8. WooUpsell |
405 | 405 | if ( ! monsterinsights_is_pro_version() && class_exists( 'WooCommerce' ) ) { |
406 | - if ( ! isset( $notices['monsterinsights_woocommerce_tracking_available' ] ) ) { |
|
407 | - echo '<div class="notice notice-success is-dismissible monsterinsights-notice monsterinsights-wooedd-upsell-row" data-notice="monsterinsights_woocommerce_tracking_available">'; |
|
408 | - echo '<div class="monsterinsights-wooedd-upsell-left">'; |
|
409 | - echo '<p><strong>'; |
|
410 | - echo esc_html( 'Enhanced Ecommerce Analytics for Your WooCommerce Store', 'google-analytics-for-wordpress' ); |
|
411 | - echo '</strong></p>'; |
|
412 | - echo '<img class="monsterinsights-wooedd-upsell-image monsterinsights-wooedd-upsell-image-small" src="' . trailingslashit( MONSTERINSIGHTS_PLUGIN_URL ) . 'assets/images/upsell/woo-edd-upsell.png">'; |
|
413 | - echo '<p>'; |
|
414 | - echo esc_html( 'MonsterInsights Pro gives you detailed stats and insights about your customers.', 'google-analytics-for-wordpress' ); |
|
415 | - echo '</p>'; |
|
416 | - echo '<p>'; |
|
417 | - echo esc_html( 'This helps you make data-driven decisions about your content, and marketing strategy so you can increase your website traffic, leads, and sales.', 'google-analytics-for-wordpress' ); |
|
418 | - echo '</p>'; |
|
419 | - echo '<p>'; |
|
420 | - echo esc_html( 'Pro customers also get Form Tracking, Custom Dimensions Tracking, UserID Tracking and much more.', 'google-analytics-for-wordpress' ); |
|
421 | - echo '</p>'; |
|
422 | - echo '<p>'; |
|
423 | - echo esc_html( 'Start making data-driven decisions to grow your business.', 'google-analytics-for-wordpress' ); |
|
424 | - echo '</p>'; |
|
425 | - echo sprintf( esc_html__( '%1$sGet MonsterInsights Pro%2$s', 'google-analytics-for-wordpress' ), '<a class="button button-primary button-hero" href="'. monsterinsights_get_upgrade_link( 'admin-notices', 'woocommerce-upgrade' ) .'">', ' »</a>' ); |
|
426 | - echo '</p>'; |
|
427 | - echo '</div><div class="monsterinsights-wooedd-upsell-right">'; |
|
428 | - echo '<img class="monsterinsights-wooedd-upsell-image monsterinsights-wooedd-upsell-image-large" src="' . trailingslashit( MONSTERINSIGHTS_PLUGIN_URL ) . 'assets/images/upsell/woo-edd-upsell.png">'; |
|
429 | - echo '</div>'; |
|
430 | - echo '</div>'; |
|
431 | - return; |
|
432 | - } |
|
406 | + if ( ! isset( $notices['monsterinsights_woocommerce_tracking_available' ] ) ) { |
|
407 | + echo '<div class="notice notice-success is-dismissible monsterinsights-notice monsterinsights-wooedd-upsell-row" data-notice="monsterinsights_woocommerce_tracking_available">'; |
|
408 | + echo '<div class="monsterinsights-wooedd-upsell-left">'; |
|
409 | + echo '<p><strong>'; |
|
410 | + echo esc_html( 'Enhanced Ecommerce Analytics for Your WooCommerce Store', 'google-analytics-for-wordpress' ); |
|
411 | + echo '</strong></p>'; |
|
412 | + echo '<img class="monsterinsights-wooedd-upsell-image monsterinsights-wooedd-upsell-image-small" src="' . trailingslashit( MONSTERINSIGHTS_PLUGIN_URL ) . 'assets/images/upsell/woo-edd-upsell.png">'; |
|
413 | + echo '<p>'; |
|
414 | + echo esc_html( 'MonsterInsights Pro gives you detailed stats and insights about your customers.', 'google-analytics-for-wordpress' ); |
|
415 | + echo '</p>'; |
|
416 | + echo '<p>'; |
|
417 | + echo esc_html( 'This helps you make data-driven decisions about your content, and marketing strategy so you can increase your website traffic, leads, and sales.', 'google-analytics-for-wordpress' ); |
|
418 | + echo '</p>'; |
|
419 | + echo '<p>'; |
|
420 | + echo esc_html( 'Pro customers also get Form Tracking, Custom Dimensions Tracking, UserID Tracking and much more.', 'google-analytics-for-wordpress' ); |
|
421 | + echo '</p>'; |
|
422 | + echo '<p>'; |
|
423 | + echo esc_html( 'Start making data-driven decisions to grow your business.', 'google-analytics-for-wordpress' ); |
|
424 | + echo '</p>'; |
|
425 | + echo sprintf( esc_html__( '%1$sGet MonsterInsights Pro%2$s', 'google-analytics-for-wordpress' ), '<a class="button button-primary button-hero" href="'. monsterinsights_get_upgrade_link( 'admin-notices', 'woocommerce-upgrade' ) .'">', ' »</a>' ); |
|
426 | + echo '</p>'; |
|
427 | + echo '</div><div class="monsterinsights-wooedd-upsell-right">'; |
|
428 | + echo '<img class="monsterinsights-wooedd-upsell-image monsterinsights-wooedd-upsell-image-large" src="' . trailingslashit( MONSTERINSIGHTS_PLUGIN_URL ) . 'assets/images/upsell/woo-edd-upsell.png">'; |
|
429 | + echo '</div>'; |
|
430 | + echo '</div>'; |
|
431 | + return; |
|
432 | + } |
|
433 | 433 | } |
434 | 434 | |
435 | 435 | // 9. EDDUpsell |
436 | 436 | if ( ! monsterinsights_is_pro_version() && class_exists( 'Easy_Digital_Downloads' ) ) { |
437 | - if ( ! isset( $notices['monsterinsights_edd_tracking_available' ] ) ) { |
|
438 | - echo '<div class="notice notice-success is-dismissible monsterinsights-notice monsterinsights-wooedd-upsell-row" data-notice="monsterinsights_edd_tracking_available">'; |
|
439 | - echo '<div class="monsterinsights-wooedd-upsell-left">'; |
|
440 | - echo '<p><strong>'; |
|
441 | - echo esc_html( 'Enhanced Ecommerce Analytics for Your Easy Digital Downloads Store', 'google-analytics-for-wordpress' ); |
|
442 | - echo '</strong></p>'; |
|
443 | - echo '<img class="monsterinsights-wooedd-upsell-image monsterinsights-wooedd-upsell-image-small" src="' . trailingslashit( MONSTERINSIGHTS_PLUGIN_URL ) . 'assets/images/upsell/woo-edd-upsell.png">'; |
|
444 | - echo '<p>'; |
|
445 | - echo esc_html( 'MonsterInsights Pro gives you detailed stats and insights about your customers.', 'google-analytics-for-wordpress' ); |
|
446 | - echo '</p>'; |
|
447 | - echo '<p>'; |
|
448 | - echo esc_html( 'This helps you make data-driven decisions about your content, and marketing strategy so you can increase your website traffic, leads, and sales.', 'google-analytics-for-wordpress' ); |
|
449 | - echo '</p>'; |
|
450 | - echo '<p>'; |
|
451 | - echo esc_html( 'Pro customers also get Form Tracking, Custom Dimensions Tracking, UserID Tracking and much more.', 'google-analytics-for-wordpress' ); |
|
452 | - echo '</p>'; |
|
453 | - echo '<p>'; |
|
454 | - echo esc_html( 'Start making data-driven decisions to grow your business.', 'google-analytics-for-wordpress' ); |
|
455 | - echo '</p>'; |
|
456 | - echo sprintf( esc_html__( '%1$sGet MonsterInsights Pro%2$s', 'google-analytics-for-wordpress' ), '<a class="button button-primary button-hero" href="'. monsterinsights_get_upgrade_link( 'admin-notices', 'edd-upgrade' ) .'">', ' »</a>' ); |
|
457 | - echo '</p>'; |
|
458 | - echo '</div><div class="monsterinsights-wooedd-upsell-right">'; |
|
459 | - echo '<img class="monsterinsights-wooedd-upsell-image monsterinsights-wooedd-upsell-image-large" src="' . trailingslashit( MONSTERINSIGHTS_PLUGIN_URL ) . 'assets/images/upsell/woo-edd-upsell.png">'; |
|
460 | - echo '</div>'; |
|
461 | - echo '</div>'; |
|
462 | - return; |
|
463 | - } |
|
437 | + if ( ! isset( $notices['monsterinsights_edd_tracking_available' ] ) ) { |
|
438 | + echo '<div class="notice notice-success is-dismissible monsterinsights-notice monsterinsights-wooedd-upsell-row" data-notice="monsterinsights_edd_tracking_available">'; |
|
439 | + echo '<div class="monsterinsights-wooedd-upsell-left">'; |
|
440 | + echo '<p><strong>'; |
|
441 | + echo esc_html( 'Enhanced Ecommerce Analytics for Your Easy Digital Downloads Store', 'google-analytics-for-wordpress' ); |
|
442 | + echo '</strong></p>'; |
|
443 | + echo '<img class="monsterinsights-wooedd-upsell-image monsterinsights-wooedd-upsell-image-small" src="' . trailingslashit( MONSTERINSIGHTS_PLUGIN_URL ) . 'assets/images/upsell/woo-edd-upsell.png">'; |
|
444 | + echo '<p>'; |
|
445 | + echo esc_html( 'MonsterInsights Pro gives you detailed stats and insights about your customers.', 'google-analytics-for-wordpress' ); |
|
446 | + echo '</p>'; |
|
447 | + echo '<p>'; |
|
448 | + echo esc_html( 'This helps you make data-driven decisions about your content, and marketing strategy so you can increase your website traffic, leads, and sales.', 'google-analytics-for-wordpress' ); |
|
449 | + echo '</p>'; |
|
450 | + echo '<p>'; |
|
451 | + echo esc_html( 'Pro customers also get Form Tracking, Custom Dimensions Tracking, UserID Tracking and much more.', 'google-analytics-for-wordpress' ); |
|
452 | + echo '</p>'; |
|
453 | + echo '<p>'; |
|
454 | + echo esc_html( 'Start making data-driven decisions to grow your business.', 'google-analytics-for-wordpress' ); |
|
455 | + echo '</p>'; |
|
456 | + echo sprintf( esc_html__( '%1$sGet MonsterInsights Pro%2$s', 'google-analytics-for-wordpress' ), '<a class="button button-primary button-hero" href="'. monsterinsights_get_upgrade_link( 'admin-notices', 'edd-upgrade' ) .'">', ' »</a>' ); |
|
457 | + echo '</p>'; |
|
458 | + echo '</div><div class="monsterinsights-wooedd-upsell-right">'; |
|
459 | + echo '<img class="monsterinsights-wooedd-upsell-image monsterinsights-wooedd-upsell-image-large" src="' . trailingslashit( MONSTERINSIGHTS_PLUGIN_URL ) . 'assets/images/upsell/woo-edd-upsell.png">'; |
|
460 | + echo '</div>'; |
|
461 | + echo '</div>'; |
|
462 | + return; |
|
463 | + } |
|
464 | 464 | } |
465 | 465 | |
466 | 466 | if ( isset( $notices['monsterinsights_cross_domains_extracted'] ) && false === $notices['monsterinsights_cross_domains_extracted'] ) { |
@@ -478,7 +478,7 @@ discard block |
||
478 | 478 | // AM Notices |
479 | 479 | function monsterinsights_am_notice_optout( $super_admin ) { |
480 | 480 | if ( monsterinsights_get_option( 'hide_am_notices', false ) || monsterinsights_get_option( 'network_hide_am_notices', false ) ) { |
481 | - return false; |
|
481 | + return false; |
|
482 | 482 | } |
483 | 483 | return $super_admin; |
484 | 484 | } |
@@ -35,13 +35,13 @@ discard block |
||
35 | 35 | |
36 | 36 | if ( $dashboards_disabled || ! $is_authed || ( current_user_can( 'monsterinsights_save_settings' ) && ! current_user_can( 'monsterinsights_view_dashboard' ) ) ) { |
37 | 37 | // If dashboards disabled, first settings page |
38 | - add_menu_page( __( 'MonsterInsights', 'google-analytics-for-wordpress' ), __( 'Insights', 'google-analytics-for-wordpress' ), 'monsterinsights_save_settings', 'monsterinsights_settings', 'monsterinsights_settings_page', $menu_icon_inline, '100.00013467543' ); |
|
38 | + add_menu_page( __( 'MonsterInsights', 'google-analytics-for-wordpress' ), __( 'Insights', 'google-analytics-for-wordpress' ), 'monsterinsights_save_settings', 'monsterinsights_settings', 'monsterinsights_settings_page', $menu_icon_inline, '100.00013467543' ); |
|
39 | 39 | $hook = 'monsterinsights_settings'; |
40 | 40 | |
41 | 41 | add_submenu_page( $hook, __( 'MonsterInsights', 'google-analytics-for-wordpress' ), __( 'Settings', 'google-analytics-for-wordpress' ), 'monsterinsights_save_settings', 'monsterinsights_settings' ); |
42 | 42 | } else { |
43 | 43 | // if dashboards enabled, first dashboard |
44 | - add_menu_page( __( 'General:', 'google-analytics-for-wordpress' ), __( 'Insights', 'google-analytics-for-wordpress' ), 'monsterinsights_view_dashboard', 'monsterinsights_reports', 'monsterinsights_reports_page', $menu_icon_inline, '100.00013467543' ); |
|
44 | + add_menu_page( __( 'General:', 'google-analytics-for-wordpress' ), __( 'Insights', 'google-analytics-for-wordpress' ), 'monsterinsights_view_dashboard', 'monsterinsights_reports', 'monsterinsights_reports_page', $menu_icon_inline, '100.00013467543' ); |
|
45 | 45 | |
46 | 46 | $hook = 'monsterinsights_reports'; |
47 | 47 | |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | $menu_icon_inline = monsterinsights_get_inline_menu_icon(); |
91 | 91 | $hook = 'monsterinsights_network'; |
92 | 92 | $submenu_base = add_query_arg( 'page', 'monsterinsights_network', network_admin_url( 'admin.php' ) ); |
93 | - add_menu_page( __( 'Network Settings:', 'google-analytics-for-wordpress' ), __( 'Insights', 'google-analytics-for-wordpress' ), 'monsterinsights_save_settings', 'monsterinsights_network', 'monsterinsights_network_page', $menu_icon_inline, '100.00013467543' ); |
|
93 | + add_menu_page( __( 'Network Settings:', 'google-analytics-for-wordpress' ), __( 'Insights', 'google-analytics-for-wordpress' ), 'monsterinsights_save_settings', 'monsterinsights_network', 'monsterinsights_network_page', $menu_icon_inline, '100.00013467543' ); |
|
94 | 94 | |
95 | 95 | add_submenu_page( $hook, __( 'Network Settings:', 'google-analytics-for-wordpress' ), __( 'Network Settings', 'google-analytics-for-wordpress' ), 'monsterinsights_save_settings', 'monsterinsights_network', 'monsterinsights_network_page' ); |
96 | 96 | |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | function monsterinsights_add_admin_body_class_tools_page( $classes ) { |
127 | 127 | $screen = function_exists( 'get_current_screen' ) ? get_current_screen() : false; |
128 | 128 | |
129 | - if ( empty( $screen ) || empty( $screen->id ) || strpos( $screen->id, 'monsterinsights_tools' ) === false || 'insights_page_monsterinsights_tools' === $screen->id ) { |
|
129 | + if ( empty( $screen ) || empty( $screen->id ) || strpos( $screen->id, 'monsterinsights_tools' ) === false || 'insights_page_monsterinsights_tools' === $screen->id ) { |
|
130 | 130 | return $classes; |
131 | 131 | } |
132 | 132 | |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | */ |
143 | 143 | function monsterinsights_add_admin_body_class_addons_page( $classes ) { |
144 | 144 | $screen = function_exists( 'get_current_screen' ) ? get_current_screen() : false; |
145 | - if ( empty( $screen ) || empty( $screen->id ) || strpos( $screen->id, 'monsterinsights_addons' ) === false || 'insights_page_monsterinsights_addons' === $screen->id ) { |
|
145 | + if ( empty( $screen ) || empty( $screen->id ) || strpos( $screen->id, 'monsterinsights_addons' ) === false || 'insights_page_monsterinsights_addons' === $screen->id ) { |
|
146 | 146 | return $classes; |
147 | 147 | } |
148 | 148 | |
@@ -158,21 +158,21 @@ discard block |
||
158 | 158 | * @return array $links |
159 | 159 | */ |
160 | 160 | function monsterinsights_add_action_links( $links ) { |
161 | - $docs = '<a title="' . esc_html__( 'MonsterInsights Knowledge Base', 'google-analytics-for-wordpress' ) . '" href="'. monsterinsights_get_url( 'all-plugins', 'kb-link', "https://www.monsterinsights.com/docs/" ) .'"">' . esc_html__( 'Documentation', 'google-analytics-for-wordpress' ) . '</a>'; |
|
161 | + $docs = '<a title="' . esc_html__( 'MonsterInsights Knowledge Base', 'google-analytics-for-wordpress' ) . '" href="' . monsterinsights_get_url( 'all-plugins', 'kb-link', "https://www.monsterinsights.com/docs/" ) . '"">' . esc_html__( 'Documentation', 'google-analytics-for-wordpress' ) . '</a>'; |
|
162 | 162 | array_unshift( $links, $docs ); |
163 | 163 | |
164 | 164 | // If lite, show a link where they can get pro from |
165 | 165 | if ( ! monsterinsights_is_pro_version() ) { |
166 | - $get_pro = '<a title="' . esc_html__( 'Get MonsterInsights Pro', 'google-analytics-for-wordpress' ) .'" href="'. monsterinsights_get_upgrade_link( 'all-plugins', 'upgrade-link', "https://www.monsterinsights.com/docs/" ) .'">' . esc_html__( 'Get MonsterInsights Pro', 'google-analytics-for-wordpress' ) . '</a>'; |
|
166 | + $get_pro = '<a title="' . esc_html__( 'Get MonsterInsights Pro', 'google-analytics-for-wordpress' ) . '" href="' . monsterinsights_get_upgrade_link( 'all-plugins', 'upgrade-link', "https://www.monsterinsights.com/docs/" ) . '">' . esc_html__( 'Get MonsterInsights Pro', 'google-analytics-for-wordpress' ) . '</a>'; |
|
167 | 167 | array_unshift( $links, $get_pro ); |
168 | 168 | } |
169 | 169 | |
170 | 170 | // If Lite, support goes to forum. If pro, it goes to our website |
171 | 171 | if ( monsterinsights_is_pro_version() ) { |
172 | - $support = '<a title="MonsterInsights Pro Support" href="'. monsterinsights_get_url( 'all-plugins', 'pro-support-link', "https://www.monsterinsights.com/my-account/support/" ) .'">' . esc_html__( 'Support', 'google-analytics-for-wordpress' ) . '</a>'; |
|
172 | + $support = '<a title="MonsterInsights Pro Support" href="' . monsterinsights_get_url( 'all-plugins', 'pro-support-link', "https://www.monsterinsights.com/my-account/support/" ) . '">' . esc_html__( 'Support', 'google-analytics-for-wordpress' ) . '</a>'; |
|
173 | 173 | array_unshift( $links, $support ); |
174 | 174 | } else { |
175 | - $support = '<a title="MonsterInsights Lite Support" href="'. monsterinsights_get_url( 'all-plugins', 'lite-support-link', "https://www.monsterinsights.com/lite-support/" ) .'">' . esc_html__( 'Support', 'google-analytics-for-wordpress' ) . '</a>'; |
|
175 | + $support = '<a title="MonsterInsights Lite Support" href="' . monsterinsights_get_url( 'all-plugins', 'lite-support-link', "https://www.monsterinsights.com/lite-support/" ) . '">' . esc_html__( 'Support', 'google-analytics-for-wordpress' ) . '</a>'; |
|
176 | 176 | array_unshift( $links, $support ); |
177 | 177 | } |
178 | 178 | |
@@ -201,14 +201,14 @@ discard block |
||
201 | 201 | $dir = trailingslashit( plugin_dir_path( MonsterInsights()->file ) . 'pro/includes/admin/partials' ); |
202 | 202 | |
203 | 203 | if ( file_exists( $dir . $template . '.php' ) ) { |
204 | - require_once( $dir . $template . '.php' ); |
|
204 | + require_once( $dir . $template . '.php' ); |
|
205 | 205 | return true; |
206 | 206 | } |
207 | 207 | } else { |
208 | 208 | $dir = trailingslashit( plugin_dir_path( MonsterInsights()->file ) . 'lite/includes/admin/partials' ); |
209 | 209 | |
210 | 210 | if ( file_exists( $dir . $template . '.php' ) ) { |
211 | - require_once( $dir . $template . '.php' ); |
|
211 | + require_once( $dir . $template . '.php' ); |
|
212 | 212 | return true; |
213 | 213 | } |
214 | 214 | } |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | $dir = trailingslashit( plugin_dir_path( MonsterInsights()->file ) . 'includes/admin/partials' ); |
217 | 217 | |
218 | 218 | if ( file_exists( $dir . $template . '.php' ) ) { |
219 | - require_once( $dir . $template . '.php' ); |
|
219 | + require_once( $dir . $template . '.php' ); |
|
220 | 220 | return true; |
221 | 221 | } |
222 | 222 | |
@@ -235,7 +235,7 @@ discard block |
||
235 | 235 | global $current_screen; |
236 | 236 | if ( ! empty( $current_screen->id ) && strpos( $current_screen->id, 'monsterinsights' ) !== false ) { |
237 | 237 | $url = 'https://wordpress.org/support/view/plugin-reviews/google-analytics-for-wordpress?filter=5'; |
238 | - $text = sprintf( esc_html__( 'Please rate %sMonsterInsights%s %s on %sWordPress.org%s to help us spread the word. Thank you from the MonsterInsights team!', 'google-analytics-for-wordpress' ), '<strong>', '</strong>', '<a class="monsterinsights-no-text-decoration" href="' . $url . '" target="_blank" rel="noopener noreferrer"><i class="monstericon-star"></i><i class="monstericon-star"></i><i class="monstericon-star"></i><i class="monstericon-star"></i><i class="monstericon-star"></i></a>', '<a href="' . $url . '" target="_blank" rel="noopener noreferrer">', '</a>' ); |
|
238 | + $text = sprintf( esc_html__( 'Please rate %sMonsterInsights%s %s on %sWordPress.org%s to help us spread the word. Thank you from the MonsterInsights team!', 'google-analytics-for-wordpress' ), '<strong>', '</strong>', '<a class="monsterinsights-no-text-decoration" href="' . $url . '" target="_blank" rel="noopener noreferrer"><i class="monstericon-star"></i><i class="monstericon-star"></i><i class="monstericon-star"></i><i class="monstericon-star"></i><i class="monstericon-star"></i></a>', '<a href="' . $url . '" target="_blank" rel="noopener noreferrer">', '</a>' ); |
|
239 | 239 | } |
240 | 240 | return $text; |
241 | 241 | } |
@@ -269,8 +269,8 @@ discard block |
||
269 | 269 | // 1. Google Analytics not authenticated |
270 | 270 | if ( ! is_network_admin() && ! monsterinsights_get_ua() ) { |
271 | 271 | $page = admin_url( 'admin.php?page=monsterinsights_settings' ); |
272 | - $message = sprintf( esc_html__( 'Please configure your %1$sGoogle Analytics settings%2$s!', 'google-analytics-for-wordpress' ),'<a href="' . $page . '">', '</a>' ); |
|
273 | - echo '<div class="error"><p>'. $message.'</p></div>'; |
|
272 | + $message = sprintf( esc_html__( 'Please configure your %1$sGoogle Analytics settings%2$s!', 'google-analytics-for-wordpress' ), '<a href="' . $page . '">', '</a>' ); |
|
273 | + echo '<div class="error"><p>' . $message . '</p></div>'; |
|
274 | 274 | return; |
275 | 275 | } |
276 | 276 | |
@@ -278,17 +278,17 @@ discard block |
||
278 | 278 | $key = monsterinsights_is_pro_version() ? MonsterInsights()->license->get_license_key() : ''; |
279 | 279 | if ( monsterinsights_is_pro_version() && empty( $key ) ) { |
280 | 280 | $page = is_network_admin() ? network_admin_url( 'admin.php?page=monsterinsights_network' ) : admin_url( 'admin.php?page=monsterinsights_settings' ); |
281 | - $message = sprintf( esc_html__( 'Warning: No valid license key has been entered for MonsterInsights. You are currently not getting updates, and are not able to view reports. %1$sPlease click here to enter your license key and begin receiving updates and reports.%2$s', 'google-analytics-for-wordpress' ), '<a href="'. esc_url( $page ) . '">', '</a>' ); |
|
282 | - echo '<div class="error"><p>'. $message.'</p></div>'; |
|
281 | + $message = sprintf( esc_html__( 'Warning: No valid license key has been entered for MonsterInsights. You are currently not getting updates, and are not able to view reports. %1$sPlease click here to enter your license key and begin receiving updates and reports.%2$s', 'google-analytics-for-wordpress' ), '<a href="' . esc_url( $page ) . '">', '</a>' ); |
|
282 | + echo '<div class="error"><p>' . $message . '</p></div>'; |
|
283 | 283 | return; |
284 | 284 | } |
285 | 285 | |
286 | 286 | // 3. License key not valid/okay for pro |
287 | 287 | if ( monsterinsights_is_pro_version() ) { |
288 | 288 | $message = ''; |
289 | - if ( MonsterInsights()->license->get_site_license_key() ){ |
|
289 | + if ( MonsterInsights()->license->get_site_license_key() ) { |
|
290 | 290 | if ( MonsterInsights()->license->site_license_expired() ) { |
291 | - $message = sprintf( esc_html__( 'Your license key for MonsterInsights has expired. %1$sPlease click here to renew your license key.%2$s', 'google-analytics-for-wordpress' ), '<a href="'. monsterinsights_get_url( 'admin-notices', 'expired-license', "https://www.monsterinsights.com/login/" ) .'" target="_blank" rel="noopener noreferrer" referrer="no-referrer">', '</a>' ); |
|
291 | + $message = sprintf( esc_html__( 'Your license key for MonsterInsights has expired. %1$sPlease click here to renew your license key.%2$s', 'google-analytics-for-wordpress' ), '<a href="' . monsterinsights_get_url( 'admin-notices', 'expired-license', "https://www.monsterinsights.com/login/" ) . '" target="_blank" rel="noopener noreferrer" referrer="no-referrer">', '</a>' ); |
|
292 | 292 | } else if ( MonsterInsights()->license->site_license_disabled() ) { |
293 | 293 | $message = esc_html__( 'Your license key for MonsterInsights has been disabled. Please use a different key.', 'google-analytics-for-wordpress' ); |
294 | 294 | } else if ( MonsterInsights()->license->site_license_invalid() ) { |
@@ -296,7 +296,7 @@ discard block |
||
296 | 296 | } |
297 | 297 | } else if ( MonsterInsights()->license->get_network_license_key() ) { |
298 | 298 | if ( MonsterInsights()->license->network_license_expired() ) { |
299 | - $message = sprintf( esc_html__( 'Your network license key for MonsterInsights has expired. %1$sPlease click here to renew your license key.%2$s', 'google-analytics-for-wordpress' ), '<a href="'. monsterinsights_get_url( 'admin-notices', 'expired-license', "https://www.monsterinsights.com/login/" ) .'" target="_blank" rel="noopener noreferrer" referrer="no-referrer">', '</a>' ); |
|
299 | + $message = sprintf( esc_html__( 'Your network license key for MonsterInsights has expired. %1$sPlease click here to renew your license key.%2$s', 'google-analytics-for-wordpress' ), '<a href="' . monsterinsights_get_url( 'admin-notices', 'expired-license', "https://www.monsterinsights.com/login/" ) . '" target="_blank" rel="noopener noreferrer" referrer="no-referrer">', '</a>' ); |
|
300 | 300 | } else if ( MonsterInsights()->license->network_license_disabled() ) { |
301 | 301 | $message = esc_html__( 'Your network license key for MonsterInsights has been disabled. Please use a different key.', 'google-analytics-for-wordpress' ); |
302 | 302 | } else if ( MonsterInsights()->license->network_license_invalid() ) { |
@@ -304,7 +304,7 @@ discard block |
||
304 | 304 | } |
305 | 305 | } |
306 | 306 | if ( ! empty( $message ) ) { |
307 | - echo '<div class="error"><p>'. $message.'</p></div>'; |
|
307 | + echo '<div class="error"><p>' . $message . '</p></div>'; |
|
308 | 308 | return; |
309 | 309 | } |
310 | 310 | } |
@@ -317,14 +317,14 @@ discard block |
||
317 | 317 | if ( version_compare( phpversion(), '5.4', '<' ) ) { |
318 | 318 | $url = monsterinsights_get_url( 'global-notice', 'settings-page', 'https://www.monsterinsights.com/docs/update-php/' ); |
319 | 319 | $message = sprintf( esc_html__( 'Your site is running an outdated, insecure version of PHP (%1$s), which could be putting your site at risk for being hacked.%4$sWordPress will stop supporting your PHP version in April, 2019.%4$sUpdating PHP only takes a few minutes and will make your website significantly faster and more secure.%4$s%2$sLearn more about updating PHP%3$s', 'google-analytics-for-wordpress' ), phpversion(), '<a href="' . $url . '" target="_blank">', '</a>', '<br>' ); |
320 | - echo '<div class="error"><p>'. $message.'</p></div>'; |
|
320 | + echo '<div class="error"><p>' . $message . '</p></div>'; |
|
321 | 321 | return; |
322 | 322 | } |
323 | 323 | // WordPress 3.0 - 4.5 |
324 | 324 | else if ( version_compare( $wp_version, '4.6', '<' ) ) { |
325 | 325 | $url = monsterinsights_get_url( 'global-notice', 'settings-page', 'https://www.monsterinsights.com/docs/update-wordpress/' ); |
326 | 326 | $message = sprintf( esc_html__( 'Your site is running an outdated version of WordPress (%1$s).%4$sMonsterInsights will stop supporting WordPress versions lower than 4.6 in April, 2019.%4$sUpdating WordPress takes just a few minutes and will also solve many bugs that exist in your WordPress install.%4$s%2$sLearn more about updating WordPress%3$s', 'google-analytics-for-wordpress' ), $wp_version, '<a href="' . $url . '" target="_blank">', '</a>', '<br>' ); |
327 | - echo '<div class="error"><p>'. $message.'</p></div>'; |
|
327 | + echo '<div class="error"><p>' . $message . '</p></div>'; |
|
328 | 328 | return; |
329 | 329 | } |
330 | 330 | // PHP 5.4/5.5 |
@@ -368,7 +368,7 @@ discard block |
||
368 | 368 | // } |
369 | 369 | // } |
370 | 370 | |
371 | - $notices = get_option( 'monsterinsights_notices' ); |
|
371 | + $notices = get_option( 'monsterinsights_notices' ); |
|
372 | 372 | if ( ! is_array( $notices ) ) { |
373 | 373 | $notices = array(); |
374 | 374 | } |
@@ -377,10 +377,10 @@ discard block |
||
377 | 377 | $authed = MonsterInsights()->auth->is_authed() || MonsterInsights()->auth->is_network_authed(); |
378 | 378 | $url = is_network_admin() ? network_admin_url( 'admin.php?page=monsterinsights_network' ) : admin_url( 'admin.php?page=monsterinsights_settings' ); |
379 | 379 | |
380 | - if ( empty( $authed ) && ! isset( $notices['monsterinsights_auth_not_manual' ] ) ) { |
|
380 | + if ( empty( $authed ) && ! isset( $notices['monsterinsights_auth_not_manual'] ) ) { |
|
381 | 381 | echo '<div class="notice notice-info is-dismissible monsterinsights-notice" data-notice="monsterinsights_auth_not_manual">'; |
382 | 382 | echo '<p>'; |
383 | - echo sprintf( esc_html__( 'Important: You are currently using manual UA code output. We highly recommend %1$sauthenticating with MonsterInsights%2$s so that you can access our new reporting area and take advantage of new MonsterInsights features.', 'google-analytics-for-wordpress' ), '<a href="' . $url .'">', '</a>' ); |
|
383 | + echo sprintf( esc_html__( 'Important: You are currently using manual UA code output. We highly recommend %1$sauthenticating with MonsterInsights%2$s so that you can access our new reporting area and take advantage of new MonsterInsights features.', 'google-analytics-for-wordpress' ), '<a href="' . $url . '">', '</a>' ); |
|
384 | 384 | echo '</p>'; |
385 | 385 | echo '</div>'; |
386 | 386 | return; |
@@ -403,7 +403,7 @@ discard block |
||
403 | 403 | |
404 | 404 | // 8. WooUpsell |
405 | 405 | if ( ! monsterinsights_is_pro_version() && class_exists( 'WooCommerce' ) ) { |
406 | - if ( ! isset( $notices['monsterinsights_woocommerce_tracking_available' ] ) ) { |
|
406 | + if ( ! isset( $notices['monsterinsights_woocommerce_tracking_available'] ) ) { |
|
407 | 407 | echo '<div class="notice notice-success is-dismissible monsterinsights-notice monsterinsights-wooedd-upsell-row" data-notice="monsterinsights_woocommerce_tracking_available">'; |
408 | 408 | echo '<div class="monsterinsights-wooedd-upsell-left">'; |
409 | 409 | echo '<p><strong>'; |
@@ -422,7 +422,7 @@ discard block |
||
422 | 422 | echo '<p>'; |
423 | 423 | echo esc_html( 'Start making data-driven decisions to grow your business.', 'google-analytics-for-wordpress' ); |
424 | 424 | echo '</p>'; |
425 | - echo sprintf( esc_html__( '%1$sGet MonsterInsights Pro%2$s', 'google-analytics-for-wordpress' ), '<a class="button button-primary button-hero" href="'. monsterinsights_get_upgrade_link( 'admin-notices', 'woocommerce-upgrade' ) .'">', ' »</a>' ); |
|
425 | + echo sprintf( esc_html__( '%1$sGet MonsterInsights Pro%2$s', 'google-analytics-for-wordpress' ), '<a class="button button-primary button-hero" href="' . monsterinsights_get_upgrade_link( 'admin-notices', 'woocommerce-upgrade' ) . '">', ' »</a>' ); |
|
426 | 426 | echo '</p>'; |
427 | 427 | echo '</div><div class="monsterinsights-wooedd-upsell-right">'; |
428 | 428 | echo '<img class="monsterinsights-wooedd-upsell-image monsterinsights-wooedd-upsell-image-large" src="' . trailingslashit( MONSTERINSIGHTS_PLUGIN_URL ) . 'assets/images/upsell/woo-edd-upsell.png">'; |
@@ -434,7 +434,7 @@ discard block |
||
434 | 434 | |
435 | 435 | // 9. EDDUpsell |
436 | 436 | if ( ! monsterinsights_is_pro_version() && class_exists( 'Easy_Digital_Downloads' ) ) { |
437 | - if ( ! isset( $notices['monsterinsights_edd_tracking_available' ] ) ) { |
|
437 | + if ( ! isset( $notices['monsterinsights_edd_tracking_available'] ) ) { |
|
438 | 438 | echo '<div class="notice notice-success is-dismissible monsterinsights-notice monsterinsights-wooedd-upsell-row" data-notice="monsterinsights_edd_tracking_available">'; |
439 | 439 | echo '<div class="monsterinsights-wooedd-upsell-left">'; |
440 | 440 | echo '<p><strong>'; |
@@ -453,7 +453,7 @@ discard block |
||
453 | 453 | echo '<p>'; |
454 | 454 | echo esc_html( 'Start making data-driven decisions to grow your business.', 'google-analytics-for-wordpress' ); |
455 | 455 | echo '</p>'; |
456 | - echo sprintf( esc_html__( '%1$sGet MonsterInsights Pro%2$s', 'google-analytics-for-wordpress' ), '<a class="button button-primary button-hero" href="'. monsterinsights_get_upgrade_link( 'admin-notices', 'edd-upgrade' ) .'">', ' »</a>' ); |
|
456 | + echo sprintf( esc_html__( '%1$sGet MonsterInsights Pro%2$s', 'google-analytics-for-wordpress' ), '<a class="button button-primary button-hero" href="' . monsterinsights_get_upgrade_link( 'admin-notices', 'edd-upgrade' ) . '">', ' »</a>' ); |
|
457 | 457 | echo '</p>'; |
458 | 458 | echo '</div><div class="monsterinsights-wooedd-upsell-right">'; |
459 | 459 | echo '<img class="monsterinsights-wooedd-upsell-image monsterinsights-wooedd-upsell-image-large" src="' . trailingslashit( MONSTERINSIGHTS_PLUGIN_URL ) . 'assets/images/upsell/woo-edd-upsell.png">'; |
@@ -466,8 +466,8 @@ discard block |
||
466 | 466 | if ( isset( $notices['monsterinsights_cross_domains_extracted'] ) && false === $notices['monsterinsights_cross_domains_extracted'] ) { |
467 | 467 | $page = is_network_admin() ? network_admin_url( 'admin.php?page=monsterinsights_network' ) : admin_url( 'admin.php?page=monsterinsights_settings' ); |
468 | 468 | $page = $page . '#/advanced'; |
469 | - $message = sprintf( esc_html__( 'Warning: MonsterInsights found cross-domain settings in the custom code field and converted them to the new settings structure. %1$sPlease click here to review and remove the code no longer needed.%2$s', 'google-analytics-for-wordpress' ), '<a href="'. esc_url( $page ) . '">', '</a>' ); |
|
470 | - echo '<div class="notice notice-success is-dismissible monsterinsights-notice" data-notice="monsterinsights_cross_domains_extracted"><p>'. $message.'</p></div>'; |
|
469 | + $message = sprintf( esc_html__( 'Warning: MonsterInsights found cross-domain settings in the custom code field and converted them to the new settings structure. %1$sPlease click here to review and remove the code no longer needed.%2$s', 'google-analytics-for-wordpress' ), '<a href="' . esc_url( $page ) . '">', '</a>' ); |
|
470 | + echo '<div class="notice notice-success is-dismissible monsterinsights-notice" data-notice="monsterinsights_cross_domains_extracted"><p>' . $message . '</p></div>'; |
|
471 | 471 | return; |
472 | 472 | } |
473 | 473 | } |