Version Description
- Update description
- Bugfix: use default json_encode if it's possible
Download this release
Release Info
Developer | widgetpack |
Plugin | Google Reviews Widget |
Version | 1.5.5 |
Comparing to | |
See all releases |
Code changes from version 1.5.4 to 1.5.5
- grw-options.php +6 -5
- grw-setting.php +1 -1
- grw.php +8 -13
- readme.txt +12 -9
grw-options.php
CHANGED
@@ -147,16 +147,17 @@
|
|
147 |
<?php echo grw_i('Widget theme'); ?>
|
148 |
<select id="<?php echo $this->get_field_id('view_mode'); ?>" name="<?php echo $this->get_field_name('view_mode'); ?>" class="form-control">
|
149 |
<option value="list" <?php selected('list', $view_mode); ?>><?php echo grw_i('Review list'); ?></option>
|
150 |
-
<option value="
|
151 |
-
<option value="
|
152 |
-
<option value="
|
153 |
-
<option value="
|
|
|
154 |
</select>
|
155 |
</div>
|
156 |
</div>
|
157 |
<div class="form-group">
|
158 |
<div class="rplg-pro">
|
159 |
-
<?php echo grw_i('<b>Grid</b>, <b>Badge</b> themes and other features available in Google Reviews Business plugin: '); ?>
|
160 |
<a href="https://richplugins.com/google-reviews-pro-wordpress-plugin" target="_blank">
|
161 |
<?php echo grw_i('Upgrade to Business'); ?>
|
162 |
</a>
|
147 |
<?php echo grw_i('Widget theme'); ?>
|
148 |
<select id="<?php echo $this->get_field_id('view_mode'); ?>" name="<?php echo $this->get_field_name('view_mode'); ?>" class="form-control">
|
149 |
<option value="list" <?php selected('list', $view_mode); ?>><?php echo grw_i('Review list'); ?></option>
|
150 |
+
<option value="slider" <?php selected('slider', $view_mode); ?> disabled><?php echo grw_i('Reviews Slider'); ?></option>
|
151 |
+
<option value="grid" <?php selected('grid', $view_mode); ?> disabled><?php echo grw_i('Reviews Grid'); ?></option>
|
152 |
+
<option value="badge" <?php selected('badge', $view_mode); ?> disabled><?php echo grw_i('Google Badge: right'); ?></option>
|
153 |
+
<option value="badge_left" <?php selected('badge_left', $view_mode); ?> disabled><?php echo grw_i('Google Badge: left'); ?></option>
|
154 |
+
<option value="badge_inner" <?php selected('badge_inner', $view_mode); ?> disabled><?php echo grw_i('Google Badge: embed'); ?></option>
|
155 |
</select>
|
156 |
</div>
|
157 |
</div>
|
158 |
<div class="form-group">
|
159 |
<div class="rplg-pro">
|
160 |
+
<?php echo grw_i('<b>Slider</b>, <b>Grid</b>, <b>Badge</b> themes and other features available in Google Reviews Business plugin: '); ?>
|
161 |
<a href="https://richplugins.com/google-reviews-pro-wordpress-plugin" target="_blank">
|
162 |
<?php echo grw_i('Upgrade to Business'); ?>
|
163 |
</a>
|
grw-setting.php
CHANGED
@@ -222,7 +222,7 @@ $grw_google_api_key = get_option('grw_google_api_key');
|
|
222 |
<p>* Google Rich Snippets (schema.org)</p>
|
223 |
<p>* Support shortcode</p>
|
224 |
<p>* Powerful <b>Shortcode Builder</b></p>
|
225 |
-
<p>* Grid theme to show G+ reviews in testimonials section</p>
|
226 |
<p>* Google Trust Badge (right/left fixed or inner)</p>
|
227 |
<p>* 'Write a review' button to available leave Google review directly on your website</p>
|
228 |
<p>* Trim long reviews with "read more" link</p>
|
222 |
<p>* Google Rich Snippets (schema.org)</p>
|
223 |
<p>* Support shortcode</p>
|
224 |
<p>* Powerful <b>Shortcode Builder</b></p>
|
225 |
+
<p>* Slider/Grid theme to show G+ reviews in testimonials section</p>
|
226 |
<p>* Google Trust Badge (right/left fixed or inner)</p>
|
227 |
<p>* 'Write a review' button to available leave Google review directly on your website</p>
|
228 |
<p>* Trim long reviews with "read more" link</p>
|
grw.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Google Reviews Widget
|
|
4 |
Plugin URI: https://richplugins.com/google-reviews-pro-wordpress-plugin
|
5 |
Description: Instantly Google Places Reviews on your website to increase user confidence and SEO.
|
6 |
Author: RichPlugins <support@richplugins.com>
|
7 |
-
Version: 1.5.
|
8 |
Author URI: https://richplugins.com/google-reviews-pro-wordpress-plugin
|
9 |
*/
|
10 |
|
@@ -13,7 +13,7 @@ require(ABSPATH . 'wp-includes/version.php');
|
|
13 |
include_once(dirname(__FILE__) . '/api/urlopen.php');
|
14 |
include_once(dirname(__FILE__) . '/helper/debug.php');
|
15 |
|
16 |
-
define('GRW_VERSION', '1.5.
|
17 |
define('GRW_GOOGLE_PLACE_API', 'https://maps.googleapis.com/maps/api/place/');
|
18 |
define('GRW_GOOGLE_AVATAR', 'https://lh3.googleusercontent.com/-8hepWJzFXpE/AAAAAAAAAAI/AAAAAAAAAAA/I80WzYfIxCQ/s64-c/114307615494839964028.jpg');
|
19 |
define('GRW_PLUGIN_URL', plugins_url(basename(plugin_dir_path(__FILE__ )), basename(__FILE__)));
|
@@ -158,7 +158,7 @@ function grw_request_handler() {
|
|
158 |
|
159 |
}
|
160 |
header('Content-type: text/javascript');
|
161 |
-
echo
|
162 |
die();
|
163 |
}
|
164 |
break;
|
@@ -179,7 +179,7 @@ function grw_request_handler() {
|
|
179 |
|
180 |
}
|
181 |
header('Content-type: text/javascript');
|
182 |
-
echo
|
183 |
die();
|
184 |
}
|
185 |
break;
|
@@ -200,7 +200,7 @@ function grw_request_handler() {
|
|
200 |
|
201 |
}
|
202 |
header('Content-type: text/javascript');
|
203 |
-
echo
|
204 |
die();
|
205 |
}
|
206 |
break;
|
@@ -228,7 +228,7 @@ function grw_request_handler() {
|
|
228 |
$response = compact('status');
|
229 |
}
|
230 |
header('Content-type: text/javascript');
|
231 |
-
echo
|
232 |
die();
|
233 |
}
|
234 |
break;
|
@@ -337,15 +337,10 @@ function esc_attr( $text ) {
|
|
337 |
|
338 |
/**
|
339 |
* JSON ENCODE for PHP < 5.2.0
|
340 |
-
* Checks if json_encode is not available and defines json_encode
|
341 |
-
* to use php_json_encode in its stead
|
342 |
-
* Works on iteratable objects as well - stdClass is iteratable, so all WP objects are gonna be iteratable
|
343 |
*/
|
344 |
-
if(!function_exists('
|
345 |
-
function cf_json_encode($data) {
|
346 |
|
347 |
-
|
348 |
-
// for some unknown reason.
|
349 |
return cfjson_encode($data);
|
350 |
}
|
351 |
|
4 |
Plugin URI: https://richplugins.com/google-reviews-pro-wordpress-plugin
|
5 |
Description: Instantly Google Places Reviews on your website to increase user confidence and SEO.
|
6 |
Author: RichPlugins <support@richplugins.com>
|
7 |
+
Version: 1.5.5
|
8 |
Author URI: https://richplugins.com/google-reviews-pro-wordpress-plugin
|
9 |
*/
|
10 |
|
13 |
include_once(dirname(__FILE__) . '/api/urlopen.php');
|
14 |
include_once(dirname(__FILE__) . '/helper/debug.php');
|
15 |
|
16 |
+
define('GRW_VERSION', '1.5.5');
|
17 |
define('GRW_GOOGLE_PLACE_API', 'https://maps.googleapis.com/maps/api/place/');
|
18 |
define('GRW_GOOGLE_AVATAR', 'https://lh3.googleusercontent.com/-8hepWJzFXpE/AAAAAAAAAAI/AAAAAAAAAAA/I80WzYfIxCQ/s64-c/114307615494839964028.jpg');
|
19 |
define('GRW_PLUGIN_URL', plugins_url(basename(plugin_dir_path(__FILE__ )), basename(__FILE__)));
|
158 |
|
159 |
}
|
160 |
header('Content-type: text/javascript');
|
161 |
+
echo json_encode($response);
|
162 |
die();
|
163 |
}
|
164 |
break;
|
179 |
|
180 |
}
|
181 |
header('Content-type: text/javascript');
|
182 |
+
echo json_encode($response_json->results);
|
183 |
die();
|
184 |
}
|
185 |
break;
|
200 |
|
201 |
}
|
202 |
header('Content-type: text/javascript');
|
203 |
+
echo json_encode($response_json->result);
|
204 |
die();
|
205 |
}
|
206 |
break;
|
228 |
$response = compact('status');
|
229 |
}
|
230 |
header('Content-type: text/javascript');
|
231 |
+
echo json_encode($response);
|
232 |
die();
|
233 |
}
|
234 |
break;
|
337 |
|
338 |
/**
|
339 |
* JSON ENCODE for PHP < 5.2.0
|
|
|
|
|
|
|
340 |
*/
|
341 |
+
if (!function_exists('json_encode')) {
|
|
|
342 |
|
343 |
+
function json_encode($data) {
|
|
|
344 |
return cfjson_encode($data);
|
345 |
}
|
346 |
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Google Reviews Widget ===
|
2 |
Contributors: richplugins
|
3 |
Donate link: https://richplugins.com/google-reviews-pro-wordpress-plugin
|
4 |
-
Tags: google,
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 4.7
|
7 |
-
Stable tag: 1.5.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -12,9 +12,9 @@ Google Reviews Widget show Google Places Reviews on your WordPress website to in
|
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
-
|
16 |
|
17 |
-
This plugin display Google Business Reviews on your websites in sidebar widget. A unique feature of the plugin is that it
|
18 |
|
19 |
[youtube https://www.youtube.com/watch?v=YccWFCkz6H4]
|
20 |
|
@@ -40,10 +40,9 @@ This plugin display Google Business Reviews on your websites in sidebar widget.
|
|
40 |
|
41 |
* Trying to get more than 5 Google reviews
|
42 |
* Google Rich Snippets (schema.org)
|
43 |
-
* Support shortcode
|
44 |
-
*
|
45 |
-
*
|
46 |
-
* Google Trust Badge (right/left fixed or inner label)
|
47 |
* 'Write a review' button to available leave Google review directly on your website
|
48 |
* Trim long reviews with "read more" link
|
49 |
* Show/hide business photo and avatars
|
@@ -74,8 +73,12 @@ Why limit your reviews to just Google Reviews? Check out our other free business
|
|
74 |
|
75 |
== Changelog ==
|
76 |
|
|
|
|
|
|
|
|
|
77 |
= 1.5.4 =
|
78 |
-
* Bugfix: badge available for old
|
79 |
|
80 |
= 1.5.3 =
|
81 |
* Bugfix: set charset collate for plugin's tables
|
1 |
=== Google Reviews Widget ===
|
2 |
Contributors: richplugins
|
3 |
Donate link: https://richplugins.com/google-reviews-pro-wordpress-plugin
|
4 |
+
Tags: google, reviews, google reviews, google places, google places reviews, testimonials, google review widget, google business reviews, slider, google review, review, google place review, google map reviews, google reviews pro, facebook reviews, facebook page reviews, yelp reviews, yelp business reviews
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 4.7
|
7 |
+
Stable tag: 1.5.5
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
+
`To get more features we have <a href="https://richplugins.com/google-reviews-pro-wordpress-plugin">Business version</a> of plugin`
|
16 |
|
17 |
+
This plugin display Google Business Reviews on your websites in sidebar widget. A unique feature of the plugin is that it saves all reviews in WordPress database and have no depend on any services like Google to show reviews in the widget.
|
18 |
|
19 |
[youtube https://www.youtube.com/watch?v=YccWFCkz6H4]
|
20 |
|
40 |
|
41 |
* Trying to get more than 5 Google reviews
|
42 |
* Google Rich Snippets (schema.org)
|
43 |
+
* Support shortcode, powerful <b>Shortcode Builder</b>
|
44 |
+
* Slider/Grid themes to show G+ reviews in testimonials section
|
45 |
+
* Google Trust Badge (right/left fixed or embed)
|
|
|
46 |
* 'Write a review' button to available leave Google review directly on your website
|
47 |
* Trim long reviews with "read more" link
|
48 |
* Show/hide business photo and avatars
|
73 |
|
74 |
== Changelog ==
|
75 |
|
76 |
+
= 1.5.5 =
|
77 |
+
* Update description
|
78 |
+
* Bugfix: use default json_encode if it's possible
|
79 |
+
|
80 |
= 1.5.4 =
|
81 |
+
* Bugfix: badge, available for old versions, not clickable
|
82 |
|
83 |
= 1.5.3 =
|
84 |
* Bugfix: set charset collate for plugin's tables
|