@@ -35,22 +35,22 @@ discard block |
||
35 | 35 | |
36 | 36 | parent::__construct(); |
37 | 37 | |
38 | - add_action( 'cmb2_render_google_maps_preview', array( $this, 'cmb2_render_google_maps_preview' ), 10, 2 ); |
|
38 | + add_action('cmb2_render_google_maps_preview', array($this, 'cmb2_render_google_maps_preview'), 10, 2); |
|
39 | 39 | // Load admin style sheet and JavaScript. |
40 | - add_action( 'wp_ajax_hide_welcome', array( $this, 'hide_welcome_callback' ) ); |
|
40 | + add_action('wp_ajax_hide_welcome', array($this, 'hide_welcome_callback')); |
|
41 | 41 | |
42 | 42 | //Add links/information to plugin row meta |
43 | - add_filter( 'cmb2_get_metabox_form_format', array( $this, 'gmb_modify_cmb2_form_output' ), 10, 3 ); |
|
43 | + add_filter('cmb2_get_metabox_form_format', array($this, 'gmb_modify_cmb2_form_output'), 10, 3); |
|
44 | 44 | |
45 | 45 | //Widget upsell |
46 | - add_action( 'gmb_after_widget_form', array( $this, 'widget_upsell' ) ); |
|
46 | + add_action('gmb_after_widget_form', array($this, 'widget_upsell')); |
|
47 | 47 | |
48 | 48 | //Useful class for free-only styling |
49 | - add_filter( 'admin_body_class', array( $this, 'admin_body_classes' ) ); |
|
49 | + add_filter('admin_body_class', array($this, 'admin_body_classes')); |
|
50 | 50 | |
51 | 51 | // Remove quick edit link and added preview map link. |
52 | - add_filter( 'post_row_actions', array( $this, 'remove_row_actions' ), 10, 2 ); |
|
53 | - add_action( 'wp_ajax_prview_map_action', array( $this, 'prview_map_action_callback' ) ); |
|
52 | + add_filter('post_row_actions', array($this, 'remove_row_actions'), 10, 2); |
|
53 | + add_action('wp_ajax_prview_map_action', array($this, 'prview_map_action_callback')); |
|
54 | 54 | |
55 | 55 | } |
56 | 56 | |
@@ -59,32 +59,32 @@ discard block |
||
59 | 59 | * |
60 | 60 | * @since 1.0.0 |
61 | 61 | */ |
62 | - function cmb2_render_google_maps_preview( $field, $meta ) { |
|
62 | + function cmb2_render_google_maps_preview($field, $meta) { |
|
63 | 63 | |
64 | 64 | /* @var $post */ |
65 | 65 | global $post; |
66 | 66 | |
67 | - $meta = wp_parse_args( $meta, array() ); |
|
68 | - $wh_value = get_post_meta( $post->ID, 'gmb_width_height', true ); |
|
69 | - $lat_lng = get_post_meta( $post->ID, 'gmb_lat_lng', true ); |
|
67 | + $meta = wp_parse_args($meta, array()); |
|
68 | + $wh_value = get_post_meta($post->ID, 'gmb_width_height', true); |
|
69 | + $lat_lng = get_post_meta($post->ID, 'gmb_lat_lng', true); |
|
70 | 70 | $default_options = $this->get_default_map_options(); |
71 | 71 | |
72 | - $output = '<div class="places-loading wpgp-loading">' . __( 'Loading Places', 'google-maps-builder' ) . '</div><div id="google-map-wrap">'; |
|
72 | + $output = '<div class="places-loading wpgp-loading">'.__('Loading Places', 'google-maps-builder').'</div><div id="google-map-wrap">'; |
|
73 | 73 | $output .= '<div id="map" style="height:600px; width:100%;"></div>'; |
74 | 74 | |
75 | - $output .= '<div class="map-modal-upsell"><p class="upsell-intro">' . __( 'Want more?', 'google-maps-builder' ) . '</p><a href="https://wordimpress.com/plugins/maps-builder-pro?utm_source=MBF&utm_medium=BANNER&utm_content=MODAL&utm_campaign=MBF%20Modal" class="button button-small upsell-button" target="_blank">' . __( 'Go Pro!', 'google-maps-builder' ) . '</a></div>'; |
|
75 | + $output .= '<div class="map-modal-upsell"><p class="upsell-intro">'.__('Want more?', 'google-maps-builder').'</p><a href="https://wordimpress.com/plugins/maps-builder-pro?utm_source=MBF&utm_medium=BANNER&utm_content=MODAL&utm_campaign=MBF%20Modal" class="button button-small upsell-button" target="_blank">'.__('Go Pro!', 'google-maps-builder').'</a></div>'; |
|
76 | 76 | |
77 | 77 | //Toolbar |
78 | 78 | $output .= '<div id="map-toolbar">'; |
79 | - $output .= '<button class="add-location button button-small gmb-magnific-inline" data-target="cmb2-id-gmb-geocoder" data-auto-focus="true"><span class="dashicons dashicons-pressthis"></span>' . __( 'Add Location', 'google-maps-builder' ) . '</button>'; |
|
80 | - $output .= '<button class="drop-marker button button-small"><span class="dashicons dashicons-location"></span>' . __( 'Drop a Marker', 'google-maps-builder' ) . '</button>'; |
|
81 | - $output .= '<button class="goto-location button button-small gmb-magnific-inline" data-target="map-autocomplete-wrap" data-auto-focus="true"><span class="dashicons dashicons-admin-site"></span>' . __( 'Goto Location', 'google-maps-builder' ) . '</button>'; |
|
82 | - $output .= '<button class="edit-title button button-small gmb-magnific-inline" data-target="map-title-wrap" data-auto-focus="true"><span class="dashicons dashicons-edit"></span>' . __( 'Edit Map Title', 'google-maps-builder' ) . '</button>'; |
|
79 | + $output .= '<button class="add-location button button-small gmb-magnific-inline" data-target="cmb2-id-gmb-geocoder" data-auto-focus="true"><span class="dashicons dashicons-pressthis"></span>'.__('Add Location', 'google-maps-builder').'</button>'; |
|
80 | + $output .= '<button class="drop-marker button button-small"><span class="dashicons dashicons-location"></span>'.__('Drop a Marker', 'google-maps-builder').'</button>'; |
|
81 | + $output .= '<button class="goto-location button button-small gmb-magnific-inline" data-target="map-autocomplete-wrap" data-auto-focus="true"><span class="dashicons dashicons-admin-site"></span>'.__('Goto Location', 'google-maps-builder').'</button>'; |
|
82 | + $output .= '<button class="edit-title button button-small gmb-magnific-inline" data-target="map-title-wrap" data-auto-focus="true"><span class="dashicons dashicons-edit"></span>'.__('Edit Map Title', 'google-maps-builder').'</button>'; |
|
83 | 83 | |
84 | 84 | $output .= '<div class="live-lat-lng-wrap clearfix">'; |
85 | - $output .= '<button disabled class="update-lat-lng button button-small">' . __( 'Set Lat/Lng', 'google-maps-builder' ) . '</button>'; |
|
86 | - $output .= '<div class="live-latitude-wrap"><span class="live-latitude-label">' . __( 'Lat:', 'google-maps-builder' ) . '</span><span class="live-latitude">' . ( isset( $lat_lng['latitude'] ) ? $lat_lng['latitude'] : '' ) . '</span></div>'; |
|
87 | - $output .= '<div class="live-longitude-wrap"><span class="live-longitude-label">' . __( 'Lng:', 'google-maps-builder' ) . '</span><span class="live-longitude">' . ( isset( $lat_lng['longitude'] ) ? $lat_lng['longitude'] : '' ) . '</span></div>'; |
|
85 | + $output .= '<button disabled class="update-lat-lng button button-small">'.__('Set Lat/Lng', 'google-maps-builder').'</button>'; |
|
86 | + $output .= '<div class="live-latitude-wrap"><span class="live-latitude-label">'.__('Lat:', 'google-maps-builder').'</span><span class="live-latitude">'.(isset($lat_lng['latitude']) ? $lat_lng['latitude'] : '').'</span></div>'; |
|
87 | + $output .= '<div class="live-longitude-wrap"><span class="live-longitude-label">'.__('Lng:', 'google-maps-builder').'</span><span class="live-longitude">'.(isset($lat_lng['longitude']) ? $lat_lng['longitude'] : '').'</span></div>'; |
|
88 | 88 | $output .= '</div>'; //End .live-lat-lng-wrap |
89 | 89 | $output .= '</div>'; //End #map-toolbar |
90 | 90 | $output .= '</div>'; //End #map |
@@ -95,9 +95,9 @@ discard block |
||
95 | 95 | $output .= '<div class="inner-modal-wrap">'; |
96 | 96 | $output .= '<div class="inner-modal-container">'; |
97 | 97 | $output .= '<div class="inner-modal clearfix">'; |
98 | - $output .= '<label for="post_title" class="map-title">' . __( 'Map Title', 'google-maps-builder' ) . '</label>'; |
|
99 | - $output .= '<p class="cmb2-metabox-description">' . __( 'Give your Map a descriptive title', 'google-maps-builder' ) . '</p>'; |
|
100 | - $output .= '<button type="button" class="gmb-modal-close">×</button><input type="text" name="model_post_title" size="30" value="' . get_the_title() . '" id="modal_title" spellcheck="true" autocomplete="off" placeholder="' . __( 'Enter map title', 'google-maps-builder' ) . '">'; |
|
98 | + $output .= '<label for="post_title" class="map-title">'.__('Map Title', 'google-maps-builder').'</label>'; |
|
99 | + $output .= '<p class="cmb2-metabox-description">'.__('Give your Map a descriptive title', 'google-maps-builder').'</p>'; |
|
100 | + $output .= '<button type="button" class="gmb-modal-close">×</button><input type="text" name="model_post_title" size="30" value="'.get_the_title().'" id="modal_title" spellcheck="true" autocomplete="off" placeholder="'.__('Enter map title', 'google-maps-builder').'">'; |
|
101 | 101 | $output .= '</div>'; |
102 | 102 | $output .= '</div>'; |
103 | 103 | $output .= '</div>'; |
@@ -107,8 +107,8 @@ discard block |
||
107 | 107 | $output .= '<div class="inner-modal-wrap">'; |
108 | 108 | $output .= '<div class="inner-modal-container">'; |
109 | 109 | $output .= '<div class="inner-modal clearfix">'; |
110 | - $output .= '<label for="map-location-autocomplete" class="map-title">' . __( 'Enter a Location', 'google-maps-builder' ) . '</label>'; |
|
111 | - $output .= '<p class="cmb2-metabox-description">' . __( 'Type your point of interest below and the map will be re-centered over that location', 'google-maps-builder' ) . '</p>'; |
|
110 | + $output .= '<label for="map-location-autocomplete" class="map-title">'.__('Enter a Location', 'google-maps-builder').'</label>'; |
|
111 | + $output .= '<p class="cmb2-metabox-description">'.__('Type your point of interest below and the map will be re-centered over that location', 'google-maps-builder').'</p>'; |
|
112 | 112 | $output .= '<button type="button" class="gmb-modal-close">×</button>'; |
113 | 113 | $output .= '<input type="text" name="" size="30" id="map-location-autocomplete">'; |
114 | 114 | $output .= '</div>'; |
@@ -119,9 +119,9 @@ discard block |
||
119 | 119 | $output .= '<div class="warning-message wpgp-message"></div>'; |
120 | 120 | |
121 | 121 | //Markers Modal |
122 | - gmb_include_view( 'admin/views/markers.php', false, $this->view_data() ); |
|
122 | + gmb_include_view('admin/views/markers.php', false, $this->view_data()); |
|
123 | 123 | |
124 | - echo apply_filters( 'google_maps_preview', $output ); |
|
124 | + echo apply_filters('google_maps_preview', $output); |
|
125 | 125 | |
126 | 126 | } |
127 | 127 | |
@@ -138,12 +138,12 @@ discard block |
||
138 | 138 | * |
139 | 139 | * @return string |
140 | 140 | */ |
141 | - function gmb_modify_cmb2_form_output( $form_format, $object_id, $cmb ) { |
|
141 | + function gmb_modify_cmb2_form_output($form_format, $object_id, $cmb) { |
|
142 | 142 | |
143 | 143 | //only modify the give settings form |
144 | - if ( 'gmb_settings' == $object_id && 'plugin_options' == $cmb->cmb_id ) { |
|
144 | + if ('gmb_settings' == $object_id && 'plugin_options' == $cmb->cmb_id) { |
|
145 | 145 | |
146 | - return '<form class="cmb-form" method="post" id="%1$s" enctype="multipart/form-data" encoding="multipart/form-data"><input type="hidden" name="object_id" value="%2$s">%3$s<div class="gmb-submit-wrap"><input type="submit" name="submit-cmb" value="' . __( 'Save Settings', 'give' ) . '" class="button-primary"></div></form>'; |
|
146 | + return '<form class="cmb-form" method="post" id="%1$s" enctype="multipart/form-data" encoding="multipart/form-data"><input type="hidden" name="object_id" value="%2$s">%3$s<div class="gmb-submit-wrap"><input type="submit" name="submit-cmb" value="'.__('Save Settings', 'give').'" class="button-primary"></div></form>'; |
|
147 | 147 | } |
148 | 148 | |
149 | 149 | return $form_format; |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | <div class="gmb-widget-upgrade clear"> |
164 | 164 | <span class="powered-by"></span> |
165 | 165 | <a href="https://wordimpress.com/plugins/maps-builder-pro?utm_source=MBF&utm_medium=BANNER&utm_content=WIDGET&utm_campaign=MBF%20Widgets" target="_blank" class="button button-small"> |
166 | - <?php _e( 'Upgrade to Pro', 'google-maps-builder' ); ?> |
|
166 | + <?php _e('Upgrade to Pro', 'google-maps-builder'); ?> |
|
167 | 167 | <span class="new-window"></span> |
168 | 168 | </a> |
169 | 169 | </div> |
@@ -179,11 +179,11 @@ discard block |
||
179 | 179 | * |
180 | 180 | * @return String Altered body classes. |
181 | 181 | */ |
182 | - function admin_body_classes( $classes ) { |
|
182 | + function admin_body_classes($classes) { |
|
183 | 183 | |
184 | 184 | global $post; |
185 | 185 | |
186 | - if ( isset( $post->post_type ) && $post->post_type == 'google_maps' ) { |
|
186 | + if (isset($post->post_type) && $post->post_type == 'google_maps') { |
|
187 | 187 | $classes .= 'maps-builder-free'; |
188 | 188 | } |
189 | 189 | |
@@ -198,9 +198,9 @@ discard block |
||
198 | 198 | * @return mixed |
199 | 199 | */ |
200 | 200 | |
201 | - function remove_row_actions( $actions, $post ) { |
|
201 | + function remove_row_actions($actions, $post) { |
|
202 | 202 | global $current_screen; |
203 | - if ( $current_screen->post_type != 'google_maps' ) { |
|
203 | + if ($current_screen->post_type != 'google_maps') { |
|
204 | 204 | return $actions; |
205 | 205 | } |
206 | 206 | add_thickbox(); |
@@ -232,9 +232,9 @@ discard block |
||
232 | 232 | <?php |
233 | 233 | |
234 | 234 | // Remove the Quick Edit link |
235 | - if ( isset( $actions['inline hide-if-no-js'] ) ) { |
|
236 | - unset( $actions['inline hide-if-no-js'] ); |
|
237 | - $actions['custom'] = '<a href="#TB_inline?width=1400px&height=600px&inlineId=gmb-preview-map" data-id="' . $post->ID . '" class="thickbox gmb-load-map">' . sprintf( __( 'Preview Map', 'google-maps-builder' ) ) . '</a>'; |
|
235 | + if (isset($actions['inline hide-if-no-js'])) { |
|
236 | + unset($actions['inline hide-if-no-js']); |
|
237 | + $actions['custom'] = '<a href="#TB_inline?width=1400px&height=600px&inlineId=gmb-preview-map" data-id="'.$post->ID.'" class="thickbox gmb-load-map">'.sprintf(__('Preview Map', 'google-maps-builder')).'</a>'; |
|
238 | 238 | } |
239 | 239 | |
240 | 240 | return $actions; |
@@ -244,24 +244,24 @@ discard block |
||
244 | 244 | * Callback function for prview map. |
245 | 245 | */ |
246 | 246 | function prview_map_action_callback() { |
247 | - $map_id = isset( $_POST['map_id'] ) ? $_POST['map_id'] : ''; |
|
247 | + $map_id = isset($_POST['map_id']) ? $_POST['map_id'] : ''; |
|
248 | 248 | //gather data for this shortcode |
249 | - $post = get_post( $map_id ); |
|
250 | - $all_meta = get_post_custom( $map_id ); |
|
251 | - $visual_info = maybe_unserialize( $all_meta['gmb_width_height'][0] ); |
|
252 | - $lat_lng = maybe_unserialize( $all_meta['gmb_lat_lng'][0] ); |
|
249 | + $post = get_post($map_id); |
|
250 | + $all_meta = get_post_custom($map_id); |
|
251 | + $visual_info = maybe_unserialize($all_meta['gmb_width_height'][0]); |
|
252 | + $lat_lng = maybe_unserialize($all_meta['gmb_lat_lng'][0]); |
|
253 | 253 | //Put markers into an array for JS usage |
254 | 254 | $map_marker_array = array(); |
255 | - $markers_repeatable = isset( $all_meta['gmb_markers_group'][0] ) ? maybe_unserialize( $all_meta['gmb_markers_group'][0] ) : ''; |
|
256 | - if ( is_array( $markers_repeatable ) ) { |
|
257 | - foreach ( $markers_repeatable as $marker ) { |
|
258 | - array_push( $map_marker_array, $marker ); |
|
255 | + $markers_repeatable = isset($all_meta['gmb_markers_group'][0]) ? maybe_unserialize($all_meta['gmb_markers_group'][0]) : ''; |
|
256 | + if (is_array($markers_repeatable)) { |
|
257 | + foreach ($markers_repeatable as $marker) { |
|
258 | + array_push($map_marker_array, $marker); |
|
259 | 259 | } |
260 | 260 | } |
261 | 261 | //Send data for AJAX usage |
262 | 262 | //Add params to AJAX for Shortcode Usage |
263 | 263 | //@see: http://benjaminrojas.net/using-wp_localize_script-dynamically/ |
264 | - $localized_data = apply_filters( 'gmb_localized_data', array( |
|
264 | + $localized_data = apply_filters('gmb_localized_data', array( |
|
265 | 265 | $post->ID => array( |
266 | 266 | 'id' => $atts['id'], |
267 | 267 | 'map_params' => array( |
@@ -270,39 +270,39 @@ discard block |
||
270 | 270 | 'height' => $visual_info['height'], |
271 | 271 | 'latitude' => $lat_lng['latitude'], |
272 | 272 | 'longitude' => $lat_lng['longitude'], |
273 | - 'zoom' => ! empty( $all_meta['gmb_zoom'][0] ) ? $all_meta['gmb_zoom'][0] : '15', |
|
274 | - 'default_marker' => apply_filters( 'gmb_default_marker', GMB_PLUGIN_URL . 'assets/img/spotlight-poi.png' ), |
|
273 | + 'zoom' => ! empty($all_meta['gmb_zoom'][0]) ? $all_meta['gmb_zoom'][0] : '15', |
|
274 | + 'default_marker' => apply_filters('gmb_default_marker', GMB_PLUGIN_URL.'assets/img/spotlight-poi.png'), |
|
275 | 275 | ), |
276 | 276 | 'map_controls' => array( |
277 | - 'zoom_control' => ! empty( $all_meta['gmb_zoom_control'][0] ) ? strtoupper( $all_meta['gmb_zoom_control'][0] ) : 'STANDARD', |
|
278 | - 'pan_control' => ! empty( $all_meta['gmb_pan'][0] ) ? $all_meta['gmb_pan'][0] : 'none', |
|
279 | - 'map_type_control' => ! empty( $all_meta['gmb_map_type_control'][0] ) ? $all_meta['gmb_map_type_control'][0] : 'none', |
|
280 | - 'draggable' => ! empty( $all_meta['gmb_draggable'][0] ) ? $all_meta['gmb_draggable'][0] : 'none', |
|
281 | - 'double_click_zoom' => ! empty( $all_meta['gmb_double_click'][0] ) ? $all_meta['gmb_double_click'][0] : 'none', |
|
282 | - 'wheel_zoom' => ! empty( $all_meta['gmb_wheel_zoom'][0] ) ? $all_meta['gmb_wheel_zoom'][0] : 'none', |
|
283 | - 'street_view' => ! empty( $all_meta['gmb_street_view'][0] ) ? $all_meta['gmb_street_view'][0] : 'none', |
|
277 | + 'zoom_control' => ! empty($all_meta['gmb_zoom_control'][0]) ? strtoupper($all_meta['gmb_zoom_control'][0]) : 'STANDARD', |
|
278 | + 'pan_control' => ! empty($all_meta['gmb_pan'][0]) ? $all_meta['gmb_pan'][0] : 'none', |
|
279 | + 'map_type_control' => ! empty($all_meta['gmb_map_type_control'][0]) ? $all_meta['gmb_map_type_control'][0] : 'none', |
|
280 | + 'draggable' => ! empty($all_meta['gmb_draggable'][0]) ? $all_meta['gmb_draggable'][0] : 'none', |
|
281 | + 'double_click_zoom' => ! empty($all_meta['gmb_double_click'][0]) ? $all_meta['gmb_double_click'][0] : 'none', |
|
282 | + 'wheel_zoom' => ! empty($all_meta['gmb_wheel_zoom'][0]) ? $all_meta['gmb_wheel_zoom'][0] : 'none', |
|
283 | + 'street_view' => ! empty($all_meta['gmb_street_view'][0]) ? $all_meta['gmb_street_view'][0] : 'none', |
|
284 | 284 | ), |
285 | 285 | 'map_theme' => array( |
286 | - 'map_type' => ! empty( $all_meta['gmb_type'][0] ) ? $all_meta['gmb_type'][0] : 'RoadMap', |
|
287 | - 'map_theme_json' => ! empty( $all_meta['gmb_theme_json'][0] ) ? $all_meta['gmb_theme_json'][0] : 'none', |
|
286 | + 'map_type' => ! empty($all_meta['gmb_type'][0]) ? $all_meta['gmb_type'][0] : 'RoadMap', |
|
287 | + 'map_theme_json' => ! empty($all_meta['gmb_theme_json'][0]) ? $all_meta['gmb_theme_json'][0] : 'none', |
|
288 | 288 | |
289 | 289 | ), |
290 | 290 | 'map_markers' => $map_marker_array, |
291 | 291 | 'plugin_url' => GMB_PLUGIN_URL, |
292 | 292 | 'places_api' => array( |
293 | - 'show_places' => ! empty( $all_meta['gmb_show_places'][0] ) ? $all_meta['gmb_show_places'][0] : 'no', |
|
294 | - 'search_radius' => ! empty( $all_meta['gmb_search_radius'][0] ) ? $all_meta['gmb_search_radius'][0] : '3000', |
|
295 | - 'search_places' => ! empty( $all_meta['gmb_places_search_multicheckbox'][0] ) ? maybe_unserialize( $all_meta['gmb_places_search_multicheckbox'][0] ) : '', |
|
293 | + 'show_places' => ! empty($all_meta['gmb_show_places'][0]) ? $all_meta['gmb_show_places'][0] : 'no', |
|
294 | + 'search_radius' => ! empty($all_meta['gmb_search_radius'][0]) ? $all_meta['gmb_search_radius'][0] : '3000', |
|
295 | + 'search_places' => ! empty($all_meta['gmb_places_search_multicheckbox'][0]) ? maybe_unserialize($all_meta['gmb_places_search_multicheckbox'][0]) : '', |
|
296 | 296 | ), |
297 | - 'map_markers_icon' => ! empty( $all_meta['gmb_map_marker'] ) ? $all_meta['gmb_map_marker'][0] : 'none', |
|
297 | + 'map_markers_icon' => ! empty($all_meta['gmb_map_marker']) ? $all_meta['gmb_map_marker'][0] : 'none', |
|
298 | 298 | ), |
299 | - ) ); |
|
299 | + )); |
|
300 | 300 | |
301 | - $maphtml = '<div class="google-maps-builder-wrap"> <div id="google-maps-builder-' . $map_id . '" class="google-maps-builder" data-map-id="' . $map_id . '" style="width: 1400px; height:600px;"></div></div>'; |
|
301 | + $maphtml = '<div class="google-maps-builder-wrap"> <div id="google-maps-builder-'.$map_id.'" class="google-maps-builder" data-map-id="'.$map_id.'" style="width: 1400px; height:600px;"></div></div>'; |
|
302 | 302 | $responseArray = array(); |
303 | 303 | $responseArray['localized'] = $localized_data; |
304 | 304 | $responseArray['maphtml'] = $maphtml; |
305 | - echo wp_send_json( $responseArray ); |
|
305 | + echo wp_send_json($responseArray); |
|
306 | 306 | wp_die(); |
307 | 307 | } |
308 | 308 |