Version Description
Download this release
Release Info
Developer | tijmensmit |
Plugin | WP Store Locator |
Version | 2.2.235 |
Comparing to | |
See all releases |
Code changes from version 2.2.234 to 2.2.235
- frontend/class-frontend.php +5 -5
- inc/class-borlabs-cookie.php +5 -1
- readme.txt +5 -2
- wp-store-locator.php +2 -2
frontend/class-frontend.php
CHANGED
@@ -55,12 +55,12 @@ if ( !class_exists( 'WPSL_Frontend' ) ) {
|
|
55 |
add_action( 'init', array( $this, 'borlabs_cookie' ) );
|
56 |
}
|
57 |
|
58 |
-
add_action( 'wp_ajax_store_search',
|
59 |
-
add_action( 'wp_ajax_nopriv_store_search',
|
60 |
-
add_action( 'wp_enqueue_scripts',
|
61 |
-
add_action( 'wp_footer',
|
62 |
|
63 |
-
add_filter( 'the_content',
|
64 |
|
65 |
add_shortcode( 'wpsl', array( $this, 'show_store_locator' ) );
|
66 |
add_shortcode( 'wpsl_address', array( $this, 'show_store_address' ) );
|
55 |
add_action( 'init', array( $this, 'borlabs_cookie' ) );
|
56 |
}
|
57 |
|
58 |
+
add_action( 'wp_ajax_store_search', array( $this, 'store_search' ) );
|
59 |
+
add_action( 'wp_ajax_nopriv_store_search', array( $this, 'store_search' ) );
|
60 |
+
add_action( 'wp_enqueue_scripts', array( $this, 'add_frontend_styles' ) );
|
61 |
+
add_action( 'wp_footer', array( $this, 'add_frontend_scripts' ) );
|
62 |
|
63 |
+
add_filter( 'the_content', array( $this, 'cpt_template' ) );
|
64 |
|
65 |
add_shortcode( 'wpsl', array( $this, 'show_store_locator' ) );
|
66 |
add_shortcode( 'wpsl_address', array( $this, 'show_store_address' ) );
|
inc/class-borlabs-cookie.php
CHANGED
@@ -134,7 +134,11 @@ if ( !class_exists( 'WPSL_Borlabs_Cookie' ) ) {
|
|
134 |
);
|
135 |
|
136 |
// Default thumbnail
|
137 |
-
|
|
|
|
|
|
|
|
|
138 |
|
139 |
// Get the title which was maybe set via title-attribute in a shortcode
|
140 |
$title = BorlabsCookieHelper()->getCurrentTitleOfBlockedContentType();
|
134 |
);
|
135 |
|
136 |
// Default thumbnail
|
137 |
+
if ( defined( 'BORLABS_COOKIE_VERSION' ) && version_compare( BORLABS_COOKIE_VERSION, '2.2.36', '>=' )) {
|
138 |
+
$thumbnail = BORLABS_COOKIE_PLUGIN_URL . 'assets/images/cb-maps.png';
|
139 |
+
} else {
|
140 |
+
$thumbnail = BORLABS_COOKIE_PLUGIN_URL . 'images/bct-google-maps.png';
|
141 |
+
}
|
142 |
|
143 |
// Get the title which was maybe set via title-attribute in a shortcode
|
144 |
$title = BorlabsCookieHelper()->getCurrentTitleOfBlockedContentType();
|
readme.txt
CHANGED
@@ -4,8 +4,8 @@ Contributors: tijmensmit
|
|
4 |
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: 5.8.
|
8 |
-
Stable tag: 2.2.
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl.html
|
11 |
|
@@ -127,6 +127,9 @@ If you find a plugin or theme that causes a conflict, please report it on the [s
|
|
127 |
|
128 |
== Changelog ==
|
129 |
|
|
|
|
|
|
|
130 |
= 2.2.234, 23 January, 2021 =
|
131 |
* Fixed: PHP 8 Compatiblity
|
132 |
* Fixed: Polylang Compatiblity
|
4 |
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: 5.8.2
|
8 |
+
Stable tag: 2.2.235
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl.html
|
11 |
|
127 |
|
128 |
== Changelog ==
|
129 |
|
130 |
+
= 2.2.235, 10 January, 2022 =
|
131 |
+
* Fixed: Borlabs Cookie](https://borlabs.io/borlabs-cookie/) compatiblity problem with the Google Maps placeholder.
|
132 |
+
|
133 |
= 2.2.234, 23 January, 2021 =
|
134 |
* Fixed: PHP 8 Compatiblity
|
135 |
* Fixed: Polylang Compatiblity
|
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.235
|
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.235' );
|
65 |
|
66 |
if ( !defined( 'WPSL_URL' ) )
|
67 |
define( 'WPSL_URL', plugin_dir_url( __FILE__ ) );
|