Version Description
- Fixed the styling for the storelocator dropdowns being applied to other dropdowns site wide
- Fixed a problem with slashes in store titles
Download this release
Release Info
Developer | tijmensmit |
Plugin | WP Store Locator |
Version | 1.0.1 |
Comparing to | |
See all releases |
Code changes from version 1.0 to 1.0.1
- admin/class-store-overview.php +1 -1
- admin/templates/add-store.php +9 -9
- admin/templates/edit-store.php +10 -10
- frontend/wpsl-ajax-functions.php +15 -15
- js/wpsl-gmap.js +1 -1
- readme.txt +5 -1
- wp-store-locator.php +1 -1
admin/class-store-overview.php
CHANGED
@@ -317,7 +317,7 @@ class WPSL_Store_Overview extends WP_List_Table {
|
|
317 |
}
|
318 |
|
319 |
$response = array(
|
320 |
-
"data" => $result,
|
321 |
"count" => $total_items
|
322 |
);
|
323 |
|
317 |
}
|
318 |
|
319 |
$response = array(
|
320 |
+
"data" => stripslashes_deep( $result ),
|
321 |
"count" => $total_items
|
322 |
);
|
323 |
|
admin/templates/add-store.php
CHANGED
@@ -18,27 +18,27 @@
|
|
18 |
<div class="inside">
|
19 |
<p>
|
20 |
<label for="wpsl-store-name"><?php _e( 'Store Name:', 'wpsl' ); ?></label>
|
21 |
-
<input id="wpsl-store-name" name="wpsl[store]" type="text" class="textinput <?php if ( ( $_POST['wpsl'] ) && empty( $_POST['wpsl']['store'] ) ) { echo 'wpsl-error'; } ?>" value="<?php if ( !empty( $_POST['wpsl']['store'] ) ) { echo esc_attr( $_POST['wpsl']['store'] ); } ?>" />
|
22 |
</p>
|
23 |
<p>
|
24 |
<label for="wpsl-store-street"><?php _e( 'Street:', 'wpsl' ); ?></label>
|
25 |
-
<input id="wpsl-store-street" name="wpsl[street]" type="text" class="textinput <?php if ( ( $_POST['wpsl'] ) && empty( $_POST['wpsl']['street'] ) ) { echo 'wpsl-error'; } ?>" value="<?php if ( !empty( $_POST['wpsl']['street'] ) ) { echo esc_attr( $_POST['wpsl']['street'] ); } ?>" />
|
26 |
</p>
|
27 |
<p>
|
28 |
<label for="wpsl-store-city"><?php _e( 'City:', 'wpsl' ); ?></label>
|
29 |
-
<input id="wpsl-store-city" name="wpsl[city]" type="text" class="textinput <?php if ( ( $_POST['wpsl'] ) && empty( $_POST['wpsl']['city'] ) ) { echo 'wpsl-error'; } ?>" value="<?php if ( !empty( $_POST['wpsl']['city'] ) ) { echo esc_attr( $_POST['wpsl']['city'] ); } ?>" />
|
30 |
</p>
|
31 |
<p>
|
32 |
<label for="wpsl-store-state"><?php _e( 'State / Province:', 'wpsl' ); ?></label>
|
33 |
-
<input id="wpsl-store-state" name="wpsl[state]" type="text" class="textinput" value="<?php if ( !empty( $_POST['wpsl']['state'] ) ) { echo esc_attr( $_POST['wpsl']['state'] ); } ?>" />
|
34 |
</p>
|
35 |
<p>
|
36 |
<label for="wpsl-store-zip"><?php _e( 'Zip Code:', 'wpsl' ); ?></label>
|
37 |
-
<input id="wpsl-store-zip" name="wpsl[zip]" type="text" class="textinput <?php if ( ( $_POST['wpsl'] ) && empty( $_POST['wpsl']['zip'] ) ) { echo 'wpsl-error'; } ?>" value="<?php if ( !empty( $_POST['wpsl']['zip'] ) ) { echo esc_attr( $_POST['wpsl']['zip'] ); } ?>" />
|
38 |
</p>
|
39 |
<p>
|
40 |
<label for="wpsl-store-country"><?php _e( 'Country:', 'wpsl' ); ?></label>
|
41 |
-
<input id="wpsl-store-country" name="wpsl[country]" type="text" class="textinput <?php if ( ( $_POST['wpsl'] ) && empty( $_POST['wpsl']['country'] ) ) { echo 'wpsl-error'; } ?>" value="<?php if ( !empty( $_POST['wpsl']['country'] ) ) { echo esc_attr( $_POST['wpsl']['country'] ); } ?>" />
|
42 |
<input id="wpsl-country-iso" type="hidden" name="wpsl[country-iso]" value="<?php if ( !empty( $_POST['wpsl']['country-iso'] ) ) { echo esc_attr( $_POST['wpsl']['country-iso'] ); } ?>" />
|
43 |
</p>
|
44 |
<p>
|
@@ -78,15 +78,15 @@
|
|
78 |
</p>
|
79 |
<p>
|
80 |
<label for="wpsl-store-url"><?php _e( 'Url:', 'wpsl' ); ?></label>
|
81 |
-
<input id="wpsl-store-url" name="wpsl[url]" type="url" class="textinput" value="<?php if ( !empty( $_POST['wpsl']['url'] ) ) { echo
|
82 |
</p>
|
83 |
<p>
|
84 |
<label for="wpsl-store-desc"><?php _e( 'Description:', 'wpsl' ); ?></label>
|
85 |
-
<textarea id="wpsl-store-desc" name="wpsl[desc]" cols="5" rows="5"
|
86 |
</p>
|
87 |
<p>
|
88 |
<label for="wpsl-store-hours"><?php _e( 'Operation Hours:', 'wpsl' ); ?></label>
|
89 |
-
<textarea id="wpsl-store-hours" name="wpsl[hours]" cols="5" rows="5"><?php if ( !empty( $_POST['wpsl']['hours'] ) ) { echo esc_textarea( $_POST['wpsl']['hours'] ); } ?></textarea>
|
90 |
</p>
|
91 |
<div id="wpsl-thumb-wrap">
|
92 |
<p>
|
18 |
<div class="inside">
|
19 |
<p>
|
20 |
<label for="wpsl-store-name"><?php _e( 'Store Name:', 'wpsl' ); ?></label>
|
21 |
+
<input id="wpsl-store-name" name="wpsl[store]" type="text" class="textinput <?php if ( ( $_POST['wpsl'] ) && empty( $_POST['wpsl']['store'] ) ) { echo 'wpsl-error'; } ?>" value="<?php if ( !empty( $_POST['wpsl']['store'] ) ) { echo esc_attr( stripslashes( $_POST['wpsl']['store'] ) ); } ?>" />
|
22 |
</p>
|
23 |
<p>
|
24 |
<label for="wpsl-store-street"><?php _e( 'Street:', 'wpsl' ); ?></label>
|
25 |
+
<input id="wpsl-store-street" name="wpsl[street]" type="text" class="textinput <?php if ( ( $_POST['wpsl'] ) && empty( $_POST['wpsl']['street'] ) ) { echo 'wpsl-error'; } ?>" value="<?php if ( !empty( $_POST['wpsl']['street'] ) ) { echo esc_attr( stripslashes( $_POST['wpsl']['street'] ) ); } ?>" />
|
26 |
</p>
|
27 |
<p>
|
28 |
<label for="wpsl-store-city"><?php _e( 'City:', 'wpsl' ); ?></label>
|
29 |
+
<input id="wpsl-store-city" name="wpsl[city]" type="text" class="textinput <?php if ( ( $_POST['wpsl'] ) && empty( $_POST['wpsl']['city'] ) ) { echo 'wpsl-error'; } ?>" value="<?php if ( !empty( $_POST['wpsl']['city'] ) ) { echo esc_attr( stripslashes( $_POST['wpsl']['city'] ) ); } ?>" />
|
30 |
</p>
|
31 |
<p>
|
32 |
<label for="wpsl-store-state"><?php _e( 'State / Province:', 'wpsl' ); ?></label>
|
33 |
+
<input id="wpsl-store-state" name="wpsl[state]" type="text" class="textinput" value="<?php if ( !empty( $_POST['wpsl']['state'] ) ) { echo esc_attr( stripslashes( $_POST['wpsl']['state'] ) ); } ?>" />
|
34 |
</p>
|
35 |
<p>
|
36 |
<label for="wpsl-store-zip"><?php _e( 'Zip Code:', 'wpsl' ); ?></label>
|
37 |
+
<input id="wpsl-store-zip" name="wpsl[zip]" type="text" class="textinput <?php if ( ( $_POST['wpsl'] ) && empty( $_POST['wpsl']['zip'] ) ) { echo 'wpsl-error'; } ?>" value="<?php if ( !empty( $_POST['wpsl']['zip'] ) ) { echo esc_attr( stripslashes( $_POST['wpsl']['zip'] ) ); } ?>" />
|
38 |
</p>
|
39 |
<p>
|
40 |
<label for="wpsl-store-country"><?php _e( 'Country:', 'wpsl' ); ?></label>
|
41 |
+
<input id="wpsl-store-country" name="wpsl[country]" type="text" class="textinput <?php if ( ( $_POST['wpsl'] ) && empty( $_POST['wpsl']['country'] ) ) { echo 'wpsl-error'; } ?>" value="<?php if ( !empty( $_POST['wpsl']['country'] ) ) { echo esc_attr( stripslashes( $_POST['wpsl']['country'] ) ); } ?>" />
|
42 |
<input id="wpsl-country-iso" type="hidden" name="wpsl[country-iso]" value="<?php if ( !empty( $_POST['wpsl']['country-iso'] ) ) { echo esc_attr( $_POST['wpsl']['country-iso'] ); } ?>" />
|
43 |
</p>
|
44 |
<p>
|
78 |
</p>
|
79 |
<p>
|
80 |
<label for="wpsl-store-url"><?php _e( 'Url:', 'wpsl' ); ?></label>
|
81 |
+
<input id="wpsl-store-url" name="wpsl[url]" type="url" class="textinput" value="<?php if ( !empty( $_POST['wpsl']['url'] ) ) { echo esc_url( $_POST['wpsl']['url'] ); } ?>">
|
82 |
</p>
|
83 |
<p>
|
84 |
<label for="wpsl-store-desc"><?php _e( 'Description:', 'wpsl' ); ?></label>
|
85 |
+
<textarea id="wpsl-store-desc" name="wpsl[desc]" cols="5" rows="5"><?php if ( !empty( $_POST['wpsl']['desc'] ) ) { echo esc_textarea( stripslashes( $_POST['wpsl']['desc'] ) ); } ?></textarea>
|
86 |
</p>
|
87 |
<p>
|
88 |
<label for="wpsl-store-hours"><?php _e( 'Operation Hours:', 'wpsl' ); ?></label>
|
89 |
+
<textarea id="wpsl-store-hours" name="wpsl[hours]" cols="5" rows="5"><?php if ( !empty( $_POST['wpsl']['hours'] ) ) { echo esc_textarea( stripslashes( $_POST['wpsl']['hours'] ) ); } ?></textarea>
|
90 |
</p>
|
91 |
<div id="wpsl-thumb-wrap">
|
92 |
<p>
|
admin/templates/edit-store.php
CHANGED
@@ -11,7 +11,7 @@ if ( $store_id ) {
|
|
11 |
}
|
12 |
?>
|
13 |
<div id="wpsl-wrap" class="wrap wpsl-add-stores">
|
14 |
-
<h2 class="wpsl-edit-header">Edit <?php if ( ( $_POST['wpsl'] ) && empty( $_POST['wpsl']['store'] ) ) { echo esc_attr( $_POST['wpsl']['store'] ); } else { echo esc_attr( $store_details['store'] ); } ?></h2>
|
15 |
<?php settings_errors(); ?>
|
16 |
|
17 |
<form method="post" action="" accept-charset="utf-8">
|
@@ -33,27 +33,27 @@ if ( $store_id ) {
|
|
33 |
</p>
|
34 |
<p>
|
35 |
<label for="wpsl-store-name"><?php _e( 'Store Name:', 'wpsl' ); ?></label>
|
36 |
-
<input id="wpsl-store-name" name="wpsl[store]" type="text" class="textinput <?php if ( ( $_POST['wpsl'] ) && empty( $_POST['wpsl']['store'] ) ) { echo 'wpsl-error'; } ?>" value="<?php if ( ( $_POST['wpsl'] ) && empty( $_POST['wpsl']['store'] ) ) { echo esc_attr( $_POST['wpsl']['store'] ); } else { echo esc_attr( $store_details['store'] ); } ?>" />
|
37 |
</p>
|
38 |
<p>
|
39 |
<label for="wpsl-store-street"><?php _e( 'Street:', 'wpsl' ); ?></label>
|
40 |
-
<input id="wpsl-store-street" name="wpsl[street]" type="text" class="textinput <?php if ( ( $_POST['wpsl'] ) && empty( $_POST['wpsl']['street'] ) ) { echo 'wpsl-error'; } ?>" value="<?php if ( ( $_POST['wpsl'] ) && empty( $_POST['wpsl']['street'] ) ) { echo esc_attr( $_POST['wpsl']['street'] ); } else { echo esc_attr( $store_details['street'] ); } ?>" />
|
41 |
</p>
|
42 |
<p>
|
43 |
<label for="wpsl-store-city"><?php _e( 'City:', 'wpsl' ); ?></label>
|
44 |
-
<input id="wpsl-store-city" name="wpsl[city]" type="text" class="textinput <?php if ( ( $_POST['wpsl'] ) && empty( $_POST['wpsl']['city'] ) ) { echo 'wpsl-error'; } ?>" value="<?php if ( ( $_POST['wpsl'] ) && empty( $_POST['wpsl']['city'] ) ) { echo esc_attr( $_POST['wpsl']['city'] ); } else { echo esc_attr( $store_details['city'] ); } ?>" />
|
45 |
</p>
|
46 |
<p>
|
47 |
<label for="wpsl-store-state"><?php _e( 'State / Province:', 'wpsl' ); ?></label>
|
48 |
-
<input id="wpsl-store-state" name="wpsl[state]" type="text" class="textinput" value="<?php if ( ( $_POST['wpsl'] ) && empty( $_POST['wpsl']['state'] ) ) { echo esc_attr( $_POST['wpsl']['state'] ); } else { echo esc_attr( $store_details['state'] ); } ?>" />
|
49 |
</p>
|
50 |
<p>
|
51 |
<label for="wpsl-store-zip"><?php _e( 'Zip Code:', 'wpsl' ); ?></label>
|
52 |
-
<input id="wpsl-store-zip" name="wpsl[zip]" type="text" class="textinput <?php if ( ( $_POST['wpsl'] ) && empty( $_POST['wpsl']['zip'] ) ) { echo 'wpsl-error'; } ?>" value="<?php if ( ( $_POST['wpsl'] ) && empty( $_POST['wpsl']['zip'] ) ) { echo esc_attr( $_POST['wpsl']['zip'] ); } else { echo esc_attr( $store_details['zip'] ); } ?>" />
|
53 |
</p>
|
54 |
<p>
|
55 |
<label for="wpsl-store-country"><?php _e( 'Country:', 'wpsl' ); ?></label>
|
56 |
-
<input id="wpsl-store-country" name="wpsl[country]" type="text" class="textinput <?php if ( ( $_POST['wpsl'] ) && empty( $_POST['wpsl']['country'] ) ) { echo 'wpsl-error'; } ?>" value="<?php if ( ( $_POST['wpsl'] ) && empty( $_POST['wpsl']['country'] ) ) { echo esc_attr( $_POST['wpsl']['country'] ); } else { echo esc_attr( $store_details['country'] ); } ?>" />
|
57 |
<input id="wpsl-country-iso" type="hidden" name="wpsl[country-iso]" value="<?php echo esc_attr( $store_details['country_iso'] ); ?>" />
|
58 |
</p>
|
59 |
<p>
|
@@ -93,15 +93,15 @@ if ( $store_id ) {
|
|
93 |
</p>
|
94 |
<p>
|
95 |
<label for="wpsl-store-url"><?php _e( 'Url:', 'wpsl' ); ?></label>
|
96 |
-
<input id="wpsl-store-url" name="wpsl[url]" type="url" class="textinput" value="<?php if ( $_POST['wpsl']['url'] ) { echo
|
97 |
</p>
|
98 |
<p>
|
99 |
<label for="wpsl-store-desc"><?php _e( 'Description:', 'wpsl' ); ?></label>
|
100 |
-
<textarea id="wpsl-store-desc" name="wpsl[desc]" cols="5" rows="5"><?php if ( $_POST['wpsl']['desc'] ) { echo esc_textarea( $_POST['wpsl']['desc'] ); } else { echo esc_textarea( $store_details['description'] ); } ?></textarea>
|
101 |
</p>
|
102 |
<p>
|
103 |
<label for="wpsl-store-hours"><?php _e( 'Operation Hours:', 'wpsl' ); ?></label>
|
104 |
-
<textarea id="wpsl-store-hours" name="wpsl[hours]" cols="5" rows="5"><?php if ( $_POST['wpsl']['hours'] ) { echo esc_textarea( $_POST['wpsl']['hours'] ); } else { echo esc_textarea( $store_details['hours'] ); } ?></textarea>
|
105 |
</p>
|
106 |
<div id="wpsl-thumb-wrap">
|
107 |
<p>
|
11 |
}
|
12 |
?>
|
13 |
<div id="wpsl-wrap" class="wrap wpsl-add-stores">
|
14 |
+
<h2 class="wpsl-edit-header">Edit <?php if ( ( $_POST['wpsl'] ) && empty( $_POST['wpsl']['store'] ) ) { echo esc_attr( stripslashes( $_POST['wpsl']['store'] ) ); } else { echo esc_attr( stripslashes( $store_details['store'] ) ); } ?></h2>
|
15 |
<?php settings_errors(); ?>
|
16 |
|
17 |
<form method="post" action="" accept-charset="utf-8">
|
33 |
</p>
|
34 |
<p>
|
35 |
<label for="wpsl-store-name"><?php _e( 'Store Name:', 'wpsl' ); ?></label>
|
36 |
+
<input id="wpsl-store-name" name="wpsl[store]" type="text" class="textinput <?php if ( ( $_POST['wpsl'] ) && empty( $_POST['wpsl']['store'] ) ) { echo 'wpsl-error'; } ?>" value="<?php if ( ( $_POST['wpsl'] ) && empty( $_POST['wpsl']['store'] ) ) { echo esc_attr( stripslashes( $_POST['wpsl']['store'] ) ); } else { echo esc_attr( stripslashes( $store_details['store'] ) ); } ?>" />
|
37 |
</p>
|
38 |
<p>
|
39 |
<label for="wpsl-store-street"><?php _e( 'Street:', 'wpsl' ); ?></label>
|
40 |
+
<input id="wpsl-store-street" name="wpsl[street]" type="text" class="textinput <?php if ( ( $_POST['wpsl'] ) && empty( $_POST['wpsl']['street'] ) ) { echo 'wpsl-error'; } ?>" value="<?php if ( ( $_POST['wpsl'] ) && empty( $_POST['wpsl']['street'] ) ) { echo esc_attr( stripslashes( $_POST['wpsl']['street'] ) ); } else { echo esc_attr( stripslashes( $store_details['street'] ) ); } ?>" />
|
41 |
</p>
|
42 |
<p>
|
43 |
<label for="wpsl-store-city"><?php _e( 'City:', 'wpsl' ); ?></label>
|
44 |
+
<input id="wpsl-store-city" name="wpsl[city]" type="text" class="textinput <?php if ( ( $_POST['wpsl'] ) && empty( $_POST['wpsl']['city'] ) ) { echo 'wpsl-error'; } ?>" value="<?php if ( ( $_POST['wpsl'] ) && empty( $_POST['wpsl']['city'] ) ) { echo esc_attr( stripslashes( $_POST['wpsl']['city'] ) ); } else { echo esc_attr( stripslashes( $store_details['city'] ) ); } ?>" />
|
45 |
</p>
|
46 |
<p>
|
47 |
<label for="wpsl-store-state"><?php _e( 'State / Province:', 'wpsl' ); ?></label>
|
48 |
+
<input id="wpsl-store-state" name="wpsl[state]" type="text" class="textinput" value="<?php if ( ( $_POST['wpsl'] ) && empty( $_POST['wpsl']['state'] ) ) { echo esc_attr( stripslashes( $_POST['wpsl']['state'] ) ); } else { echo esc_attr( stripslashes( $store_details['state'] ) ); } ?>" />
|
49 |
</p>
|
50 |
<p>
|
51 |
<label for="wpsl-store-zip"><?php _e( 'Zip Code:', 'wpsl' ); ?></label>
|
52 |
+
<input id="wpsl-store-zip" name="wpsl[zip]" type="text" class="textinput <?php if ( ( $_POST['wpsl'] ) && empty( $_POST['wpsl']['zip'] ) ) { echo 'wpsl-error'; } ?>" value="<?php if ( ( $_POST['wpsl'] ) && empty( $_POST['wpsl']['zip'] ) ) { echo esc_attr( stripslashes( $_POST['wpsl']['zip'] ) ); } else { echo esc_attr( stripslashes( $store_details['zip'] ) ); } ?>" />
|
53 |
</p>
|
54 |
<p>
|
55 |
<label for="wpsl-store-country"><?php _e( 'Country:', 'wpsl' ); ?></label>
|
56 |
+
<input id="wpsl-store-country" name="wpsl[country]" type="text" class="textinput <?php if ( ( $_POST['wpsl'] ) && empty( $_POST['wpsl']['country'] ) ) { echo 'wpsl-error'; } ?>" value="<?php if ( ( $_POST['wpsl'] ) && empty( $_POST['wpsl']['country'] ) ) { echo esc_attr( stripslashes( $_POST['wpsl']['country'] ) ); } else { echo esc_attr( stripslashes( $store_details['country'] ) ); } ?>" />
|
57 |
<input id="wpsl-country-iso" type="hidden" name="wpsl[country-iso]" value="<?php echo esc_attr( $store_details['country_iso'] ); ?>" />
|
58 |
</p>
|
59 |
<p>
|
93 |
</p>
|
94 |
<p>
|
95 |
<label for="wpsl-store-url"><?php _e( 'Url:', 'wpsl' ); ?></label>
|
96 |
+
<input id="wpsl-store-url" name="wpsl[url]" type="url" class="textinput" value="<?php if ( $_POST['wpsl']['url'] ) { echo esc_url( $_POST['wpsl']['url'] ); } else { echo esc_url( $store_details['url'] ); } ?>">
|
97 |
</p>
|
98 |
<p>
|
99 |
<label for="wpsl-store-desc"><?php _e( 'Description:', 'wpsl' ); ?></label>
|
100 |
+
<textarea id="wpsl-store-desc" name="wpsl[desc]" cols="5" rows="5"><?php if ( $_POST['wpsl']['desc'] ) { echo esc_textarea( stripslashes( $_POST['wpsl']['desc'] ) ); } else { echo esc_textarea( stripslashes( $store_details['description'] ) ); } ?></textarea>
|
101 |
</p>
|
102 |
<p>
|
103 |
<label for="wpsl-store-hours"><?php _e( 'Operation Hours:', 'wpsl' ); ?></label>
|
104 |
+
<textarea id="wpsl-store-hours" name="wpsl[hours]" cols="5" rows="5"><?php if ( $_POST['wpsl']['hours'] ) { echo esc_textarea( stripslashes( $_POST['wpsl']['hours'] ) ); } else { echo esc_textarea( stripslashes( $store_details['hours'] ) ); } ?></textarea>
|
105 |
</p>
|
106 |
<div id="wpsl-thumb-wrap">
|
107 |
<p>
|
frontend/wpsl-ajax-functions.php
CHANGED
@@ -63,23 +63,23 @@ function wpsl_store_search() {
|
|
63 |
|
64 |
/* Sanitize the results before they are returned */
|
65 |
$store_results[] = array (
|
66 |
-
'id' =>
|
67 |
-
'store' => wp_kses( $result[$k]->store, $allowed_html ),
|
68 |
-
'street' => wp_kses( $result[$k]->street, $allowed_html ),
|
69 |
-
'city' => wp_kses( $result[$k]->city, $allowed_html ),
|
70 |
-
'state' => wp_kses( $result[$k]->state, $allowed_html ),
|
71 |
-
'zip' => wp_kses( $result[$k]->zip, $allowed_html ),
|
72 |
-
'country' => wp_kses( $result[$k]->country, $allowed_html ),
|
73 |
-
'distance' =>
|
74 |
'lat' => wp_kses( $result[$k]->lat, $allowed_html ),
|
75 |
'lng' => wp_kses( $result[$k]->lng, $allowed_html ),
|
76 |
-
'description' => wpautop( wp_kses( $result[$k]->description, $allowed_html ) ),
|
77 |
-
'phone' => wp_kses( $result[$k]->phone, $allowed_html ),
|
78 |
-
'fax' => wp_kses( $result[$k]->fax, $allowed_html ),
|
79 |
-
'email' => wp_kses( $result[$k]->email, $allowed_html ),
|
80 |
-
'hours' => wpautop( wp_kses( $result[$k]->hours, $allowed_html ) ),
|
81 |
-
'url' => esc_url( $result[$k]->url
|
82 |
-
'thumb' => esc_url( $result[$k]->thumb_src
|
83 |
);
|
84 |
}
|
85 |
|
63 |
|
64 |
/* Sanitize the results before they are returned */
|
65 |
$store_results[] = array (
|
66 |
+
'id' => absint( $result[$k]->wpsl_id ),
|
67 |
+
'store' => wp_kses( stripslashes( $result[$k]->store ), $allowed_html ),
|
68 |
+
'street' => wp_kses( stripslashes( $result[$k]->street ), $allowed_html ),
|
69 |
+
'city' => wp_kses( stripslashes( $result[$k]->city ), $allowed_html ),
|
70 |
+
'state' => wp_kses( stripslashes( $result[$k]->state ), $allowed_html ),
|
71 |
+
'zip' => wp_kses( stripslashes( $result[$k]->zip ), $allowed_html ),
|
72 |
+
'country' => wp_kses( stripslashes( $result[$k]->country ), $allowed_html ),
|
73 |
+
'distance' => $result[$k]->distance,
|
74 |
'lat' => wp_kses( $result[$k]->lat, $allowed_html ),
|
75 |
'lng' => wp_kses( $result[$k]->lng, $allowed_html ),
|
76 |
+
'description' => wpautop( wp_kses( stripslashes( $result[$k]->description ), $allowed_html ) ),
|
77 |
+
'phone' => wp_kses( stripslashes( $result[$k]->phone ), $allowed_html ),
|
78 |
+
'fax' => wp_kses( stripslashes( $result[$k]->fax ), $allowed_html ),
|
79 |
+
'email' => wp_kses( stripslashes( $result[$k]->email ), $allowed_html ),
|
80 |
+
'hours' => wpautop( wp_kses( stripslashes( $result[$k]->hours ), $allowed_html ) ),
|
81 |
+
'url' => esc_url( $result[$k]->url ),
|
82 |
+
'thumb' => esc_url( $result[$k]->thumb_src )
|
83 |
);
|
84 |
}
|
85 |
|
js/wpsl-gmap.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
jQuery( document ).ready( function( $ ) {
|
2 |
var geocoder, map, infowindow, directionsDisplay, directionsService,
|
3 |
markersArray = [],
|
4 |
-
$selects = $( "select" );
|
5 |
|
6 |
/* Load Google Maps */
|
7 |
function initializeGmap() {
|
1 |
jQuery( document ).ready( function( $ ) {
|
2 |
var geocoder, map, infowindow, directionsDisplay, directionsService,
|
3 |
markersArray = [],
|
4 |
+
$selects = $( "#wpsl-search-wrap select" );
|
5 |
|
6 |
/* Load Google Maps */
|
7 |
function initializeGmap() {
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: tijmensmit
|
|
3 |
Tags: google maps, store locator, business locations, geocoding, stores, geo
|
4 |
Requires at least: 3.5
|
5 |
Tested up to: 3.8
|
6 |
-
Stable tag: 1.0
|
7 |
License: GPLv3
|
8 |
License URI: http://www.gnu.org/licenses/gpl.html
|
9 |
|
@@ -55,5 +55,9 @@ Add this shortcode [wpsl] to the page where you want to display the store locato
|
|
55 |
|
56 |
== Changelog ==
|
57 |
|
|
|
|
|
|
|
|
|
58 |
= 1.0 =
|
59 |
* Initial release
|
3 |
Tags: google maps, store locator, business locations, geocoding, stores, geo
|
4 |
Requires at least: 3.5
|
5 |
Tested up to: 3.8
|
6 |
+
Stable tag: 1.0.1
|
7 |
License: GPLv3
|
8 |
License URI: http://www.gnu.org/licenses/gpl.html
|
9 |
|
55 |
|
56 |
== Changelog ==
|
57 |
|
58 |
+
= 1.0.1 =
|
59 |
+
* Fixed the styling for the storelocator dropdowns being applied to other dropdowns site wide
|
60 |
+
* Fixed a problem with slashes in store titles
|
61 |
+
|
62 |
= 1.0 =
|
63 |
* Initial release
|
wp-store-locator.php
CHANGED
@@ -5,7 +5,7 @@ Plugin URI:
|
|
5 |
Description: An easy to use location management system that enables users to search for nearby physical stores
|
6 |
Author: Tijmen Smit
|
7 |
Author URI: http://tijmensmit.com/
|
8 |
-
Version: 1.0
|
9 |
Text Domain: wpsl
|
10 |
Domain Path: /languages/
|
11 |
License: GPLv3
|
5 |
Description: An easy to use location management system that enables users to search for nearby physical stores
|
6 |
Author: Tijmen Smit
|
7 |
Author URI: http://tijmensmit.com/
|
8 |
+
Version: 1.0.1
|
9 |
Text Domain: wpsl
|
10 |
Domain Path: /languages/
|
11 |
License: GPLv3
|