Google Reviews Widget - Version 1.6.1

Version Description

  • Improve: support of SiteOrigin builder
  • Bugfix: fix css classes for the setting page
Download this release

Release Info

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

Code changes from version 1.6 to 1.6.1

Files changed (4) hide show
  1. grw-setting.php +17 -5
  2. grw-widget.php +1 -1
  3. grw.php +2 -2
  4. readme.txt +5 -1
grw-setting.php CHANGED
@@ -139,16 +139,13 @@ wp_enqueue_style('rplg_setting_css', plugins_url('/static/css/rplg-setting.css',
139
 
140
  wp_enqueue_script('jquery');
141
 
142
- wp_register_script('twitter_bootstrap3_js', plugins_url('/static/js/bootstrap.min.js', __FILE__));
143
- wp_enqueue_script('twitter_bootstrap3_js', plugins_url('/static/js/bootstrap.min.js', __FILE__));
144
-
145
  $grw_enabled = get_option('grw_active') == '1';
146
  $grw_google_api_key = get_option('grw_google_api_key');
147
  $grw_language = get_option('grw_language');
148
  ?>
149
 
150
- <span class="version"><?php echo grw_i('Free Version: %s', esc_html(GRW_VERSION)); ?></span>
151
- <div class="grw-setting container-fluid">
152
  <img src="<?php echo GRW_PLUGIN_URL . '/static/img/google.png'; ?>" alt="Google">
153
  <ul class="nav nav-tabs" role="tablist">
154
  <li role="presentation"<?php if (!$grw_setting_page) { ?> class="active"<?php } ?>>
@@ -381,3 +378,18 @@ $grw_language = get_option('grw_language');
381
  </div>
382
  </div>
383
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
139
 
140
  wp_enqueue_script('jquery');
141
 
 
 
 
142
  $grw_enabled = get_option('grw_active') == '1';
143
  $grw_google_api_key = get_option('grw_google_api_key');
144
  $grw_language = get_option('grw_language');
145
  ?>
146
 
147
+ <span class="rplg-version"><?php echo grw_i('Free Version: %s', esc_html(GRW_VERSION)); ?></span>
148
+ <div class="rplg-setting container-fluid">
149
  <img src="<?php echo GRW_PLUGIN_URL . '/static/img/google.png'; ?>" alt="Google">
150
  <ul class="nav nav-tabs" role="tablist">
151
  <li role="presentation"<?php if (!$grw_setting_page) { ?> class="active"<?php } ?>>
378
  </div>
379
  </div>
380
  </div>
381
+ <script type="text/javascript">
382
+ jQuery(document).ready(function($) {
383
+ $('a[data-toggle="tab"]').on('click', function(e) {
384
+ var active = $(this).attr('href');
385
+ $('.tab-content ' + active).addClass('active').show().siblings().hide();
386
+ $(this).parent('li').addClass('active').siblings().removeClass('active');
387
+ e.preventDefault();
388
+ });
389
+ $('button[data-toggle="collapse"]').click(function () {
390
+ $target = $(this);
391
+ $collapse = $target.next();
392
+ $collapse.slideToggle(500);
393
+ });
394
+ });
395
+ </script>
grw-widget.php CHANGED
@@ -49,7 +49,7 @@ class Goog_Reviews_Widget extends WP_Widget {
49
  }
50
 
51
  function grw_widget_scripts($hook) {
52
- if ($hook == 'widgets.php' || ($hook == 'customize.php' && defined('SITEORIGIN_PANELS_VERSION'))) {
53
 
54
  wp_register_style('rplg_wp_css', plugins_url('/static/css/rplg-wp.css', __FILE__));
55
  wp_enqueue_style('rplg_wp_css', plugins_url('/static/css/rplg-wp.css', __FILE__));
49
  }
50
 
51
  function grw_widget_scripts($hook) {
52
+ if ($hook == 'widgets.php' || ($hook == 'post.php' && defined('SITEORIGIN_PANELS_VERSION'))) {
53
 
54
  wp_register_style('rplg_wp_css', plugins_url('/static/css/rplg-wp.css', __FILE__));
55
  wp_enqueue_style('rplg_wp_css', plugins_url('/static/css/rplg-wp.css', __FILE__));
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.6
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.6');
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__)));
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.6.1
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.6.1');
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__)));
readme.txt CHANGED
@@ -4,7 +4,7 @@ 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.9
7
- Stable tag: 1.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -73,6 +73,10 @@ Why limit your reviews to just Google Reviews? Check out our other free business
73
 
74
  == Changelog ==
75
 
 
 
 
 
76
  = 1.6 =
77
  * Feature: Added pagination
78
  * Feature: Get business photo for place
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.9
7
+ Stable tag: 1.6.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
73
 
74
  == Changelog ==
75
 
76
+ = 1.6.1 =
77
+ * Improve: support of SiteOrigin builder
78
+ * Bugfix: fix css classes for the setting page
79
+
80
  = 1.6 =
81
  * Feature: Added pagination
82
  * Feature: Get business photo for place