|
@@ -18,13 +18,13 @@ discard block |
|
|
block discarded – undo |
|
18
|
18
|
*/ |
|
19
|
19
|
public function __construct() { |
|
20
|
20
|
parent::__construct(); |
|
21
|
|
- $this->page_name = __( 'Google Maps Builder Settings', 'google-maps-builder' ); |
|
|
21
|
+ $this->page_name = __('Google Maps Builder Settings', 'google-maps-builder'); |
|
22
|
22
|
|
|
23
|
|
- add_action( 'cmb2_render_lat_lng_default', array( $this, 'cmb2_render_lat_lng_default' ), 10, 2 ); |
|
|
23
|
+ add_action('cmb2_render_lat_lng_default', array($this, 'cmb2_render_lat_lng_default'), 10, 2); |
|
24
|
24
|
|
|
25
|
25
|
//upsell markup |
|
26
|
|
- add_action( 'gmb_settings_page_after_logo', array( $this, 'settings_upsell' ) ); |
|
27
|
|
- add_action( 'gmb_social_media_after_logo', array( $this, 'settings_social_media_upsell' ) ); |
|
|
26
|
+ add_action('gmb_settings_page_after_logo', array($this, 'settings_upsell')); |
|
|
27
|
+ add_action('gmb_social_media_after_logo', array($this, 'settings_social_media_upsell')); |
|
28
|
28
|
} |
|
29
|
29
|
|
|
30
|
30
|
|
|
@@ -35,13 +35,13 @@ discard block |
|
|
block discarded – undo |
|
35
|
35
|
* |
|
36
|
36
|
* @return mixed |
|
37
|
37
|
*/ |
|
38
|
|
- function add_plugin_page_links( $links, $file ) { |
|
|
38
|
+ function add_plugin_page_links($links, $file) { |
|
39
|
39
|
|
|
40
|
|
- if ( $file == GMB_PLUGIN_BASE ) { |
|
|
40
|
+ if ($file == GMB_PLUGIN_BASE) { |
|
41
|
41
|
|
|
42
|
42
|
// Add Widget Page link to our plugin |
|
43
|
|
- $settings_link = '<a href="edit.php?post_type=google_maps&page=' . self::$key . '" title="' . __( 'Visit the Google Maps Builder plugin settings page', 'google-maps-builder' ) . '">' . __( 'Settings', 'google-maps-builder' ) . '</a>'; |
|
44
|
|
- array_unshift( $links, $settings_link ); |
|
|
43
|
+ $settings_link = '<a href="edit.php?post_type=google_maps&page='.self::$key.'" title="'.__('Visit the Google Maps Builder plugin settings page', 'google-maps-builder').'">'.__('Settings', 'google-maps-builder').'</a>'; |
|
|
44
|
+ array_unshift($links, $settings_link); |
|
45
|
45
|
} |
|
46
|
46
|
|
|
47
|
47
|
return $links; |
|
@@ -57,14 +57,14 @@ discard block |
|
|
block discarded – undo |
|
57
|
57
|
* |
|
58
|
58
|
* @return array |
|
59
|
59
|
*/ |
|
60
|
|
- function add_plugin_meta_links( $meta, $file ) { |
|
|
60
|
+ function add_plugin_meta_links($meta, $file) { |
|
61
|
61
|
|
|
62
|
|
- if ( $file == GMB_PLUGIN_BASE ) { |
|
63
|
|
- $meta[] = "<a href='http://wordpress.org/support/view/plugin-reviews/google-maps-builder' target='_blank' title='" . __( 'Rate Google Maps Builder on WordPress.org', 'google-maps-builder' ) . "'>" . __( 'Rate Plugin', 'google-maps-builder' ) . "</a>"; |
|
64
|
|
- $meta[] = "<a href='https://wordimpress.com/documentation/maps-builder-pro/' target='_blank' title='" . __( 'View the plugin documentation', 'google-maps-builder' ) . "'>" . __( 'Documentation', 'google-maps-builder' ) . "</a>"; |
|
65
|
|
- $meta[] = '<a href="http://wordpress.org/support/plugin/google-maps-builder/" target="_blank" title="' . __( 'Get plugin support via the WordPress community', 'google-maps-builder' ) . '">' . __( 'Support', 'google-maps-builder' ) . '</a>'; |
|
|
62
|
+ if ($file == GMB_PLUGIN_BASE) { |
|
|
63
|
+ $meta[] = "<a href='http://wordpress.org/support/view/plugin-reviews/google-maps-builder' target='_blank' title='".__('Rate Google Maps Builder on WordPress.org', 'google-maps-builder')."'>".__('Rate Plugin', 'google-maps-builder')."</a>"; |
|
|
64
|
+ $meta[] = "<a href='https://wordimpress.com/documentation/maps-builder-pro/' target='_blank' title='".__('View the plugin documentation', 'google-maps-builder')."'>".__('Documentation', 'google-maps-builder')."</a>"; |
|
|
65
|
+ $meta[] = '<a href="http://wordpress.org/support/plugin/google-maps-builder/" target="_blank" title="'.__('Get plugin support via the WordPress community', 'google-maps-builder').'">'.__('Support', 'google-maps-builder').'</a>'; |
|
66
|
66
|
$meta[] = '<a href=" |
|
67
|
|
-https://wordimpress.com/plugins/maps-builder-pro?utm_source=MBF&utm_medium=BANNER&utm_content=LISTING&utm_campaign=MBF%20LISTING" title="' . __( 'Upgrade to Maps Builder Pro', 'google-maps-builder' ) . '" target="_blank">' . __( 'Upgrade to Pro', 'google-maps-builder' ) . ' »</a>'; |
|
|
67
|
+https://wordimpress.com/plugins/maps-builder-pro?utm_source=MBF&utm_medium=BANNER&utm_content=LISTING&utm_campaign=MBF%20LISTING" title="' . __('Upgrade to Maps Builder Pro', 'google-maps-builder').'" target="_blank">'.__('Upgrade to Pro', 'google-maps-builder').' »</a>'; |
|
68
|
68
|
} |
|
69
|
69
|
|
|
70
|
70
|
return $meta; |
|
@@ -79,7 +79,7 @@ discard block |
|
|
block discarded – undo |
|
79
|
79
|
*/ |
|
80
|
80
|
public function settings_upsell() { ?> |
|
81
|
81
|
<a href="https://wordimpress.com/plugins/maps-builder-pro?utm_source=MBF&utm_medium=BANNER&utm_content=SETTINGS&utm_campaign=MBF%20Settings" target="_blank" class="button button-primary gmb-orange-btn gmb-settings-header-btn"> |
|
82
|
|
- <?php _e( 'Upgrade to Pro', 'google-maps-builder' ); ?> |
|
|
82
|
+ <?php _e('Upgrade to Pro', 'google-maps-builder'); ?> |
|
83
|
83
|
</a> |
|
84
|
84
|
<?php |
|
85
|
85
|
} |
|
@@ -95,7 +95,7 @@ discard block |
|
|
block discarded – undo |
|
95
|
95
|
?> |
|
96
|
96
|
<div class="go-pro"> |
|
97
|
97
|
<a href="https://wordimpress.com/plugins/maps-builder-pro?utm_source=MBF&utm_medium=BANNER&utm_content=SETTINGS&utm_campaign=MBF%20Settings" target="_blank" class="button button-primary button-small gmb-orange-btn gmb-settings-header-btn"> |
|
98
|
|
- <?php esc_html_e( 'Upgrade to Pro', 'google-maps-builder' ); ?> |
|
|
98
|
+ <?php esc_html_e('Upgrade to Pro', 'google-maps-builder'); ?> |
|
99
|
99
|
</a> |
|
100
|
100
|
</div> |
|
101
|
101
|
<?php |
|
@@ -111,11 +111,11 @@ discard block |
|
|
block discarded – undo |
|
111
|
111
|
protected function settings_page_data() { |
|
112
|
112
|
//place holder |
|
113
|
113
|
$data = array( |
|
114
|
|
- 'welcome' => sprintf( '%1s Maps Builder %s', __( 'Welcome to', 'maps-builder-pro' ), Google_Maps_Builder()->meta['Version'] ), |
|
|
114
|
+ 'welcome' => sprintf('%1s Maps Builder %s', __('Welcome to', 'maps-builder-pro'), Google_Maps_Builder()->meta['Version']), |
|
115
|
115
|
'sub_heading' => $this->sub_heading() |
|
116
|
116
|
); |
|
117
|
117
|
|
|
118
|
|
- return $this->view_data( $data, true ); |
|
|
118
|
+ return $this->view_data($data, true); |
|
119
|
119
|
} |
|
120
|
120
|
|
|
121
|
121
|
/** |
|
@@ -126,8 +126,8 @@ discard block |
|
|
block discarded – undo |
|
126
|
126
|
* @return string |
|
127
|
127
|
*/ |
|
128
|
128
|
protected function sub_heading() { |
|
129
|
|
- $out = __( 'Thanks for using Maps Builder', 'google-maps-pro' ); |
|
130
|
|
- $out .= sprintf( __( 'To get started, read over the %1$sdocumentation%2$s, take a gander at the settings, and build yourself some maps! If you enjoy this plugin please consider telling a friend, rating it %3$s5-stars%2$s, or purchasing the %4$sPro%2$s edition.', 'google-maps-builder' ), '<a href="https://wordimpress.com/documentation/maps-builder-pro/" target="_blank">', '</a>', '<a href="https://wordpress.org/support/view/plugin-reviews/google-maps-builder?filter=5#postform" target="_blank">', '<a href="https://wordimpress.com/plugins/maps-builder-pro?utm_source=MBF&utm_medium=BANNER&utm_content=SETTINGS&utm_campaign=MBF%20Settings" target="_blank">' ); |
|
|
129
|
+ $out = __('Thanks for using Maps Builder', 'google-maps-pro'); |
|
|
130
|
+ $out .= sprintf(__('To get started, read over the %1$sdocumentation%2$s, take a gander at the settings, and build yourself some maps! If you enjoy this plugin please consider telling a friend, rating it %3$s5-stars%2$s, or purchasing the %4$sPro%2$s edition.', 'google-maps-builder'), '<a href="https://wordimpress.com/documentation/maps-builder-pro/" target="_blank">', '</a>', '<a href="https://wordpress.org/support/view/plugin-reviews/google-maps-builder?filter=5#postform" target="_blank">', '<a href="https://wordimpress.com/plugins/maps-builder-pro?utm_source=MBF&utm_medium=BANNER&utm_content=SETTINGS&utm_campaign=MBF%20Settings" target="_blank">'); |
|
131
|
131
|
|
|
132
|
132
|
return $out; |
|
133
|
133
|
|