@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | if ( method_exists( $this, 'get_themes_' . $type ) ) { |
65 | 65 | $this->themes = call_user_func( array( $this, 'get_themes_' . $type ) ); |
66 | 66 | if ( ! empty( $theme ) ) { |
67 | - $this->theme = isset( $this->themes[ $theme ] ) ? $this->themes[ $theme ] : array(); |
|
67 | + $this->theme = isset( $this->themes[$theme] ) ? $this->themes[$theme] : array(); |
|
68 | 68 | |
69 | 69 | return $this->theme; |
70 | 70 | } else { |
@@ -114,14 +114,14 @@ discard block |
||
114 | 114 | |
115 | 115 | $settings = $this->get_theme_stored_styles(); |
116 | 116 | |
117 | - if ( ! empty( $settings[ $type ] ) ) { |
|
117 | + if ( ! empty( $settings[$type] ) ) { |
|
118 | 118 | foreach ( $themes as $theme_key => $theme_values ) { |
119 | - if ( ! empty( $settings[ $type ][ $theme_key ] ) ) { |
|
120 | - foreach ( $themes[ $theme_key ]['styles'] as $object => $props ) { |
|
121 | - if ( ! empty( $settings[ $type ][ $theme_key ][ $object ] ) ) { |
|
119 | + if ( ! empty( $settings[$type][$theme_key] ) ) { |
|
120 | + foreach ( $themes[$theme_key]['styles'] as $object => $props ) { |
|
121 | + if ( ! empty( $settings[$type][$theme_key][$object] ) ) { |
|
122 | 122 | foreach ( $props as $style_key => $style_value ) { |
123 | - if ( ! empty( $settings[ $type ][ $theme_key ][ $object ][ $style_key ] ) ) { |
|
124 | - $themes[ $theme_key ]['styles'][ $object ][ $style_key ] = $settings[ $type ][ $theme_key ][ $object ][ $style_key ]; |
|
123 | + if ( ! empty( $settings[$type][$theme_key][$object][$style_key] ) ) { |
|
124 | + $themes[$theme_key]['styles'][$object][$style_key] = $settings[$type][$theme_key][$object][$style_key]; |
|
125 | 125 | } |
126 | 126 | } |
127 | 127 | } |
@@ -521,13 +521,13 @@ discard block |
||
521 | 521 | continue; |
522 | 522 | } |
523 | 523 | |
524 | - if ( ! empty( $atts[ $atts_key ] ) ) { |
|
525 | - if ( is_bool( $atts[ $atts_key ] ) || 'on' === $atts[ $atts_key ] ) { |
|
524 | + if ( ! empty( $atts[$atts_key] ) ) { |
|
525 | + if ( is_bool( $atts[$atts_key] ) || 'on' === $atts[$atts_key] ) { |
|
526 | 526 | continue; |
527 | 527 | } |
528 | 528 | if ( 'size' === $style_key ) { |
529 | - $style_key = 'font-size'; |
|
530 | - $atts[ $atts_key ] .= 'px'; |
|
529 | + $style_key = 'font-size'; |
|
530 | + $atts[$atts_key] .= 'px'; |
|
531 | 531 | } |
532 | 532 | if ( 'background' === $style_key || 'background' === $element && 'color' === $style_key ) { |
533 | 533 | $style_key = 'background-color'; |
@@ -535,7 +535,7 @@ discard block |
||
535 | 535 | if ( 'border' === $element || 'border' === $style_key ) { |
536 | 536 | $style_key = 'border-color'; |
537 | 537 | } |
538 | - $style_css .= $style_key . ':' . $atts[ $atts_key ] . ';'; |
|
538 | + $style_css .= $style_key . ':' . $atts[$atts_key] . ';'; |
|
539 | 539 | } |
540 | 540 | } |
541 | 541 | } |
@@ -558,11 +558,11 @@ discard block |
||
558 | 558 | |
559 | 559 | $class = get_called_class(); |
560 | 560 | |
561 | - if ( ! isset( self::$instances[ $class ] ) ) { |
|
562 | - self::$instances[ $class ] = new $class; |
|
561 | + if ( ! isset( self::$instances[$class] ) ) { |
|
562 | + self::$instances[$class] = new $class; |
|
563 | 563 | } |
564 | 564 | |
565 | - return self::$instances[ $class ]; |
|
565 | + return self::$instances[$class]; |
|
566 | 566 | |
567 | 567 | } |
568 | 568 | |
@@ -723,7 +723,7 @@ discard block |
||
723 | 723 | public function get_themes_styles_for_output() { |
724 | 724 | |
725 | 725 | $stored_styles = $this->get_theme_props()->get_theme_stored_styles(); |
726 | - $themes = ! empty( $stored_styles[ $this->type ] ) && is_array( $stored_styles[ $this->type ] ) ? $stored_styles[ $this->type ] : array(); |
|
726 | + $themes = ! empty( $stored_styles[$this->type] ) && is_array( $stored_styles[$this->type] ) ? $stored_styles[$this->type] : array(); |
|
727 | 727 | |
728 | 728 | return $themes; |
729 | 729 |
@@ -229,9 +229,9 @@ |
||
229 | 229 | $schedule['minute'] = rand( 0, 59 ); |
230 | 230 | $schedule['second'] = rand( 0, 59 ); |
231 | 231 | $schedule['offset'] = ( $schedule['day'] * DAY_IN_SECONDS ) + |
232 | - ( $schedule['hour'] * HOUR_IN_SECONDS ) + |
|
233 | - ( $schedule['minute'] * MINUTE_IN_SECONDS ) + |
|
234 | - $schedule['second']; |
|
232 | + ( $schedule['hour'] * HOUR_IN_SECONDS ) + |
|
233 | + ( $schedule['minute'] * MINUTE_IN_SECONDS ) + |
|
234 | + $schedule['second']; |
|
235 | 235 | $date = strtotime( $this->notification_first_run_time ) + $schedule['offset']; |
236 | 236 | |
237 | 237 | return $date; |
@@ -126,14 +126,14 @@ discard block |
||
126 | 126 | $this->notification_recurrence_name = $this->notification_id . '_' . $this->notification_interval . '_days'; |
127 | 127 | $this->notification_id = $this->notification_id . '_' . time(); |
128 | 128 | $this->notification_active_for = date( "m/d/Y", strtotime( "+" . ( $this->notification_interval - 2 ) . " day" ) ); |
129 | - $this->report_start_from = "-". $this->notification_interval ." day"; |
|
129 | + $this->report_start_from = "-" . $this->notification_interval . " day"; |
|
130 | 130 | |
131 | - if( ! isset( $this->notification_first_run_time ) || empty( $this->notification_first_run_time ) ) { |
|
132 | - $this->notification_first_run_time = "+". $this->notification_interval ." day"; |
|
131 | + if ( ! isset( $this->notification_first_run_time ) || empty( $this->notification_first_run_time ) ) { |
|
132 | + $this->notification_first_run_time = "+" . $this->notification_interval . " day"; |
|
133 | 133 | } |
134 | 134 | |
135 | - if( ! isset( $this->notification_icon ) || empty( $this->notification_icon ) ) { |
|
136 | - $this->notification_icon = '<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"> |
|
135 | + if ( ! isset( $this->notification_icon ) || empty( $this->notification_icon ) ) { |
|
136 | + $this->notification_icon = '<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"> |
|
137 | 137 | <circle cx="16" cy="16" r="16" fill="#D3F8EA"/> |
138 | 138 | <path d="M21.8634 18.6429C21.8634 18.8571 21.7831 19.0268 21.6224 19.1518C21.5688 19.3482 21.542 19.6786 21.542 20.1429C21.542 20.6071 21.5688 20.9375 21.6224 21.1339C21.7831 21.2768 21.8634 21.4464 21.8634 21.6429V22.0714C21.8634 22.25 21.8009 22.4018 21.6759 22.5268C21.5509 22.6518 21.3992 22.7143 21.2206 22.7143H12.4349C11.7206 22.7143 11.1134 22.4643 10.6134 21.9643C10.1134 21.4643 9.86345 20.8571 9.86345 20.1429V11.5714C9.86345 10.8571 10.1134 10.25 10.6134 9.75C11.1134 9.25 11.7206 9 12.4349 9H21.2206C21.3992 9 21.5509 9.0625 21.6759 9.1875C21.8009 9.3125 21.8634 9.46429 21.8634 9.64286V18.6429ZM13.292 12.5893V13.125C13.292 13.2321 13.3456 13.2857 13.4527 13.2857H19.1313C19.2384 13.2857 19.292 13.2321 19.292 13.125V12.5893C19.292 12.4821 19.2384 12.4286 19.1313 12.4286H13.4527C13.3456 12.4286 13.292 12.4821 13.292 12.5893ZM13.292 14.3036V14.8393C13.292 14.9464 13.3456 15 13.4527 15H19.1313C19.2384 15 19.292 14.9464 19.292 14.8393V14.3036C19.292 14.1964 19.2384 14.1429 19.1313 14.1429H13.4527C13.3456 14.1429 13.292 14.1964 13.292 14.3036ZM20.0688 21C20.0152 20.4286 20.0152 19.8571 20.0688 19.2857H12.4349C12.2027 19.2857 11.9974 19.375 11.8188 19.5536C11.6581 19.7143 11.5777 19.9107 11.5777 20.1429C11.5777 20.375 11.6581 20.5804 11.8188 20.7589C11.9974 20.9196 12.2027 21 12.4349 21H20.0688Z" fill="#1EC185"/> |
139 | 139 | </svg>'; |
@@ -232,7 +232,7 @@ discard block |
||
232 | 232 | ( $schedule['hour'] * HOUR_IN_SECONDS ) + |
233 | 233 | ( $schedule['minute'] * MINUTE_IN_SECONDS ) + |
234 | 234 | $schedule['second']; |
235 | - $date = strtotime( $this->notification_first_run_time ) + $schedule['offset']; |
|
235 | + $date = strtotime( $this->notification_first_run_time ) + $schedule['offset']; |
|
236 | 236 | |
237 | 237 | return $date; |
238 | 238 | } |
@@ -266,7 +266,7 @@ discard block |
||
266 | 266 | $notification['start'] = $this->notification_active_from; |
267 | 267 | $notification['end'] = $this->notification_active_for; |
268 | 268 | |
269 | - $notification_data = apply_filters( $this->notification_id, $notification ); |
|
269 | + $notification_data = apply_filters( $this->notification_id, $notification ); |
|
270 | 270 | |
271 | 271 | if ( is_array( $notification_data ) && ! empty( $notification_data ) ) { |
272 | 272 | MonsterInsights()->notifications->add( $notification_data ); |
@@ -284,7 +284,7 @@ discard block |
||
284 | 284 | * |
285 | 285 | * @since 7.12.3 |
286 | 286 | */ |
287 | - public function get_report( $report_name="overview", $report_start_from="-30 day", $report_end_to="-1 day" ) { |
|
287 | + public function get_report( $report_name = "overview", $report_start_from = "-30 day", $report_end_to = "-1 day" ) { |
|
288 | 288 | // get overview report data |
289 | 289 | $data = array(); |
290 | 290 | $report = MonsterInsights()->reporting->get_report( $report_name ); |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | return; |
65 | 65 | } |
66 | 66 | |
67 | - $site_license = array( |
|
67 | + $site_license = array( |
|
68 | 68 | 'key' => MonsterInsights()->license->get_site_license_key(), |
69 | 69 | 'type' => MonsterInsights()->license->get_site_license_type(), |
70 | 70 | 'is_disabled' => MonsterInsights()->license->site_license_disabled(), |
@@ -124,8 +124,8 @@ discard block |
||
124 | 124 | // Array fields are needed even if empty. |
125 | 125 | $array_fields = array( 'view_reports', 'save_settings', 'ignore_users' ); |
126 | 126 | foreach ( $array_fields as $array_field ) { |
127 | - if ( ! isset( $options[ $array_field ] ) ) { |
|
128 | - $options[ $array_field ] = array(); |
|
127 | + if ( ! isset( $options[$array_field] ) ) { |
|
128 | + $options[$array_field] = array(); |
|
129 | 129 | } |
130 | 130 | } |
131 | 131 | if ( isset( $options['custom_code'] ) ) { |
@@ -256,7 +256,7 @@ discard block |
||
256 | 256 | } |
257 | 257 | } |
258 | 258 | if ( $empty ) { |
259 | - unset( $value[ $key ] ); |
|
259 | + unset( $value[$key] ); |
|
260 | 260 | } |
261 | 261 | } |
262 | 262 | } |
@@ -306,7 +306,7 @@ discard block |
||
306 | 306 | } else { |
307 | 307 | $addon = $this->get_addon( $installed_plugins, $addons_type, $addon, $slug ); |
308 | 308 | } |
309 | - $parsed_addons[ $addon->slug ] = $addon; |
|
309 | + $parsed_addons[$addon->slug] = $addon; |
|
310 | 310 | } |
311 | 311 | } |
312 | 312 | |
@@ -384,7 +384,7 @@ discard block |
||
384 | 384 | 'slug' => 'pretty-link', |
385 | 385 | ); |
386 | 386 | // SeedProd. |
387 | - $parsed_addons['coming-soon'] = array( |
|
387 | + $parsed_addons['coming-soon'] = array( |
|
388 | 388 | 'active' => function_exists( 'seed_csp4_activation' ), |
389 | 389 | 'icon' => plugin_dir_url( MONSTERINSIGHTS_PLUGIN_FILE ) . 'assets/images/seedprod.png', |
390 | 390 | 'title' => 'SeedProd', |
@@ -393,7 +393,7 @@ discard block |
||
393 | 393 | 'basename' => 'coming-soon/coming-soon.php', |
394 | 394 | 'slug' => 'coming-soon', |
395 | 395 | ); |
396 | - $parsed_addons['rafflepress'] = array( |
|
396 | + $parsed_addons['rafflepress'] = array( |
|
397 | 397 | 'active' => function_exists( 'rafflepress_lite_activation' ), |
398 | 398 | 'icon' => plugin_dir_url( MONSTERINSIGHTS_PLUGIN_FILE ) . 'assets/images/rafflepress.png', |
399 | 399 | 'title' => 'RafflePress', |
@@ -434,7 +434,7 @@ discard block |
||
434 | 434 | $installed = false; |
435 | 435 | $plugin_basename = monsterinsights_get_plugin_basename_from_slug( $slug ); |
436 | 436 | |
437 | - if ( isset( $installed_plugins[ $plugin_basename ] ) ) { |
|
437 | + if ( isset( $installed_plugins[$plugin_basename] ) ) { |
|
438 | 438 | $installed = true; |
439 | 439 | |
440 | 440 | if ( is_multisite() && is_network_admin() ) { |
@@ -577,8 +577,8 @@ discard block |
||
577 | 577 | ); |
578 | 578 | |
579 | 579 | foreach ( $exclude as $e ) { |
580 | - if ( ! empty( $new_settings[ $e ] ) ) { |
|
581 | - unset( $new_settings[ $e ] ); |
|
580 | + if ( ! empty( $new_settings[$e] ) ) { |
|
581 | + unset( $new_settings[$e] ); |
|
582 | 582 | } |
583 | 583 | } |
584 | 584 | |
@@ -589,8 +589,8 @@ discard block |
||
589 | 589 | } |
590 | 590 | |
591 | 591 | foreach ( $exclude as $e ) { |
592 | - if ( ! empty( $settings[ $e ] ) ) { |
|
593 | - $new_settings = $settings[ $e ]; |
|
592 | + if ( ! empty( $settings[$e] ) ) { |
|
593 | + $new_settings = $settings[$e]; |
|
594 | 594 | } |
595 | 595 | } |
596 | 596 | |
@@ -750,7 +750,7 @@ discard block |
||
750 | 750 | ), |
751 | 751 | admin_url( 'admin.php' ) |
752 | 752 | ); |
753 | - $url = esc_url( $url ); |
|
753 | + $url = esc_url( $url ); |
|
754 | 754 | |
755 | 755 | ob_start(); |
756 | 756 | if ( false === ( $creds = request_filesystem_credentials( $url, $method, false, false, null ) ) ) { |
@@ -856,7 +856,7 @@ discard block |
||
856 | 856 | $homepage = get_option( 'page_on_front' ); |
857 | 857 | if ( ! $homepage ) { |
858 | 858 | $array[] = array( |
859 | - 'id' => - 1, |
|
859 | + 'id' => -1, |
|
860 | 860 | 'title' => __( 'Homepage', 'google-analytics-for-wordpress' ), |
861 | 861 | ); |
862 | 862 | } |
@@ -930,7 +930,7 @@ discard block |
||
930 | 930 | if ( ! post_type_supports( $post_type->name, 'editor' ) || 'product' === $post_type->name ) { |
931 | 931 | continue; |
932 | 932 | } |
933 | - $post_types_parsed[ $post_type->name ] = $post_type->labels->singular_name; |
|
933 | + $post_types_parsed[$post_type->name] = $post_type->labels->singular_name; |
|
934 | 934 | } |
935 | 935 | |
936 | 936 | $post_types_parsed = apply_filters( 'monsterinsights_vue_post_types_editor', $post_types_parsed ); |
@@ -1052,18 +1052,18 @@ discard block |
||
1052 | 1052 | $value = sanitize_text_field( wp_unslash( $_POST['value'] ) ); // Value of custom style like 12px or #fff. |
1053 | 1053 | $settings = get_option( $settings_key, array() ); |
1054 | 1054 | |
1055 | - if ( ! isset( $settings[ $type ] ) ) { |
|
1056 | - $settings[ $type ] = array(); |
|
1055 | + if ( ! isset( $settings[$type] ) ) { |
|
1056 | + $settings[$type] = array(); |
|
1057 | 1057 | } |
1058 | - if ( ! isset( $settings[ $type ][ $theme ] ) ) { |
|
1059 | - $settings[ $type ][ $theme ] = array(); |
|
1058 | + if ( ! isset( $settings[$type][$theme] ) ) { |
|
1059 | + $settings[$type][$theme] = array(); |
|
1060 | 1060 | } |
1061 | 1061 | |
1062 | - if ( ! isset( $settings[ $type ][ $theme ][ $object ] ) ) { |
|
1063 | - $settings[ $type ][ $theme ][ $object ] = array(); |
|
1062 | + if ( ! isset( $settings[$type][$theme][$object] ) ) { |
|
1063 | + $settings[$type][$theme][$object] = array(); |
|
1064 | 1064 | } |
1065 | 1065 | |
1066 | - $settings[ $type ][ $theme ][ $object ][ $key ] = $value; |
|
1066 | + $settings[$type][$theme][$object][$key] = $value; |
|
1067 | 1067 | |
1068 | 1068 | update_option( $settings_key, $settings ); |
1069 | 1069 |
@@ -23,10 +23,10 @@ |
||
23 | 23 | public function prepare_notification_data( $notification ) { |
24 | 24 | $notification['title'] = __( 'Headline Analyzer to Boost Your Clicks & Traffic', 'google-analytics-for-wordpress' ); |
25 | 25 | // Translators: Headline Analyzer notification content |
26 | - $notification['content'] = sprintf( __( 'Did you know that 36%% of SEO experts think the headline is the most important SEO element? Yet many website owners don’t know how to optimize their headlines for SEO and clicks. Instead, they write copy and hope for the best, only to see disappointing results. Now there’s an easier way! <br><br>%sWith the MonsterInsights Headline Analyzer%s, you can get targeted suggestions to improve your headlines, right in the WordPress editor.', 'google-analytics-for-wordpress' ), '<a href="'. $this->build_external_link('https://www.monsterinsights.com/announcing-monsterinsights-new-headline-analyzer/' ) .'" target="_blank">', '</a>' ); |
|
26 | + $notification['content'] = sprintf( __( 'Did you know that 36%% of SEO experts think the headline is the most important SEO element? Yet many website owners don’t know how to optimize their headlines for SEO and clicks. Instead, they write copy and hope for the best, only to see disappointing results. Now there’s an easier way! <br><br>%sWith the MonsterInsights Headline Analyzer%s, you can get targeted suggestions to improve your headlines, right in the WordPress editor.', 'google-analytics-for-wordpress' ), '<a href="' . $this->build_external_link( 'https://www.monsterinsights.com/announcing-monsterinsights-new-headline-analyzer/' ) . '" target="_blank">', '</a>' ); |
|
27 | 27 | $notification['btns'] = array( |
28 | 28 | "learn_more" => array( |
29 | - 'url' => $this->build_external_link('https://www.monsterinsights.com/announcing-monsterinsights-new-headline-analyzer/' ), |
|
29 | + 'url' => $this->build_external_link( 'https://www.monsterinsights.com/announcing-monsterinsights-new-headline-analyzer/' ), |
|
30 | 30 | 'text' => __( 'Learn More', 'google-analytics-for-wordpress' ) |
31 | 31 | ), |
32 | 32 | ); |
@@ -26,7 +26,7 @@ |
||
26 | 26 | public function prepare_notification_data( $notification ) { |
27 | 27 | $notification['title'] = __( 'Get access to Google Search Keywords data by upgrading to MonsterInsights Pro', 'google-analytics-for-wordpress' ); |
28 | 28 | // Translators: upgrade for search console notification content |
29 | - $notification['content'] = sprintf( __( 'Do you want to find out which search terms from Google bring your site the most visitors? %sUpgrade to MonsterInsights PRO%s today and get access to the %sSearch Console Report%s and more directly in your WordPress admin.', 'google-analytics-for-wordpress' ), '<a href="' . $this->get_upgrade_url() . '" target="_blank">', '</a>', '<a href="'. $this->build_external_link( 'https://www.monsterinsights.com/feature/search-console-report/' ) .'" target="_blank">', '</a>' ); |
|
29 | + $notification['content'] = sprintf( __( 'Do you want to find out which search terms from Google bring your site the most visitors? %sUpgrade to MonsterInsights PRO%s today and get access to the %sSearch Console Report%s and more directly in your WordPress admin.', 'google-analytics-for-wordpress' ), '<a href="' . $this->get_upgrade_url() . '" target="_blank">', '</a>', '<a href="' . $this->build_external_link( 'https://www.monsterinsights.com/feature/search-console-report/' ) . '" target="_blank">', '</a>' ); |
|
30 | 30 | $notification['btns'] = array( |
31 | 31 | "get_monsterinsights_pro" => array( |
32 | 32 | 'url' => $this->get_upgrade_url(), |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | $translations = wp_get_available_translations(); |
45 | 45 | |
46 | 46 | if ( is_array( $translations ) && ! empty( $translations ) ) { |
47 | - $site_iso = isset( $translations[ $site_language ]['iso'] ) ? $translations[ $site_language ]['iso'] : array(); // keep empty array, because site language has no iso setup for en_US language |
|
47 | + $site_iso = isset( $translations[$site_language]['iso'] ) ? $translations[$site_language]['iso'] : array(); // keep empty array, because site language has no iso setup for en_US language |
|
48 | 48 | |
49 | 49 | if ( is_array( $site_iso ) && ! in_array( $country['iso'], $site_iso ) ) { |
50 | 50 | $data['country'] = $country['name']; |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | // Translators: Audience notification title |
80 | 80 | $notification['title'] = sprintf( __( '%s%% of your Audience is from %s', 'google-analytics-for-wordpress' ), $data['percentage'], $data['country'] ); |
81 | 81 | // Translators: Audience notification content |
82 | - $notification['content'] = sprintf( __( 'Is your site properly translated? By adding translated content specific to your audience you could gain big boosts in pageviews, time spent on page and a reduced bounce rate.<br><br>If you need help choosing a translation plugin to get you started take a look at %sthis article%s for the best options available.', 'google-analytics-for-wordpress' ), '<a href="'. $this->build_external_link('https://www.wpbeginner.com/showcase/9-best-translation-plugins-for-wordpress-websites/' ) .'" target="_blank">', '</a>' ); |
|
82 | + $notification['content'] = sprintf( __( 'Is your site properly translated? By adding translated content specific to your audience you could gain big boosts in pageviews, time spent on page and a reduced bounce rate.<br><br>If you need help choosing a translation plugin to get you started take a look at %sthis article%s for the best options available.', 'google-analytics-for-wordpress' ), '<a href="' . $this->build_external_link( 'https://www.wpbeginner.com/showcase/9-best-translation-plugins-for-wordpress-websites/' ) . '" target="_blank">', '</a>' ); |
|
83 | 83 | $notification['btns'] = array( |
84 | 84 | "view_report" => array( |
85 | 85 | 'url' => $this->get_view_url(), |
@@ -27,14 +27,14 @@ |
||
27 | 27 | // Translators: Mobile device notification title |
28 | 28 | $notification['title'] = sprintf( __( 'Traffic from Mobile Devices is %s%%', 'google-analytics-for-wordpress' ), $data['percentage_of_mobile_visitors'] ); |
29 | 29 | // Translators: Mobile device notification content |
30 | - $notification['content'] = sprintf( __( 'Traffic from mobile devices is considerably lower on your site compared to desktop devices. This could be an indicator that your site is not optimised for mobile devices.<br><br>Take a look now at %show your site looks%s on mobile and make sure all your content can be accessed correctly.', 'google-analytics-for-wordpress' ), '<a href="'. $this->build_external_link( 'https://www.wpbeginner.com/beginners-guide/how-to-preview-the-mobile-layout-of-your-site/' ) .'">', '</a>' ); |
|
30 | + $notification['content'] = sprintf( __( 'Traffic from mobile devices is considerably lower on your site compared to desktop devices. This could be an indicator that your site is not optimised for mobile devices.<br><br>Take a look now at %show your site looks%s on mobile and make sure all your content can be accessed correctly.', 'google-analytics-for-wordpress' ), '<a href="' . $this->build_external_link( 'https://www.wpbeginner.com/beginners-guide/how-to-preview-the-mobile-layout-of-your-site/' ) . '">', '</a>' ); |
|
31 | 31 | $notification['btns'] = array( |
32 | 32 | "view_report" => array( |
33 | 33 | 'url' => $this->get_view_url(), |
34 | 34 | 'text' => __( 'View Report', 'google-analytics-for-wordpress' ) |
35 | 35 | ), |
36 | 36 | "learn_more" => array( |
37 | - 'url' => $this->build_external_link('https://www.wpbeginner.com/beginners-guide/how-to-preview-the-mobile-layout-of-your-site/' ), |
|
37 | + 'url' => $this->build_external_link( 'https://www.wpbeginner.com/beginners-guide/how-to-preview-the-mobile-layout-of-your-site/' ), |
|
38 | 38 | 'text' => __( 'Learn More', 'google-analytics-for-wordpress' ) |
39 | 39 | ), |
40 | 40 | ); |
@@ -27,14 +27,14 @@ |
||
27 | 27 | if ( ! empty( $data ) && $data['bounce_rate'] > 70 ) { |
28 | 28 | $notification['title'] = __( 'Your website bounce rate is higher than 70%', 'google-analytics-for-wordpress' ); |
29 | 29 | // Translators: Bounce rate notification content |
30 | - $notification['content'] = sprintf( __( 'Your website bounce rate is %s. High bounce rates can hurt your site’s conversions rates. A high bounce rate might mean that people aren’t finding what they’re looking for on your site. %sHere%s are some points to remember and steps to follow to get your bounce rates back to manageable levels.', 'google-analytics-for-wordpress' ), $data['bounce_rate'] . '%', '<a href="'. $this->build_external_link('https://www.monsterinsights.com/how-to-reduce-bounce-rate/' ) .'" target="_blank">', '</a>' ); |
|
30 | + $notification['content'] = sprintf( __( 'Your website bounce rate is %s. High bounce rates can hurt your site’s conversions rates. A high bounce rate might mean that people aren’t finding what they’re looking for on your site. %sHere%s are some points to remember and steps to follow to get your bounce rates back to manageable levels.', 'google-analytics-for-wordpress' ), $data['bounce_rate'] . '%', '<a href="' . $this->build_external_link( 'https://www.monsterinsights.com/how-to-reduce-bounce-rate/' ) . '" target="_blank">', '</a>' ); |
|
31 | 31 | $notification['btns'] = array( |
32 | 32 | "view_report" => array( |
33 | 33 | 'url' => $this->get_view_url(), |
34 | 34 | 'text' => __( 'View Report', 'google-analytics-for-wordpress' ) |
35 | 35 | ), |
36 | 36 | "learn_more" => array( |
37 | - 'url' => $this->build_external_link('https://www.monsterinsights.com/how-to-reduce-bounce-rate/' ), |
|
37 | + 'url' => $this->build_external_link( 'https://www.monsterinsights.com/how-to-reduce-bounce-rate/' ), |
|
38 | 38 | 'text' => __( 'Learn More', 'google-analytics-for-wordpress' ) |
39 | 39 | ), |
40 | 40 | ); |