Google Reviews Widget - Version 1.8.3

Version Description

  • Improve: added new locale sk_SK
  • Improve: added new locale de_AT
  • Improve: update installation video, readme and screenshots
  • Bugfix: Yoast XML plugin makes 'Class not found' error
Download this release

Release Info

Developer widgetpack
Plugin Icon 128x128 Google Reviews Widget
Version 1.8.3
Comparing to
See all releases

Code changes from version 1.8.2 to 1.8.3

grw-options.php CHANGED
@@ -137,6 +137,4 @@
137
  <?php echo grw_i('Upgrade to Business'); ?>
138
  </a>
139
  </div>
140
- </div>
141
-
142
- <input id="<?php echo $this->get_field_id('view_mode'); ?>" name="<?php echo $this->get_field_name('view_mode'); ?>" type="hidden" value="list" />
137
  <?php echo grw_i('Upgrade to Business'); ?>
138
  </a>
139
  </div>
140
+ </div>
 
 
grw-reviews.php CHANGED
@@ -49,7 +49,22 @@ if ($refresh_reviews) {
49
  }
50
  }
51
 
52
- if ($view_mode != 'list') { ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
53
 
54
  <div class="wp-gr wpac">
55
  <script type="text/javascript">
@@ -98,18 +113,4 @@ if ($view_mode != 'list') { ?>
98
  <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" alt="" onload="(function(el) { document.addEventListener('DOMContentLoaded', function() { grw_badge_init(el); }); })(this.parentNode);" style="display:none">
99
  </div>
100
 
101
- <?php } else { ?>
102
-
103
- <div class="wp-gr wpac" style="<?php if (isset($max_width) && strlen($max_width) > 0) { ?>width:<?php echo $max_width;?>!important;<?php } ?><?php if (isset($max_height) && strlen($max_height) > 0) { ?>height:<?php echo $max_height;?>!important;overflow-y:auto!important;<?php } ?><?php if ($centered) { ?>margin:0 auto!important;<?php } ?>">
104
- <div class="wp-google-list<?php if ($dark_theme) { ?> wp-dark<?php } ?>">
105
- <div class="wp-google-place">
106
- <?php grw_place($rating, $place, $place_img, $reviews, $dark_theme, $hide_based_on); ?>
107
- </div>
108
- <?php if (!$hide_reviews) { ?>
109
- <div class="wp-google-content-inner">
110
- <?php grw_place_reviews($place, $reviews, $place_id, $text_size, $pagination, $reduce_avatars_size, $open_link, $nofollow_link, $lazy_load_img, $def_reviews_link); ?>
111
- </div>
112
- <?php } ?>
113
- </div>
114
- </div>
115
  <?php } ?>
49
  }
50
  }
51
 
52
+ if ($view_mode == 'list' || $view_mode == '') { ?>
53
+
54
+ <div class="wp-gr wpac" style="<?php if (isset($max_width) && strlen($max_width) > 0) { ?>width:<?php echo $max_width;?>!important;<?php } ?><?php if (isset($max_height) && strlen($max_height) > 0) { ?>height:<?php echo $max_height;?>!important;overflow-y:auto!important;<?php } ?><?php if ($centered) { ?>margin:0 auto!important;<?php } ?>">
55
+ <div class="wp-google-list<?php if ($dark_theme) { ?> wp-dark<?php } ?>">
56
+ <div class="wp-google-place">
57
+ <?php grw_place($rating, $place, $place_img, $reviews, $dark_theme, $hide_based_on); ?>
58
+ </div>
59
+ <?php if (!$hide_reviews) { ?>
60
+ <div class="wp-google-content-inner">
61
+ <?php grw_place_reviews($place, $reviews, $place_id, $text_size, $pagination, $reduce_avatars_size, $open_link, $nofollow_link, $lazy_load_img, $def_reviews_link); ?>
62
+ </div>
63
+ <?php } ?>
64
+ </div>
65
+ </div>
66
+
67
+ <?php } else { ?>
68
 
69
  <div class="wp-gr wpac">
70
  <script type="text/javascript">
113
  <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" alt="" onload="(function(el) { document.addEventListener('DOMContentLoaded', function() { grw_badge_init(el); }); })(this.parentNode);" style="display:none">
114
  </div>
115
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
116
  <?php } ?>
grw-setting.php CHANGED
@@ -199,7 +199,7 @@ $grw_google_api_key = get_option('grw_google_api_key');
199
  </div>
200
  </div>
201
  <div class="rplg-flex-col">
202
- <iframe width="100%" height="315" src="https://www.youtube.com/embed/lmaTBmvDPKk" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
203
  </div>
204
  </div>
205
  </div>
199
  </div>
200
  </div>
201
  <div class="rplg-flex-col">
202
+ <iframe width="100%" height="315" src="https://www.youtube.com/embed/KhcDgjxYrNs" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
203
  </div>
204
  </div>
205
  </div>
grw.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Google Reviews Widget
4
  Plugin URI: https://richplugins.com/business-reviews-bundle-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.8.2
8
  Author URI: https://richplugins.com
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.8.2');
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/s50-c/114307615494839964028.jpg');
19
  define('GRW_PLUGIN_URL', plugins_url(basename(plugin_dir_path(__FILE__ )), basename(__FILE__)));
@@ -229,6 +229,7 @@ function grw_shortcode($atts) {
229
  global $wpdb;
230
 
231
  if (!grw_enabled()) return '';
 
232
 
233
  $shortcode_atts = array();
234
  foreach (Goog_Reviews_Widget::$widget_fields as $field => $value) {
4
  Plugin URI: https://richplugins.com/business-reviews-bundle-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.8.3
8
  Author URI: https://richplugins.com
9
  */
10
 
13
  include_once(dirname(__FILE__) . '/api/urlopen.php');
14
  include_once(dirname(__FILE__) . '/helper/debug.php');
15
 
16
+ define('GRW_VERSION', '1.8.3');
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/s50-c/114307615494839964028.jpg');
19
  define('GRW_PLUGIN_URL', plugins_url(basename(plugin_dir_path(__FILE__ )), basename(__FILE__)));
229
  global $wpdb;
230
 
231
  if (!grw_enabled()) return '';
232
+ if (!class_exists('Goog_Reviews_Widget')) return '';
233
 
234
  $shortcode_atts = array();
235
  foreach (Goog_Reviews_Widget::$widget_fields as $field => $value) {
languages/grw-de_AT.mo ADDED
Binary file
languages/grw-de_AT.po ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Language: de_AT\n"
4
+ "MIME-Version: 1.0\n"
5
+ "Content-Type: text/plain; charset=UTF-8\n"
6
+ "Content-Transfer-Encoding: 8bit\n"
7
+ "X-Generator: Poedit 2.2\n"
8
+ "Project-Id-Version: \n"
9
+ "POT-Creation-Date: \n"
10
+ "PO-Revision-Date: \n"
11
+ "Last-Translator: \n"
12
+ "Language-Team: \n"
13
+
14
+ msgid "Google Rating"
15
+ msgstr "Google Bewertung"
16
+
17
+ msgid "See All Reviews"
18
+ msgstr "Alle Rezensionen anzeigen"
19
+
20
+ msgid "Google User"
21
+ msgstr "Google Benutzer"
22
+
23
+ msgid "read more"
24
+ msgstr "mehr"
25
+
26
+ msgid "Next Reviews"
27
+ msgstr "Nächste Bewertungen"
languages/grw-sk_SK.mo ADDED
Binary file
languages/grw-sk_SK.po ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Language: sk_SK\n"
4
+ "MIME-Version: 1.0\n"
5
+ "Content-Type: text/plain; charset=UTF-8\n"
6
+ "Content-Transfer-Encoding: 8bit\n"
7
+ "X-Generator: Poedit 2.2\n"
8
+ "Project-Id-Version: \n"
9
+ "POT-Creation-Date: \n"
10
+ "PO-Revision-Date: \n"
11
+ "Last-Translator: \n"
12
+ "Language-Team: \n"
13
+
14
+ msgid "Google Rating"
15
+ msgstr "Google hodnotenie"
16
+
17
+ msgid "See All Reviews"
18
+ msgstr "Zobraziť všetky recenzie"
19
+
20
+ msgid "Google User"
21
+ msgstr "Google užívateľ"
22
+
23
+ msgid "read more"
24
+ msgstr "celá recenzia"
25
+
26
+ msgid "Next Reviews"
27
+ msgstr "Ďalšia recenzia"
28
+
29
+ msgid "Write a review"
30
+ msgstr "Napísať recenziu"
31
+
32
+ msgid "Based on %s reviews"
33
+ msgstr "Na základe %s recenzií"
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://richplugins.com/business-reviews-bundle-wordpress-plugin
4
  Tags: Google, reviews, widget, testimonials, Google Places reviews
5
  Requires at least: 2.8
6
  Tested up to: 5.3
7
- Stable tag: 1.8.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -16,7 +16,7 @@ Google reviews widget and shortcode! Shows Google reviews on your WordPress webs
16
 
17
  This plugin display Google Business Reviews on your websites in sidebar widget. A unique feature of the plugin is that it saves 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
 
21
  [Online demo](https://richplugins.com/demos/)
22
 
@@ -24,10 +24,11 @@ This plugin display Google Business Reviews on your websites in sidebar widget.
24
 
25
  * Free!
26
  * SEO
27
- * Refresh reviews
28
  * Shortcode support!
 
 
29
  * Trim long reviews with "read more" link
30
- * Support page builders: Elementor, Page Origin, Beaver Builder, WPBakery, Divi
31
  * Displays up to 5 Google business reviews per location
32
  * Keep all reviews in WordPress database
33
  * Shows real reviews from G+ users to increase user confidence
@@ -52,7 +53,7 @@ This plugin display Google Business Reviews on your websites in sidebar widget.
52
  * Google Trust Badge (right/left fixed or embedded)
53
  * 'Write a review' button to available leave Google review directly on your website
54
  * Show/hide any elements (business, reviews, avatars, names, time and etc)
55
- * Any Sorting: recent, oldest, rating, striped
56
  * Include/Exclude words filter
57
  * Minimum rating filter
58
  * Priority support
@@ -71,12 +72,19 @@ Why limit your reviews to just Google Reviews? Check out our other free reviews
71
 
72
  == Screenshots ==
73
 
74
- 1. Google Reviews widget
75
- 2. Google Reviews badge
76
- 3. Google Reviews sidebar
 
77
 
78
  == Changelog ==
79
 
 
 
 
 
 
 
80
  = 1.8.2 =
81
  * Improve: added 'Based on ... reviews' feature
82
  * Improve: added hide reviews option
4
  Tags: Google, reviews, widget, testimonials, Google Places reviews
5
  Requires at least: 2.8
6
  Tested up to: 5.3
7
+ Stable tag: 1.8.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
16
 
17
  This plugin display Google Business Reviews on your websites in sidebar widget. A unique feature of the plugin is that it saves 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=KhcDgjxYrNs]
20
 
21
  [Online demo](https://richplugins.com/demos/)
22
 
24
 
25
  * Free!
26
  * SEO
 
27
  * Shortcode support!
28
+ * Auto refresh reviews
29
+ * Shows "Based on ... reviews" section
30
  * Trim long reviews with "read more" link
31
+ * Support any page builder: Gutenberg, Elementor, Page Origin, Beaver Builder, WPBakery, Divi
32
  * Displays up to 5 Google business reviews per location
33
  * Keep all reviews in WordPress database
34
  * Shows real reviews from G+ users to increase user confidence
53
  * Google Trust Badge (right/left fixed or embedded)
54
  * 'Write a review' button to available leave Google review directly on your website
55
  * Show/hide any elements (business, reviews, avatars, names, time and etc)
56
+ * Any Sorting: recent, oldest, rating, striped, random
57
  * Include/Exclude words filter
58
  * Minimum rating filter
59
  * Priority support
72
 
73
  == Screenshots ==
74
 
75
+ 1. Google Reviews shortcode
76
+ 2. Google Reviews widget
77
+ 3. Google Reviews shortcode builder
78
+ 4. Google Reviews sidebar widget
79
 
80
  == Changelog ==
81
 
82
+ = 1.8.3 =
83
+ * Improve: added new locale sk_SK
84
+ * Improve: added new locale de_AT
85
+ * Improve: update installation video, readme and screenshots
86
+ * Bugfix: Yoast XML plugin makes 'Class not found' error
87
+
88
  = 1.8.2 =
89
  * Improve: added 'Based on ... reviews' feature
90
  * Improve: added hide reviews option
static/js/wpac-time.js CHANGED
@@ -42,4 +42,5 @@ year:"\u00e9vvel ezel\u0151tt",years:function(a){return Math.round(a)+" \u00e9vv
42
  " vuotta sitten"}},he:{second:"\u05d4\u05e8\u05d2\u05e2",minute:"\u05dc\u05e4\u05e0\u05d9 \u05d3\u05e7\u05d4",minutes:function(a){return"\u05dc\u05e4\u05e0\u05d9 "+Math.round(a)+" \u05d3\u05e7\u05d5\u05ea"},hour:"\u05dc\u05e4\u05e0\u05d9 \u05e9\u05e2\u05d4",hours:function(a){return"\u05dc\u05e4\u05e0\u05d9 "+Math.round(a)+" \u05e9\u05e2\u05d5\u05ea"},day:"\u05dc\u05e4\u05e0\u05d9 \u05d9\u05d5\u05dd",days:function(a){return"\u05dc\u05e4\u05e0\u05d9 "+Math.round(a)+" \u05d9\u05de\u05d9\u05dd"},month:"\u05dc\u05e4\u05e0\u05d9 \u05d7\u05d5\u05d3\u05e9",
43
  months:function(a){return 2==Math.round(a/30)?"\u05dc\u05e4\u05e0\u05d9 \u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":"\u05dc\u05e4\u05e0\u05d9 "+Math.round(a/30)+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},year:"\u05dc\u05e4\u05e0\u05d9 \u05e9\u05e0\u05d4",years:function(a){return"\u05dc\u05e4\u05e0\u05d9 "+Math.round(a)+" \u05e9\u05e0\u05d9\u05dd"}},bg:{second:"\u0432 \u043c\u043e\u043c\u0435\u043d\u0442\u0430",minute:"\u043f\u0440\u0435\u0434\u0438 1 \u043c\u0438\u043d\u0443\u0442\u0430",minutes:function(a){return"\u043f\u0440\u0435\u0434\u0438 "+
44
  Math.round(a)+" \u043c\u0438\u043d\u0443\u0442\u0438"},hour:"\u043f\u0440\u0435\u0434\u0438 1 \u0447\u0430\u0441",hours:function(a){return"\u043f\u0440\u0435\u0434\u0438 "+Math.round(a)+" \u0447\u0430\u0441\u0430"},day:"\u043f\u0440\u0435\u0434\u0438 1 \u0434\u0435\u043d",days:function(a){return"\u043f\u0440\u0435\u0434\u0438 "+Math.round(a)+" \u0434\u043d\u0438"},month:"\u043f\u0440\u0435\u0434\u0438 1 \u043c\u0435\u0441\u0435\u0446",months:function(a){return"\u043f\u0440\u0435\u0434\u0438 "+Math.round(a/
45
- 30)+" \u043c\u0435\u0441\u0435\u0446\u0430"},year:"\u043f\u0440\u0435\u0434\u0438 1 \u0433\u043e\u0434\u0438\u043d\u0430",years:function(a){return"\u043f\u0440\u0435\u0434\u0438 "+Math.round(a)+" \u0433\u043e\u0434\u0438\u043d\u0438"}}};
 
42
  " vuotta sitten"}},he:{second:"\u05d4\u05e8\u05d2\u05e2",minute:"\u05dc\u05e4\u05e0\u05d9 \u05d3\u05e7\u05d4",minutes:function(a){return"\u05dc\u05e4\u05e0\u05d9 "+Math.round(a)+" \u05d3\u05e7\u05d5\u05ea"},hour:"\u05dc\u05e4\u05e0\u05d9 \u05e9\u05e2\u05d4",hours:function(a){return"\u05dc\u05e4\u05e0\u05d9 "+Math.round(a)+" \u05e9\u05e2\u05d5\u05ea"},day:"\u05dc\u05e4\u05e0\u05d9 \u05d9\u05d5\u05dd",days:function(a){return"\u05dc\u05e4\u05e0\u05d9 "+Math.round(a)+" \u05d9\u05de\u05d9\u05dd"},month:"\u05dc\u05e4\u05e0\u05d9 \u05d7\u05d5\u05d3\u05e9",
43
  months:function(a){return 2==Math.round(a/30)?"\u05dc\u05e4\u05e0\u05d9 \u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":"\u05dc\u05e4\u05e0\u05d9 "+Math.round(a/30)+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},year:"\u05dc\u05e4\u05e0\u05d9 \u05e9\u05e0\u05d4",years:function(a){return"\u05dc\u05e4\u05e0\u05d9 "+Math.round(a)+" \u05e9\u05e0\u05d9\u05dd"}},bg:{second:"\u0432 \u043c\u043e\u043c\u0435\u043d\u0442\u0430",minute:"\u043f\u0440\u0435\u0434\u0438 1 \u043c\u0438\u043d\u0443\u0442\u0430",minutes:function(a){return"\u043f\u0440\u0435\u0434\u0438 "+
44
  Math.round(a)+" \u043c\u0438\u043d\u0443\u0442\u0438"},hour:"\u043f\u0440\u0435\u0434\u0438 1 \u0447\u0430\u0441",hours:function(a){return"\u043f\u0440\u0435\u0434\u0438 "+Math.round(a)+" \u0447\u0430\u0441\u0430"},day:"\u043f\u0440\u0435\u0434\u0438 1 \u0434\u0435\u043d",days:function(a){return"\u043f\u0440\u0435\u0434\u0438 "+Math.round(a)+" \u0434\u043d\u0438"},month:"\u043f\u0440\u0435\u0434\u0438 1 \u043c\u0435\u0441\u0435\u0446",months:function(a){return"\u043f\u0440\u0435\u0434\u0438 "+Math.round(a/
45
+ 30)+" \u043c\u0435\u0441\u0435\u0446\u0430"},year:"\u043f\u0440\u0435\u0434\u0438 1 \u0433\u043e\u0434\u0438\u043d\u0430",years:function(a){return"\u043f\u0440\u0435\u0434\u0438 "+Math.round(a)+" \u0433\u043e\u0434\u0438\u043d\u0438"}},sk:{second:"pr\u00e1ve teraz",minute:"pred min\u00fatov",minutes:function(a){return"pred "+Math.round(a)+" min\u00fatami"},hour:"pred hodinou",hours:function(a){return"pred "+Math.round(a)+" hodinami"},day:"v\u010dera",days:function(a){return"pred "+Math.round(a)+" d\u0148ami"},
46
+ month:"pred mesiacom",months:function(a){return"pred "+Math.round(a/30)+" mesiacmi"},year:"pred rokom",years:function(a){return"pred "+Math.round(a)+" rokmi"}}};