WP Store Locator - Version 1.2.1

Version Description

  • Added an option to show the store listings below the map instead of next to it
  • Added an option to open the directions in a new window on maps.google.com itself
  • Fixed a 'too much recursion' js error that showed up when no start location was defined
  • Fixed the auto loading of stores not being ordered by distance
  • Fixed a problem with the input fields not always aligning in Chrome
  • Improved the handling of thumbnails. If the thumbnail format is disabled in the theme, it will look for the medium or full format instead
  • Several other small code improvements
Download this release

Release Info

Developer tijmensmit
Plugin Icon 128x128 WP Store Locator
Version 1.2.1
Comparing to
See all releases

Code changes from version 1.2 to 1.2.1

frontend/templates/store-listings-below.php ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $output = $this->get_custom_css();
3
+
4
+ $show_results_filter = $this->settings['results_dropdown'];
5
+ $results_filter_class = ( $show_results_filter ) ? '' : 'wpsl-no-results';
6
+
7
+ $output .= '<div id="wpsl-wrap" class="wpsl-store-below">' . "\r\n";
8
+ $output .= '<div class="wpsl-search clearfix ' . $results_filter_class . '">' . "\r\n";
9
+ $output .= '<div id="wpsl-search-wrap">' . "\r\n";
10
+ $output .= '<div class="wpsl-input">' . "\r\n";
11
+ $output .= '<div><label for="wpsl-search-input">' . esc_html( stripslashes( $this->settings['search_label'] ) ) . '</label></div>' . "\r\n";
12
+ $output .= '<input autocomplete="off" id="wpsl-search-input" type="text" value="" name="wpsl-search-input" />' . "\r\n";
13
+ $output .= '</div>' . "\r\n";
14
+ $output .= '<div class="wpsl-select-wrap">' . "\r\n";
15
+ $output .= '<div id="wpsl-radius">' . "\r\n";
16
+ $output .= '<label for="wpsl-radius-label">' . esc_html( stripslashes( $this->settings['radius_label'] ) ).'</label>' . "\r\n";
17
+ $output .= '<select autocomplete="off" id="wpsl-radius-label" class="wpsl-dropdown" name="wpsl-radius">' . "\r\n";
18
+ $output .= $this->get_dropdown_list( 'search_radius' );
19
+ $output .= '</select>' . "\r\n";
20
+ $output .= '</div>' . "\r\n";
21
+
22
+ if ( $show_results_filter ) {
23
+ $output .= '<div id="wpsl-results">' . "\r\n";
24
+ $output .= '<label for="wpsl-results-label">' . esc_html( stripslashes( $this->settings['results_label'] ) ) . '</label>' . "\r\n";
25
+ $output .= '<select autocomplete="off" id="wpsl-results-label" class="wpsl-dropdown" name="wpsl-results">' . "\r\n";
26
+ $output .= $this->get_dropdown_list( 'max_results' );
27
+ $output .= '</select>' . "\r\n";
28
+ $output .= '</div>' . "\r\n";
29
+ }
30
+
31
+ $output .= '<div><input id="wpsl-search-btn" type="submit" value='. esc_attr( stripslashes( $this->settings['search_btn_label'] ) ) . '></div>' . "\r\n";
32
+ $output .= '</div>' . "\r\n";
33
+ $output .= '</div>' . "\r\n";
34
+ $output .= '</div>' . "\r\n";
35
+
36
+ if ( $this->settings['reset_map'] ) {
37
+ $output .= '<div class="wpsl-gmap-wrap">' . "\r\n";
38
+ $output .= '<div id="wpsl-reset-map">Reset</div>' . "\r\n";
39
+ $output .= '<div id="wpsl-gmap"></div>' . "\r\n";
40
+ $output .= '</div>' . "\r\n";
41
+ } else {
42
+ $output .= '<div id="wpsl-gmap"></div>' . "\r\n";
43
+ }
44
+
45
+ $output .= '<div id="wpsl-result-list">' . "\r\n";
46
+ $output .= '<div id="wpsl-stores">' . "\r\n";
47
+ $output .= '<ul></ul>' . "\r\n";
48
+ $output .= '</div>' . "\r\n";
49
+ $output .= '<div id="wpsl-direction-details">' . "\r\n";
50
+ $output .= '<ul></ul>' . "\r\n";
51
+ $output .= '</div>' . "\r\n";
52
+ $output .= '</div>' . "\r\n";
53
+
54
+ $output .= '</div>' . "\r\n";
55
+
56
+ return $output;
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.1
6
- Stable tag: 1.2
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl.html
9
 
@@ -65,7 +65,7 @@ Make sure you don't have any security plugins, or custom functions running that
65
 
66
  == Changelog ==
67
 
68
- = 1.2 =
69
  * Added an option to show the store listings below the map instead of next to it
70
  * Added an option to open the directions in a new window on maps.google.com itself
71
  * Fixed a 'too much recursion' js error that showed up when no start location was defined
3
  Tags: google maps, store locator, business locations, geocoding, stores, geo
4
  Requires at least: 3.5
5
  Tested up to: 3.8.1
6
+ Stable tag: 1.2.1
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl.html
9
 
65
 
66
  == Changelog ==
67
 
68
+ = 1.2.1 =
69
  * Added an option to show the store listings below the map instead of next to it
70
  * Added an option to open the directions in a new window on maps.google.com itself
71
  * Fixed a 'too much recursion' js error that showed up when no start location was defined
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.2
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.2.1
9
  Text Domain: wpsl
10
  Domain Path: /languages/
11
  License: GPLv3