Version Description
Download this release
Release Info
Developer | tijmensmit |
Plugin | WP Store Locator |
Version | 2.2.15 |
Comparing to | |
See all releases |
Code changes from version 2.2.14 to 2.2.15
- admin/class-admin.php +4 -3
- admin/class-metaboxes.php +28 -0
- admin/css/style.css +1 -1
- admin/data-export.php +65 -0
- languages/wpsl.pot +68 -60
- readme.txt +4 -1
- wp-store-locator.php +2 -2
admin/class-admin.php
CHANGED
@@ -50,11 +50,11 @@ if ( !class_exists( 'WPSL_Admin' ) ) {
|
|
50 |
|
51 |
add_action( 'init', array( $this, 'init' ) );
|
52 |
add_action( 'admin_menu', array( $this, 'create_admin_menu' ) );
|
53 |
-
|
54 |
add_action( 'delete_post', array( $this, 'maybe_delete_autoload_transient' ) );
|
55 |
add_action( 'wp_trash_post', array( $this, 'maybe_delete_autoload_transient' ) );
|
56 |
add_action( 'untrash_post', array( $this, 'maybe_delete_autoload_transient' ) );
|
57 |
-
add_action( 'admin_enqueue_scripts', array( $this, 'admin_scripts' ) );
|
58 |
add_filter( 'plugin_row_meta', array( $this, 'add_plugin_meta_row' ), 10, 2 );
|
59 |
add_filter( 'plugin_action_links_' . WPSL_BASENAME, array( $this, 'add_action_links' ), 10, 2 );
|
60 |
add_filter( 'admin_footer_text', array( $this, 'admin_footer_text' ), 1 );
|
@@ -75,6 +75,7 @@ if ( !class_exists( 'WPSL_Admin' ) ) {
|
|
75 |
require_once( WPSL_PLUGIN_DIR . 'admin/class-geocode.php' );
|
76 |
require_once( WPSL_PLUGIN_DIR . 'admin/class-settings.php' );
|
77 |
require_once( WPSL_PLUGIN_DIR . 'admin/upgrade.php' );
|
|
|
78 |
}
|
79 |
|
80 |
/**
|
@@ -86,7 +87,7 @@ if ( !class_exists( 'WPSL_Admin' ) ) {
|
|
86 |
public function init() {
|
87 |
$this->notices = new WPSL_Notices();
|
88 |
$this->metaboxes = new WPSL_Metaboxes();
|
89 |
-
|
90 |
$this->settings_page = new WPSL_Settings();
|
91 |
}
|
92 |
|
50 |
|
51 |
add_action( 'init', array( $this, 'init' ) );
|
52 |
add_action( 'admin_menu', array( $this, 'create_admin_menu' ) );
|
53 |
+
add_action( 'admin_init', array( $this, 'setting_warnings' ) );
|
54 |
add_action( 'delete_post', array( $this, 'maybe_delete_autoload_transient' ) );
|
55 |
add_action( 'wp_trash_post', array( $this, 'maybe_delete_autoload_transient' ) );
|
56 |
add_action( 'untrash_post', array( $this, 'maybe_delete_autoload_transient' ) );
|
57 |
+
add_action( 'admin_enqueue_scripts', array( $this, 'admin_scripts' ) );
|
58 |
add_filter( 'plugin_row_meta', array( $this, 'add_plugin_meta_row' ), 10, 2 );
|
59 |
add_filter( 'plugin_action_links_' . WPSL_BASENAME, array( $this, 'add_action_links' ), 10, 2 );
|
60 |
add_filter( 'admin_footer_text', array( $this, 'admin_footer_text' ), 1 );
|
75 |
require_once( WPSL_PLUGIN_DIR . 'admin/class-geocode.php' );
|
76 |
require_once( WPSL_PLUGIN_DIR . 'admin/class-settings.php' );
|
77 |
require_once( WPSL_PLUGIN_DIR . 'admin/upgrade.php' );
|
78 |
+
require_once( WPSL_PLUGIN_DIR . 'admin/data-export.php' );
|
79 |
}
|
80 |
|
81 |
/**
|
87 |
public function init() {
|
88 |
$this->notices = new WPSL_Notices();
|
89 |
$this->metaboxes = new WPSL_Metaboxes();
|
90 |
+
$this->geocode = new WPSL_Geocode();
|
91 |
$this->settings_page = new WPSL_Settings();
|
92 |
}
|
93 |
|
admin/class-metaboxes.php
CHANGED
@@ -30,8 +30,17 @@ if ( !class_exists( 'WPSL_Metaboxes' ) ) {
|
|
30 |
* @return void
|
31 |
*/
|
32 |
public function add_meta_boxes() {
|
|
|
|
|
|
|
33 |
add_meta_box( 'wpsl-store-details', __( 'Store Details', 'wpsl' ), array( $this, 'create_meta_fields' ), 'wpsl_stores', 'normal', 'high' );
|
34 |
add_meta_box( 'wpsl-map-preview', __( 'Store Map', 'wpsl' ), array( $this, 'map_preview' ), 'wpsl_stores', 'side' );
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
}
|
36 |
|
37 |
/**
|
@@ -845,6 +854,25 @@ if ( !class_exists( 'WPSL_Metaboxes' ) ) {
|
|
845 |
<?php
|
846 |
}
|
847 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
848 |
/**
|
849 |
* Store update messages.
|
850 |
*
|
30 |
* @return void
|
31 |
*/
|
32 |
public function add_meta_boxes() {
|
33 |
+
|
34 |
+
global $pagenow;
|
35 |
+
|
36 |
add_meta_box( 'wpsl-store-details', __( 'Store Details', 'wpsl' ), array( $this, 'create_meta_fields' ), 'wpsl_stores', 'normal', 'high' );
|
37 |
add_meta_box( 'wpsl-map-preview', __( 'Store Map', 'wpsl' ), array( $this, 'map_preview' ), 'wpsl_stores', 'side' );
|
38 |
+
|
39 |
+
$enable_option = apply_filters( 'wpsl_enable_export_option', true );
|
40 |
+
|
41 |
+
if ( $enable_option && $pagenow == 'post.php' ) {
|
42 |
+
add_meta_box( 'wpsl-data-export', __( 'Export', 'wpsl' ), array( $this, 'export_data' ), 'wpsl_stores', 'side', 'low' );
|
43 |
+
}
|
44 |
}
|
45 |
|
46 |
/**
|
854 |
<?php
|
855 |
}
|
856 |
|
857 |
+
/**
|
858 |
+
* The html for the export details section in the sidebar.
|
859 |
+
*
|
860 |
+
* @since 2.2.15
|
861 |
+
* @return void
|
862 |
+
*/
|
863 |
+
public function export_data() {
|
864 |
+
|
865 |
+
global $post;
|
866 |
+
|
867 |
+
$link_url = wp_nonce_url( admin_url( 'post.php?'. $_SERVER['QUERY_STRING'] . '&wpsl_data_export=1' ), 'wpsl_export_' . $post->ID, 'wpsl_export_nonce' );
|
868 |
+
|
869 |
+
?>
|
870 |
+
<p class="wpsl-submit-wrap">
|
871 |
+
<a id="wpsl-export-data" class="button-primary" href="<?php echo esc_url( $link_url ); ?>"><?php _e( 'Export Location Data', 'wpsl' ); ?></a>
|
872 |
+
</p>
|
873 |
+
<?php
|
874 |
+
}
|
875 |
+
|
876 |
/**
|
877 |
* Store update messages.
|
878 |
*
|
admin/css/style.css
CHANGED
@@ -271,7 +271,7 @@
|
|
271 |
left: -88px;
|
272 |
}
|
273 |
|
274 |
-
#wpsl-map-preview .wpsl-info-text::after
|
275 |
left: auto;
|
276 |
right: 87px;
|
277 |
}
|
271 |
left: -88px;
|
272 |
}
|
273 |
|
274 |
+
#wpsl-map-preview .wpsl-info-text::after{
|
275 |
left: auto;
|
276 |
right: 87px;
|
277 |
}
|
admin/data-export.php
ADDED
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
add_action( 'admin_init', 'wpsl_single_location_export' );
|
3 |
+
|
4 |
+
/**
|
5 |
+
* Handle the export of a single store location.
|
6 |
+
*
|
7 |
+
* Creates a CSV file holding the location details
|
8 |
+
* that can be handed over in case a GDPR related
|
9 |
+
* data access request is received.
|
10 |
+
*
|
11 |
+
* @since 2.2.15
|
12 |
+
* @return void
|
13 |
+
*/
|
14 |
+
function wpsl_single_location_export() {
|
15 |
+
|
16 |
+
if ( isset( $_GET['wpsl_data_export'] ) && isset( $_GET['wpsl_export_nonce'] ) ) {
|
17 |
+
$post_id = absint( $_GET['post'] );
|
18 |
+
|
19 |
+
if ( !wp_verify_nonce( $_GET['wpsl_export_nonce'], 'wpsl_export_' . $post_id ) )
|
20 |
+
return;
|
21 |
+
|
22 |
+
if ( is_int( wp_is_post_revision( $post_id ) ) )
|
23 |
+
return;
|
24 |
+
|
25 |
+
if ( !current_user_can( 'edit_post', $post_id ) )
|
26 |
+
return;
|
27 |
+
|
28 |
+
$meta_fields = wpsl_get_field_names( false );
|
29 |
+
$meta_data = get_post_custom( $post_id );
|
30 |
+
$post_meta = '';
|
31 |
+
|
32 |
+
// Loop over the wpsl meta fields, and collect the meta data.
|
33 |
+
foreach ( $meta_fields as $meta_field ) {
|
34 |
+
if ( $meta_field !== 'hours' ) {
|
35 |
+
if ( isset( $meta_data['wpsl_' . $meta_field][0] ) ) {
|
36 |
+
$post_meta['data'][$meta_field] = $meta_data['wpsl_' . $meta_field][0];
|
37 |
+
} else {
|
38 |
+
$post_meta['data'][$meta_field] = '';
|
39 |
+
}
|
40 |
+
|
41 |
+
$post_meta['headers'][] = $meta_field;
|
42 |
+
}
|
43 |
+
}
|
44 |
+
|
45 |
+
// Make it possible to add additional custom data from for example ACF
|
46 |
+
$post_meta = apply_filters( 'wpsl_single_location_export_data', $post_meta, $post_id );
|
47 |
+
|
48 |
+
if ( $post_meta ) {
|
49 |
+
$file_name = 'wpsl-export-' . $post_id . '-' . date('Ymd' ) . '.csv';
|
50 |
+
|
51 |
+
// Set the download headers for the CSV file.
|
52 |
+
header( 'Content-Type: text/csv; charset=utf-8' );
|
53 |
+
header( 'Content-Disposition: attachment; filename=' . $file_name . '' );
|
54 |
+
|
55 |
+
$output = fopen( 'php://output', 'w' );
|
56 |
+
|
57 |
+
fputcsv( $output, $post_meta['headers'] );
|
58 |
+
fputcsv( $output, $post_meta['data'] );
|
59 |
+
|
60 |
+
fclose( $output );
|
61 |
+
}
|
62 |
+
|
63 |
+
exit();
|
64 |
+
}
|
65 |
+
}
|
languages/wpsl.pot
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
#, fuzzy
|
2 |
msgid ""
|
3 |
msgstr ""
|
4 |
-
"Project-Id-Version: WP Store Locator v2.2.
|
5 |
"Report-Msgid-Bugs-To: \n"
|
6 |
-
"POT-Creation-Date: 2018-
|
7 |
"PO-Revision-Date: 2015-09-01 13:49+0100\n"
|
8 |
"Last-Translator: \n"
|
9 |
"Language-Team: \n"
|
@@ -21,87 +21,87 @@ msgstr ""
|
|
21 |
"X-Poedit-SearchPath-0: .\n"
|
22 |
"X-Poedit-SearchPathExcluded-0: admin/EDD_SL_Plugin_Updater.php\n"
|
23 |
|
24 |
-
#: admin/class-admin.php:
|
25 |
#, php-format
|
26 |
msgid ""
|
27 |
"You need to create %sAPI keys%s for Google Maps before you can use the store "
|
28 |
"locator! %sDismiss%s"
|
29 |
msgstr ""
|
30 |
|
31 |
-
#: admin/class-admin.php:
|
32 |
#, php-format
|
33 |
msgid ""
|
34 |
"Before adding the [wpsl] shortcode to a page, please don't forget to define "
|
35 |
"a start point on the %ssettings%s page. %sDismiss%s"
|
36 |
msgstr ""
|
37 |
|
38 |
-
#: admin/class-admin.php:
|
39 |
msgid "Security check failed. Please reload the page and try again."
|
40 |
msgstr ""
|
41 |
|
42 |
-
#: admin/class-admin.php:
|
43 |
-
#: admin/class-admin.php:
|
44 |
msgid "Settings"
|
45 |
msgstr ""
|
46 |
|
47 |
-
#: admin/class-admin.php:
|
48 |
-
#: admin/class-admin.php:
|
49 |
msgid "Add-Ons"
|
50 |
msgstr ""
|
51 |
|
52 |
-
#: admin/class-admin.php:
|
53 |
msgid "Cannot determine the address at this location."
|
54 |
msgstr ""
|
55 |
|
56 |
-
#: admin/class-admin.php:
|
57 |
msgid "Geocode was not successful for the following reason"
|
58 |
msgstr ""
|
59 |
|
60 |
-
#: admin/class-admin.php:
|
61 |
msgid "Security check failed, reload the page and try again."
|
62 |
msgstr ""
|
63 |
|
64 |
-
#: admin/class-admin.php:
|
65 |
msgid "Please fill in all the required store details."
|
66 |
msgstr ""
|
67 |
|
68 |
-
#: admin/class-admin.php:
|
69 |
msgid "The map preview requires all the location details."
|
70 |
msgstr ""
|
71 |
|
72 |
-
#: admin/class-admin.php:
|
73 |
#: frontend/class-frontend.php:560
|
74 |
msgid "Closed"
|
75 |
msgstr ""
|
76 |
|
77 |
-
#: admin/class-admin.php:
|
78 |
msgid "The code for the map style is invalid."
|
79 |
msgstr ""
|
80 |
|
81 |
-
#: admin/class-admin.php:
|
82 |
#, php-format
|
83 |
msgid ""
|
84 |
"There's a problem with the provided %sbrowser key%s. %s You can read more "
|
85 |
"about how to determine the exact issue, and how to solve it %shere%s."
|
86 |
msgstr ""
|
87 |
|
88 |
-
#: admin/class-admin.php:
|
89 |
msgid "Dismiss this notice."
|
90 |
msgstr ""
|
91 |
|
92 |
-
#: admin/class-admin.php:
|
93 |
msgid "Welcome to WP Store Locator"
|
94 |
msgstr ""
|
95 |
|
96 |
-
#: admin/class-admin.php:
|
97 |
msgid "Sign up for the latest plugin updates and announcements."
|
98 |
msgstr ""
|
99 |
|
100 |
-
#: admin/class-admin.php:
|
101 |
msgid "Documentation"
|
102 |
msgstr ""
|
103 |
|
104 |
-
#: admin/class-admin.php:
|
105 |
#, php-format
|
106 |
msgid "If you like this plugin please leave us a %s5 star%s rating."
|
107 |
msgstr ""
|
@@ -215,77 +215,81 @@ msgid ""
|
|
215 |
"or contact support. Error code: %s"
|
216 |
msgstr ""
|
217 |
|
218 |
-
#: admin/class-metaboxes.php:
|
219 |
msgid "Store Details"
|
220 |
msgstr ""
|
221 |
|
222 |
-
#: admin/class-metaboxes.php:
|
223 |
msgid "Store Map"
|
224 |
msgstr ""
|
225 |
|
226 |
-
#: admin/class-metaboxes.php:
|
|
|
|
|
|
|
|
|
227 |
msgid "Location"
|
228 |
msgstr ""
|
229 |
|
230 |
-
#: admin/class-metaboxes.php:
|
231 |
msgid "Address"
|
232 |
msgstr ""
|
233 |
|
234 |
-
#: admin/class-metaboxes.php:
|
235 |
msgid "Address 2"
|
236 |
msgstr ""
|
237 |
|
238 |
-
#: admin/class-metaboxes.php:
|
239 |
msgid "City"
|
240 |
msgstr ""
|
241 |
|
242 |
-
#: admin/class-metaboxes.php:
|
243 |
msgid "State"
|
244 |
msgstr ""
|
245 |
|
246 |
-
#: admin/class-metaboxes.php:
|
247 |
msgid "Zip Code"
|
248 |
msgstr ""
|
249 |
|
250 |
-
#: admin/class-metaboxes.php:
|
251 |
msgid "Country"
|
252 |
msgstr ""
|
253 |
|
254 |
-
#: admin/class-metaboxes.php:
|
255 |
msgid "Latitude"
|
256 |
msgstr ""
|
257 |
|
258 |
-
#: admin/class-metaboxes.php:
|
259 |
msgid "Longitude"
|
260 |
msgstr ""
|
261 |
|
262 |
-
#: admin/class-metaboxes.php:
|
263 |
-
#: admin/class-metaboxes.php:
|
264 |
msgid "Opening Hours"
|
265 |
msgstr ""
|
266 |
|
267 |
-
#: admin/class-metaboxes.php:
|
268 |
#: admin/templates/map-settings.php:549 frontend/underscore-functions.php:160
|
269 |
#: inc/wpsl-functions.php:151
|
270 |
msgid "Hours"
|
271 |
msgstr ""
|
272 |
|
273 |
-
#: admin/class-metaboxes.php:
|
274 |
msgid "Additional Information"
|
275 |
msgstr ""
|
276 |
|
277 |
-
#: admin/class-metaboxes.php:
|
278 |
msgid "Tel"
|
279 |
msgstr ""
|
280 |
|
281 |
-
#: admin/class-metaboxes.php:
|
282 |
#: admin/templates/map-settings.php:537 frontend/class-frontend.php:822
|
283 |
#: frontend/underscore-functions.php:32 frontend/underscore-functions.php:68
|
284 |
#: frontend/underscore-functions.php:150 inc/wpsl-functions.php:148
|
285 |
msgid "Fax"
|
286 |
msgstr ""
|
287 |
|
288 |
-
#: admin/class-metaboxes.php:
|
289 |
#: admin/templates/map-settings.php:541 admin/upgrade.php:198
|
290 |
#: frontend/class-frontend.php:826 frontend/underscore-functions.php:35
|
291 |
#: frontend/underscore-functions.php:71 frontend/underscore-functions.php:153
|
@@ -293,90 +297,94 @@ msgstr ""
|
|
293 |
msgid "Email"
|
294 |
msgstr ""
|
295 |
|
296 |
-
#: admin/class-metaboxes.php:
|
297 |
#: admin/templates/map-settings.php:545 admin/upgrade.php:202
|
298 |
#: frontend/class-frontend.php:831 inc/wpsl-functions.php:150
|
299 |
msgid "Url"
|
300 |
msgstr ""
|
301 |
|
302 |
-
#: admin/class-metaboxes.php:
|
303 |
msgid "Hour format"
|
304 |
msgstr ""
|
305 |
|
306 |
-
#: admin/class-metaboxes.php:
|
307 |
msgid "Days"
|
308 |
msgstr ""
|
309 |
|
310 |
-
#: admin/class-metaboxes.php:
|
311 |
msgid "Opening Periods"
|
312 |
msgstr ""
|
313 |
|
314 |
-
#: admin/class-metaboxes.php:
|
315 |
msgid "Failed to publish the store. Please fill in the required store details."
|
316 |
msgstr ""
|
317 |
|
318 |
-
#: admin/class-metaboxes.php:
|
319 |
msgid "Preview Location"
|
320 |
msgstr ""
|
321 |
|
322 |
-
#: admin/class-metaboxes.php:
|
323 |
#, php-format
|
324 |
msgid ""
|
325 |
"The map preview is based on the provided address, city and country details. "
|
326 |
"%s It will ignore any custom latitude or longitude values."
|
327 |
msgstr ""
|
328 |
|
329 |
-
#: admin/class-metaboxes.php:
|
330 |
msgid "You can drag the marker to adjust the exact location of the marker."
|
331 |
msgstr ""
|
332 |
|
333 |
-
#: admin/class-metaboxes.php:
|
|
|
|
|
|
|
|
|
334 |
msgid "Store updated."
|
335 |
msgstr ""
|
336 |
|
337 |
-
#: admin/class-metaboxes.php:
|
338 |
msgid "Custom field updated."
|
339 |
msgstr ""
|
340 |
|
341 |
-
#: admin/class-metaboxes.php:
|
342 |
msgid "Custom field deleted."
|
343 |
msgstr ""
|
344 |
|
345 |
-
#: admin/class-metaboxes.php:
|
346 |
#, php-format
|
347 |
msgid "Store restored to revision from %s"
|
348 |
msgstr ""
|
349 |
|
350 |
-
#: admin/class-metaboxes.php:
|
351 |
msgid "Store published."
|
352 |
msgstr ""
|
353 |
|
354 |
-
#: admin/class-metaboxes.php:
|
355 |
msgid "Store saved."
|
356 |
msgstr ""
|
357 |
|
358 |
-
#: admin/class-metaboxes.php:
|
359 |
msgid "Store submitted."
|
360 |
msgstr ""
|
361 |
|
362 |
-
#: admin/class-metaboxes.php:
|
363 |
#, php-format
|
364 |
msgid "Store scheduled for: <strong>%1$s</strong>."
|
365 |
msgstr ""
|
366 |
|
367 |
-
#: admin/class-metaboxes.php:
|
368 |
msgid "M j, Y @ G:i"
|
369 |
msgstr ""
|
370 |
|
371 |
-
#: admin/class-metaboxes.php:
|
372 |
msgid "Store draft updated."
|
373 |
msgstr ""
|
374 |
|
375 |
-
#: admin/class-metaboxes.php:
|
376 |
msgid "View store"
|
377 |
msgstr ""
|
378 |
|
379 |
-
#: admin/class-metaboxes.php:
|
380 |
msgid "Preview store"
|
381 |
msgstr ""
|
382 |
|
1 |
#, fuzzy
|
2 |
msgid ""
|
3 |
msgstr ""
|
4 |
+
"Project-Id-Version: WP Store Locator v2.2.15\n"
|
5 |
"Report-Msgid-Bugs-To: \n"
|
6 |
+
"POT-Creation-Date: 2018-05-24 16:26+0200\n"
|
7 |
"PO-Revision-Date: 2015-09-01 13:49+0100\n"
|
8 |
"Last-Translator: \n"
|
9 |
"Language-Team: \n"
|
21 |
"X-Poedit-SearchPath-0: .\n"
|
22 |
"X-Poedit-SearchPathExcluded-0: admin/EDD_SL_Plugin_Updater.php\n"
|
23 |
|
24 |
+
#: admin/class-admin.php:118
|
25 |
#, php-format
|
26 |
msgid ""
|
27 |
"You need to create %sAPI keys%s for Google Maps before you can use the store "
|
28 |
"locator! %sDismiss%s"
|
29 |
msgstr ""
|
30 |
|
31 |
+
#: admin/class-admin.php:120
|
32 |
#, php-format
|
33 |
msgid ""
|
34 |
"Before adding the [wpsl] shortcode to a page, please don't forget to define "
|
35 |
"a start point on the %ssettings%s page. %sDismiss%s"
|
36 |
msgstr ""
|
37 |
|
38 |
+
#: admin/class-admin.php:157
|
39 |
msgid "Security check failed. Please reload the page and try again."
|
40 |
msgstr ""
|
41 |
|
42 |
+
#: admin/class-admin.php:176 admin/class-admin.php:177
|
43 |
+
#: admin/class-admin.php:467 admin/templates/map-settings.php:8
|
44 |
msgid "Settings"
|
45 |
msgstr ""
|
46 |
|
47 |
+
#: admin/class-admin.php:183 admin/class-admin.php:184
|
48 |
+
#: admin/class-admin.php:487
|
49 |
msgid "Add-Ons"
|
50 |
msgstr ""
|
51 |
|
52 |
+
#: admin/class-admin.php:295
|
53 |
msgid "Cannot determine the address at this location."
|
54 |
msgstr ""
|
55 |
|
56 |
+
#: admin/class-admin.php:296
|
57 |
msgid "Geocode was not successful for the following reason"
|
58 |
msgstr ""
|
59 |
|
60 |
+
#: admin/class-admin.php:297 admin/upgrade.php:458
|
61 |
msgid "Security check failed, reload the page and try again."
|
62 |
msgstr ""
|
63 |
|
64 |
+
#: admin/class-admin.php:298
|
65 |
msgid "Please fill in all the required store details."
|
66 |
msgstr ""
|
67 |
|
68 |
+
#: admin/class-admin.php:299
|
69 |
msgid "The map preview requires all the location details."
|
70 |
msgstr ""
|
71 |
|
72 |
+
#: admin/class-admin.php:300 admin/class-metaboxes.php:534
|
73 |
#: frontend/class-frontend.php:560
|
74 |
msgid "Closed"
|
75 |
msgstr ""
|
76 |
|
77 |
+
#: admin/class-admin.php:301
|
78 |
msgid "The code for the map style is invalid."
|
79 |
msgstr ""
|
80 |
|
81 |
+
#: admin/class-admin.php:302
|
82 |
#, php-format
|
83 |
msgid ""
|
84 |
"There's a problem with the provided %sbrowser key%s. %s You can read more "
|
85 |
"about how to determine the exact issue, and how to solve it %shere%s."
|
86 |
msgstr ""
|
87 |
|
88 |
+
#: admin/class-admin.php:303
|
89 |
msgid "Dismiss this notice."
|
90 |
msgstr ""
|
91 |
|
92 |
+
#: admin/class-admin.php:422
|
93 |
msgid "Welcome to WP Store Locator"
|
94 |
msgstr ""
|
95 |
|
96 |
+
#: admin/class-admin.php:423
|
97 |
msgid "Sign up for the latest plugin updates and announcements."
|
98 |
msgstr ""
|
99 |
|
100 |
+
#: admin/class-admin.php:486
|
101 |
msgid "Documentation"
|
102 |
msgstr ""
|
103 |
|
104 |
+
#: admin/class-admin.php:509
|
105 |
#, php-format
|
106 |
msgid "If you like this plugin please leave us a %s5 star%s rating."
|
107 |
msgstr ""
|
215 |
"or contact support. Error code: %s"
|
216 |
msgstr ""
|
217 |
|
218 |
+
#: admin/class-metaboxes.php:36
|
219 |
msgid "Store Details"
|
220 |
msgstr ""
|
221 |
|
222 |
+
#: admin/class-metaboxes.php:37
|
223 |
msgid "Store Map"
|
224 |
msgstr ""
|
225 |
|
226 |
+
#: admin/class-metaboxes.php:42
|
227 |
+
msgid "Export"
|
228 |
+
msgstr ""
|
229 |
+
|
230 |
+
#: admin/class-metaboxes.php:57
|
231 |
msgid "Location"
|
232 |
msgstr ""
|
233 |
|
234 |
+
#: admin/class-metaboxes.php:59 inc/class-post-types.php:159
|
235 |
msgid "Address"
|
236 |
msgstr ""
|
237 |
|
238 |
+
#: admin/class-metaboxes.php:63
|
239 |
msgid "Address 2"
|
240 |
msgstr ""
|
241 |
|
242 |
+
#: admin/class-metaboxes.php:66 inc/class-post-types.php:160
|
243 |
msgid "City"
|
244 |
msgstr ""
|
245 |
|
246 |
+
#: admin/class-metaboxes.php:70 inc/class-post-types.php:161
|
247 |
msgid "State"
|
248 |
msgstr ""
|
249 |
|
250 |
+
#: admin/class-metaboxes.php:73
|
251 |
msgid "Zip Code"
|
252 |
msgstr ""
|
253 |
|
254 |
+
#: admin/class-metaboxes.php:76
|
255 |
msgid "Country"
|
256 |
msgstr ""
|
257 |
|
258 |
+
#: admin/class-metaboxes.php:83
|
259 |
msgid "Latitude"
|
260 |
msgstr ""
|
261 |
|
262 |
+
#: admin/class-metaboxes.php:86
|
263 |
msgid "Longitude"
|
264 |
msgstr ""
|
265 |
|
266 |
+
#: admin/class-metaboxes.php:89 admin/class-metaboxes.php:138
|
267 |
+
#: admin/class-metaboxes.php:153
|
268 |
msgid "Opening Hours"
|
269 |
msgstr ""
|
270 |
|
271 |
+
#: admin/class-metaboxes.php:91 admin/templates/map-settings.php:548
|
272 |
#: admin/templates/map-settings.php:549 frontend/underscore-functions.php:160
|
273 |
#: inc/wpsl-functions.php:151
|
274 |
msgid "Hours"
|
275 |
msgstr ""
|
276 |
|
277 |
+
#: admin/class-metaboxes.php:95
|
278 |
msgid "Additional Information"
|
279 |
msgstr ""
|
280 |
|
281 |
+
#: admin/class-metaboxes.php:97
|
282 |
msgid "Tel"
|
283 |
msgstr ""
|
284 |
|
285 |
+
#: admin/class-metaboxes.php:100 admin/templates/map-settings.php:536
|
286 |
#: admin/templates/map-settings.php:537 frontend/class-frontend.php:822
|
287 |
#: frontend/underscore-functions.php:32 frontend/underscore-functions.php:68
|
288 |
#: frontend/underscore-functions.php:150 inc/wpsl-functions.php:148
|
289 |
msgid "Fax"
|
290 |
msgstr ""
|
291 |
|
292 |
+
#: admin/class-metaboxes.php:103 admin/templates/map-settings.php:540
|
293 |
#: admin/templates/map-settings.php:541 admin/upgrade.php:198
|
294 |
#: frontend/class-frontend.php:826 frontend/underscore-functions.php:35
|
295 |
#: frontend/underscore-functions.php:71 frontend/underscore-functions.php:153
|
297 |
msgid "Email"
|
298 |
msgstr ""
|
299 |
|
300 |
+
#: admin/class-metaboxes.php:106 admin/templates/map-settings.php:544
|
301 |
#: admin/templates/map-settings.php:545 admin/upgrade.php:202
|
302 |
#: frontend/class-frontend.php:831 inc/wpsl-functions.php:150
|
303 |
msgid "Url"
|
304 |
msgstr ""
|
305 |
|
306 |
+
#: admin/class-metaboxes.php:456
|
307 |
msgid "Hour format"
|
308 |
msgstr ""
|
309 |
|
310 |
+
#: admin/class-metaboxes.php:463
|
311 |
msgid "Days"
|
312 |
msgstr ""
|
313 |
|
314 |
+
#: admin/class-metaboxes.php:464
|
315 |
msgid "Opening Periods"
|
316 |
msgstr ""
|
317 |
|
318 |
+
#: admin/class-metaboxes.php:714
|
319 |
msgid "Failed to publish the store. Please fill in the required store details."
|
320 |
msgstr ""
|
321 |
|
322 |
+
#: admin/class-metaboxes.php:850
|
323 |
msgid "Preview Location"
|
324 |
msgstr ""
|
325 |
|
326 |
+
#: admin/class-metaboxes.php:851
|
327 |
#, php-format
|
328 |
msgid ""
|
329 |
"The map preview is based on the provided address, city and country details. "
|
330 |
"%s It will ignore any custom latitude or longitude values."
|
331 |
msgstr ""
|
332 |
|
333 |
+
#: admin/class-metaboxes.php:852
|
334 |
msgid "You can drag the marker to adjust the exact location of the marker."
|
335 |
msgstr ""
|
336 |
|
337 |
+
#: admin/class-metaboxes.php:871
|
338 |
+
msgid "Export Location Data"
|
339 |
+
msgstr ""
|
340 |
+
|
341 |
+
#: admin/class-metaboxes.php:891 admin/class-metaboxes.php:894
|
342 |
msgid "Store updated."
|
343 |
msgstr ""
|
344 |
|
345 |
+
#: admin/class-metaboxes.php:892
|
346 |
msgid "Custom field updated."
|
347 |
msgstr ""
|
348 |
|
349 |
+
#: admin/class-metaboxes.php:893
|
350 |
msgid "Custom field deleted."
|
351 |
msgstr ""
|
352 |
|
353 |
+
#: admin/class-metaboxes.php:895
|
354 |
#, php-format
|
355 |
msgid "Store restored to revision from %s"
|
356 |
msgstr ""
|
357 |
|
358 |
+
#: admin/class-metaboxes.php:896
|
359 |
msgid "Store published."
|
360 |
msgstr ""
|
361 |
|
362 |
+
#: admin/class-metaboxes.php:897
|
363 |
msgid "Store saved."
|
364 |
msgstr ""
|
365 |
|
366 |
+
#: admin/class-metaboxes.php:898
|
367 |
msgid "Store submitted."
|
368 |
msgstr ""
|
369 |
|
370 |
+
#: admin/class-metaboxes.php:900
|
371 |
#, php-format
|
372 |
msgid "Store scheduled for: <strong>%1$s</strong>."
|
373 |
msgstr ""
|
374 |
|
375 |
+
#: admin/class-metaboxes.php:901
|
376 |
msgid "M j, Y @ G:i"
|
377 |
msgstr ""
|
378 |
|
379 |
+
#: admin/class-metaboxes.php:903
|
380 |
msgid "Store draft updated."
|
381 |
msgstr ""
|
382 |
|
383 |
+
#: admin/class-metaboxes.php:909
|
384 |
msgid "View store"
|
385 |
msgstr ""
|
386 |
|
387 |
+
#: admin/class-metaboxes.php:915
|
388 |
msgid "Preview store"
|
389 |
msgstr ""
|
390 |
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Donate link: https://www.paypal.me/tijmensmit
|
|
5 |
Tags: google maps, store locator, business locations, geocoding, stores, geo, zipcode locator, dealer locater, geocode, gmaps, google map, google map plugin, location finder, map tools, shop locator, wp google map
|
6 |
Requires at least: 3.7
|
7 |
Tested up to: 4.9.4
|
8 |
-
Stable tag: 2.2.
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl.html
|
11 |
|
@@ -126,6 +126,9 @@ If you find a plugin or theme that causes a conflict, please report it on the [s
|
|
126 |
|
127 |
== Changelog ==
|
128 |
|
|
|
|
|
|
|
129 |
= 2.2.14, March 27, 2018 =
|
130 |
* Added: Included a wpsl_setting_dropdowns filter that enables the creation of additional dropdowns on the settings page.
|
131 |
* Added: A wpsl_get_location_fields() function that returns an array of the used meta fields.
|
5 |
Tags: google maps, store locator, business locations, geocoding, stores, geo, zipcode locator, dealer locater, geocode, gmaps, google map, google map plugin, location finder, map tools, shop locator, wp google map
|
6 |
Requires at least: 3.7
|
7 |
Tested up to: 4.9.4
|
8 |
+
Stable tag: 2.2.15
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl.html
|
11 |
|
126 |
|
127 |
== Changelog ==
|
128 |
|
129 |
+
= 2.2.15, May 24, 2018 =
|
130 |
+
* Added: Included a 'Export Location Data' button in the admin editor to make it easier to handle possible GDPR data access requests. If you want to, then you can hide it with [this](https://wpstorelocator.co/document/wpsl_enable_export_option/) filter.
|
131 |
+
|
132 |
= 2.2.14, March 27, 2018 =
|
133 |
* Added: Included a wpsl_setting_dropdowns filter that enables the creation of additional dropdowns on the settings page.
|
134 |
* Added: A wpsl_get_location_fields() function that returns an array of the used meta fields.
|
wp-store-locator.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: WP Store Locator
|
|
4 |
Description: An easy to use location management system that enables users to search for nearby physical stores
|
5 |
Author: Tijmen Smit
|
6 |
Author URI: https://wpstorelocator.co/
|
7 |
-
Version: 2.2.
|
8 |
Text Domain: wpsl
|
9 |
Domain Path: /languages/
|
10 |
License: GPL v3
|
@@ -61,7 +61,7 @@ if ( !class_exists( 'WP_Store_locator' ) ) {
|
|
61 |
public function define_constants() {
|
62 |
|
63 |
if ( !defined( 'WPSL_VERSION_NUM' ) )
|
64 |
-
define( 'WPSL_VERSION_NUM', '2.2.
|
65 |
|
66 |
if ( !defined( 'WPSL_URL' ) )
|
67 |
define( 'WPSL_URL', plugin_dir_url( __FILE__ ) );
|
4 |
Description: An easy to use location management system that enables users to search for nearby physical stores
|
5 |
Author: Tijmen Smit
|
6 |
Author URI: https://wpstorelocator.co/
|
7 |
+
Version: 2.2.15
|
8 |
Text Domain: wpsl
|
9 |
Domain Path: /languages/
|
10 |
License: GPL v3
|
61 |
public function define_constants() {
|
62 |
|
63 |
if ( !defined( 'WPSL_VERSION_NUM' ) )
|
64 |
+
define( 'WPSL_VERSION_NUM', '2.2.15' );
|
65 |
|
66 |
if ( !defined( 'WPSL_URL' ) )
|
67 |
define( 'WPSL_URL', plugin_dir_url( __FILE__ ) );
|