Google Reviews Widget - Version 1.7.5

Version Description

  • Update to WordPress 5.2
  • Bugfix: conflict with a Bootstrap css in the widget
Download this release

Release Info

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

Code changes from version 1.7.4 to 1.7.5

Files changed (4) hide show
  1. grw-finder.php +61 -67
  2. grw-options.php +52 -84
  3. grw.php +2 -2
  4. readme.txt +6 -2
grw-finder.php CHANGED
@@ -1,75 +1,69 @@
1
  <div class="form-group">
2
- <div class="col-sm-12">
3
- <h4><?php echo grw_i('Enter Place ID of your Google location. If you don\'t know this, you can simply find it by <a href="https://www.launch2success.com/guide/find-any-google-id/" target="_blank">this instruction</a>.'); ?></h4>
4
- <input type="text" class="grw-place-id form-control" value="" placeholder="Place ID" />
5
- <small class="grw-error"></small>
6
- </div>
7
  </div>
8
 
9
  <div class="form-group">
10
- <div class="col-sm-12">
11
- <select class="grw-lang form-control">
12
- <option value=""><?php echo grw_i('Language disable'); ?></option>
13
- <option value="ar"><?php echo grw_i('Arabic'); ?></option>
14
- <option value="bg"><?php echo grw_i('Bulgarian'); ?></option>
15
- <option value="bn"><?php echo grw_i('Bengali'); ?></option>
16
- <option value="ca"><?php echo grw_i('Catalan'); ?></option>
17
- <option value="cs"><?php echo grw_i('Czech'); ?></option>
18
- <option value="da"><?php echo grw_i('Danish'); ?></option>
19
- <option value="de"><?php echo grw_i('German'); ?></option>
20
- <option value="el"><?php echo grw_i('Greek'); ?></option>
21
- <option value="en"><?php echo grw_i('English'); ?></option>
22
- <!--option value="en-AU"><?php echo grw_i('English (Australian)'); ?></option>
23
- <option value="en-GB"><?php echo grw_i('English (Great Britain)'); ?></option-->
24
- <option value="es"><?php echo grw_i('Spanish'); ?></option>
25
- <option value="eu"><?php echo grw_i('Basque'); ?></option>
26
- <option value="eu"><?php echo grw_i('Basque'); ?></option>
27
- <option value="fa"><?php echo grw_i('Farsi'); ?></option>
28
- <option value="fi"><?php echo grw_i('Finnish'); ?></option>
29
- <option value="fil"><?php echo grw_i('Filipino'); ?></option>
30
- <option value="fr"><?php echo grw_i('French'); ?></option>
31
- <option value="gl"><?php echo grw_i('Galician'); ?></option>
32
- <option value="gu"><?php echo grw_i('Gujarati'); ?></option>
33
- <option value="hi"><?php echo grw_i('Hindi'); ?></option>
34
- <option value="hr"><?php echo grw_i('Croatian'); ?></option>
35
- <option value="hu"><?php echo grw_i('Hungarian'); ?></option>
36
- <option value="id"><?php echo grw_i('Indonesian'); ?></option>
37
- <option value="it"><?php echo grw_i('Italian'); ?></option>
38
- <option value="iw"><?php echo grw_i('Hebrew'); ?></option>
39
- <option value="ja"><?php echo grw_i('Japanese'); ?></option>
40
- <option value="kn"><?php echo grw_i('Kannada'); ?></option>
41
- <option value="ko"><?php echo grw_i('Korean'); ?></option>
42
- <option value="lt"><?php echo grw_i('Lithuanian'); ?></option>
43
- <option value="lv"><?php echo grw_i('Latvian'); ?></option>
44
- <option value="ml"><?php echo grw_i('Malayalam'); ?></option>
45
- <option value="mr"><?php echo grw_i('Marathi'); ?></option>
46
- <option value="nl"><?php echo grw_i('Dutch'); ?></option>
47
- <option value="no"><?php echo grw_i('Norwegian'); ?></option>
48
- <option value="pl"><?php echo grw_i('Polish'); ?></option>
49
- <option value="pt"><?php echo grw_i('Portuguese'); ?></option>
50
- <option value="pt-BR"><?php echo grw_i('Portuguese (Brazil)'); ?></option>
51
- <option value="pt-PT"><?php echo grw_i('Portuguese (Portugal)'); ?></option>
52
- <option value="ro"><?php echo grw_i('Romanian'); ?></option>
53
- <option value="ru"><?php echo grw_i('Russian'); ?></option>
54
- <option value="sk"><?php echo grw_i('Slovak'); ?></option>
55
- <option value="sl"><?php echo grw_i('Slovenian'); ?></option>
56
- <option value="sr"><?php echo grw_i('Serbian'); ?></option>
57
- <option value="sv"><?php echo grw_i('Swedish'); ?></option>
58
- <option value="ta"><?php echo grw_i('Tamil'); ?></option>
59
- <option value="te"><?php echo grw_i('Telugu'); ?></option>
60
- <option value="th"><?php echo grw_i('Thai'); ?></option>
61
- <option value="tl"><?php echo grw_i('Tagalog'); ?></option>
62
- <option value="tr"><?php echo grw_i('Turkish'); ?></option>
63
- <option value="uk"><?php echo grw_i('Ukrainian'); ?></option>
64
- <option value="vi"><?php echo grw_i('Vietnamese'); ?></option>
65
- <option value="zh-CN"><?php echo grw_i('Chinese (Simplified)'); ?></option>
66
- <option value="zh-TW"><?php echo grw_i('Chinese (Traditional)'); ?></option>
67
- </select>
68
- </div>
69
  </div>
70
 
71
  <div class="form-group">
72
- <div class="col-sm-12">
73
- <button class="grw-connect-btn btn btn-block btn-primary"><?php echo grw_i('Connect Google'); ?></button>
74
- </div>
75
  </div>
1
  <div class="form-group">
2
+ <h4><?php echo grw_i('Enter Place ID of your Google location. If you don\'t know this, you can simply find it by <a href="https://www.launch2success.com/guide/find-any-google-id/" target="_blank">this instruction</a>.'); ?></h4>
3
+ <input type="text" class="grw-place-id" value="" placeholder="Place ID" />
4
+ <small class="grw-error"></small>
 
 
5
  </div>
6
 
7
  <div class="form-group">
8
+ <select class="grw-lang">
9
+ <option value=""><?php echo grw_i('Language disable'); ?></option>
10
+ <option value="ar"><?php echo grw_i('Arabic'); ?></option>
11
+ <option value="bg"><?php echo grw_i('Bulgarian'); ?></option>
12
+ <option value="bn"><?php echo grw_i('Bengali'); ?></option>
13
+ <option value="ca"><?php echo grw_i('Catalan'); ?></option>
14
+ <option value="cs"><?php echo grw_i('Czech'); ?></option>
15
+ <option value="da"><?php echo grw_i('Danish'); ?></option>
16
+ <option value="de"><?php echo grw_i('German'); ?></option>
17
+ <option value="el"><?php echo grw_i('Greek'); ?></option>
18
+ <option value="en"><?php echo grw_i('English'); ?></option>
19
+ <!--option value="en-AU"><?php echo grw_i('English (Australian)'); ?></option>
20
+ <option value="en-GB"><?php echo grw_i('English (Great Britain)'); ?></option-->
21
+ <option value="es"><?php echo grw_i('Spanish'); ?></option>
22
+ <option value="eu"><?php echo grw_i('Basque'); ?></option>
23
+ <option value="eu"><?php echo grw_i('Basque'); ?></option>
24
+ <option value="fa"><?php echo grw_i('Farsi'); ?></option>
25
+ <option value="fi"><?php echo grw_i('Finnish'); ?></option>
26
+ <option value="fil"><?php echo grw_i('Filipino'); ?></option>
27
+ <option value="fr"><?php echo grw_i('French'); ?></option>
28
+ <option value="gl"><?php echo grw_i('Galician'); ?></option>
29
+ <option value="gu"><?php echo grw_i('Gujarati'); ?></option>
30
+ <option value="hi"><?php echo grw_i('Hindi'); ?></option>
31
+ <option value="hr"><?php echo grw_i('Croatian'); ?></option>
32
+ <option value="hu"><?php echo grw_i('Hungarian'); ?></option>
33
+ <option value="id"><?php echo grw_i('Indonesian'); ?></option>
34
+ <option value="it"><?php echo grw_i('Italian'); ?></option>
35
+ <option value="iw"><?php echo grw_i('Hebrew'); ?></option>
36
+ <option value="ja"><?php echo grw_i('Japanese'); ?></option>
37
+ <option value="kn"><?php echo grw_i('Kannada'); ?></option>
38
+ <option value="ko"><?php echo grw_i('Korean'); ?></option>
39
+ <option value="lt"><?php echo grw_i('Lithuanian'); ?></option>
40
+ <option value="lv"><?php echo grw_i('Latvian'); ?></option>
41
+ <option value="ml"><?php echo grw_i('Malayalam'); ?></option>
42
+ <option value="mr"><?php echo grw_i('Marathi'); ?></option>
43
+ <option value="nl"><?php echo grw_i('Dutch'); ?></option>
44
+ <option value="no"><?php echo grw_i('Norwegian'); ?></option>
45
+ <option value="pl"><?php echo grw_i('Polish'); ?></option>
46
+ <option value="pt"><?php echo grw_i('Portuguese'); ?></option>
47
+ <option value="pt-BR"><?php echo grw_i('Portuguese (Brazil)'); ?></option>
48
+ <option value="pt-PT"><?php echo grw_i('Portuguese (Portugal)'); ?></option>
49
+ <option value="ro"><?php echo grw_i('Romanian'); ?></option>
50
+ <option value="ru"><?php echo grw_i('Russian'); ?></option>
51
+ <option value="sk"><?php echo grw_i('Slovak'); ?></option>
52
+ <option value="sl"><?php echo grw_i('Slovenian'); ?></option>
53
+ <option value="sr"><?php echo grw_i('Serbian'); ?></option>
54
+ <option value="sv"><?php echo grw_i('Swedish'); ?></option>
55
+ <option value="ta"><?php echo grw_i('Tamil'); ?></option>
56
+ <option value="te"><?php echo grw_i('Telugu'); ?></option>
57
+ <option value="th"><?php echo grw_i('Thai'); ?></option>
58
+ <option value="tl"><?php echo grw_i('Tagalog'); ?></option>
59
+ <option value="tr"><?php echo grw_i('Turkish'); ?></option>
60
+ <option value="uk"><?php echo grw_i('Ukrainian'); ?></option>
61
+ <option value="vi"><?php echo grw_i('Vietnamese'); ?></option>
62
+ <option value="zh-CN"><?php echo grw_i('Chinese (Simplified)'); ?></option>
63
+ <option value="zh-TW"><?php echo grw_i('Chinese (Traditional)'); ?></option>
64
+ </select>
 
 
65
  </div>
66
 
67
  <div class="form-group">
68
+ <button class="grw-connect-btn btn btn-block btn-primary"><?php echo grw_i('Connect Google'); ?></button>
 
 
69
  </div>
grw-options.php CHANGED
@@ -1,137 +1,105 @@
1
  <?php global $wp_version; if (version_compare($wp_version, '3.5', '>=')) { wp_enqueue_media(); ?>
2
  <div class="form-group">
3
- <div class="col-sm-12">
4
- <img id="<?php echo $this->get_field_id('place_photo_img'); ?>" src="<?php echo $place_photo; ?>" alt="<?php echo $place_name; ?>" class="grw-place-photo-img" style="display:<?php if ($place_photo) { ?>inline-block<?php } else { ?>none<?php } ?>;width:32px;height:32px;border-radius:50%;">
5
- <a id="<?php echo $this->get_field_id('place_photo_btn'); ?>" href="#" class="grw-place-photo-btn"><?php echo grw_i('Change Place photo'); ?></a>
6
- <input type="hidden" id="<?php echo $this->get_field_id('place_photo'); ?>" name="<?php echo $this->get_field_name('place_photo'); ?>" value="<?php echo $place_photo; ?>" class="form-control grw-place-photo" tabindex="2"/>
7
- </div>
8
  </div>
9
  <?php } ?>
10
 
11
  <div class="form-group">
12
- <div class="col-sm-12">
13
- <input type="text" id="<?php echo $this->get_field_id('place_name'); ?>" name="<?php echo $this->get_field_name('place_name'); ?>" value="<?php echo $place_name; ?>" class="form-control grw-google-place-name" placeholder="<?php echo grw_i('Google Place Name'); ?>" readonly />
14
- </div>
15
  </div>
16
 
17
  <div class="form-group">
18
- <div class="col-sm-12">
19
- <input type="text" id="<?php echo $this->get_field_id('place_id'); ?>" name="<?php echo $this->get_field_name('place_id'); ?>" value="<?php echo $place_id; ?>" class="form-control grw-google-place-id" placeholder="<?php echo grw_i('Google Place ID'); ?>" readonly />
20
- </div>
21
  </div>
22
 
23
  <div class="form-group">
24
- <div class="col-sm-12">
25
- <input type="text" id="<?php echo $this->get_field_id('reviews_lang'); ?>" name="<?php echo $this->get_field_name('reviews_lang'); ?>" value="<?php echo $reviews_lang; ?>" class="form-control grw-place-lang" placeholder="<?php echo grw_i('Language'); ?>" readonly />
26
- </div>
27
  </div>
28
 
29
  <?php if (isset($title)) { ?>
30
  <div class="form-group">
31
- <div class="col-sm-12">
32
- <label><?php echo grw_i('Title'); ?></label>
33
- <input type="text" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" value="<?php echo $title; ?>" class="form-control" />
34
- </div>
35
  </div>
36
  <?php } ?>
37
 
38
  <div class="form-group">
39
- <div class="col-sm-12">
40
- <label><?php echo grw_i('Pagination'); ?></label>
41
- <input type="text" id="<?php echo $this->get_field_id('pagination'); ?>" name="<?php echo $this->get_field_name('pagination'); ?>" value="<?php echo $pagination; ?>" class="form-control"/>
42
- </div>
43
  </div>
44
 
45
  <div class="form-group">
46
- <div class="col-sm-12">
47
- <label><?php echo grw_i('Characters before \'read more\' link'); ?></label>
48
- <input type="text" id="<?php echo $this->get_field_id('text_size'); ?>" name="<?php echo $this->get_field_name('text_size'); ?>" value="<?php echo $text_size; ?>" class="form-control"/>
49
- </div>
50
  </div>
51
 
52
  <div class="form-group">
53
- <div class="col-sm-12">
54
- <label for="<?php echo $this->get_field_id('max_width'); ?>"><?php echo grw_i('Widget width'); ?></label>
55
- <input id="<?php echo $this->get_field_id('max_width'); ?>" name="<?php echo $this->get_field_name('max_width'); ?>" value="<?php echo $max_width; ?>" class="form-control" type="text" />
56
- </div>
57
  </div>
58
 
59
  <div class="form-group">
60
- <div class="col-sm-12">
61
- <label for="<?php echo $this->get_field_id('max_height'); ?>"><?php echo grw_i('Widget height'); ?></label>
62
- <input id="<?php echo $this->get_field_id('max_height'); ?>" name="<?php echo $this->get_field_name('max_height'); ?>" value="<?php echo $max_height; ?>" class="form-control" type="text" />
63
- </div>
64
  </div>
65
 
66
  <div class="form-group">
67
- <div class="col-sm-12">
68
- <label>
69
- <input id="<?php echo $this->get_field_id('refresh_reviews'); ?>" name="<?php echo $this->get_field_name('refresh_reviews'); ?>" type="checkbox" value="1" <?php checked('1', $refresh_reviews); ?> class="form-control" />
70
- <?php echo grw_i('Refresh reviews'); ?>
71
- <span class="rplg-quest rplg-toggle" title="Click to help">?</span>
72
- <div style="display:none">
73
- The plugin uses the Google Places API to get your reviews. <b>The API only returns the 5 most helpful reviews (it's a limitation of Google, not the plugin)</b>. This option calls the Places API once in three days (to avoid a Google Billing) to check for a new reviews and if there are, adds to the plugin.<br><br>Also if you see the new reviews on Google map, but after some time it's not added to the plugin, it means that Google does not include these reviews to the API and the plugin can't get this.<br><br>If you need to get all reviews, please use <a href="https://richplugins.com/business-reviews-bundle-wordpress-plugin" target="_blank">the Business plugin</a> which uses a Google My Business API, but this GMB API is available only for verified Google business owner accounts.
74
- </div>
75
- </label>
76
- </div>
77
  </div>
78
 
79
  <div class="form-group">
80
- <div class="col-sm-12">
81
- <label>
82
- <input id="<?php echo $this->get_field_id('centered'); ?>" name="<?php echo $this->get_field_name('centered'); ?>" type="checkbox" value="1" <?php checked('1', $centered); ?> class="form-control" />
83
- <?php echo grw_i('Place by center (only if Width is set)'); ?>
84
- </label>
85
- </div>
86
  </div>
87
 
88
  <div class="form-group">
89
- <div class="col-sm-12">
90
- <label>
91
- <input id="<?php echo $this->get_field_id('dark_theme'); ?>" name="<?php echo $this->get_field_name('dark_theme'); ?>" type="checkbox" value="1" <?php checked('1', $dark_theme); ?> class="form-control" />
92
- <?php echo grw_i('Dark background'); ?>
93
- </label>
94
- </div>
95
  </div>
96
 
97
  <div class="form-group">
98
- <div class="col-sm-12">
99
- <label>
100
- <input id="<?php echo $this->get_field_id('reduce_avatars_size'); ?>" name="<?php echo $this->get_field_name('reduce_avatars_size'); ?>" type="checkbox" value="1" <?php checked('1', $reduce_avatars_size); ?> class="form-control" />
101
- <?php echo grw_i('Reduce avatars size'); ?>
102
- <span class="rplg-quest rplg-toggle" title="Click to help">?</span>
103
- <div style="display:none">
104
- By default the Google Places API returns the reviewer's avatars of 128px in size, this option reduces the size to 50px.
105
- </div>
106
- </label>
107
- </div>
108
  </div>
109
 
110
  <div class="form-group">
111
- <div class="col-sm-12">
112
- <label>
113
- <input id="<?php echo $this->get_field_id('lazy_load_img'); ?>" name="<?php echo $this->get_field_name('lazy_load_img'); ?>" type="checkbox" value="1" <?php checked('1', $lazy_load_img); ?> class="form-control" />
114
- <?php echo grw_i('Lazy load images'); ?>
115
- </label>
116
- </div>
117
  </div>
118
 
119
  <div class="form-group">
120
- <div class="col-sm-12">
121
- <label>
122
- <input id="<?php echo $this->get_field_id('open_link'); ?>" name="<?php echo $this->get_field_name('open_link'); ?>" type="checkbox" value="1" <?php checked('1', $open_link); ?> class="form-control" />
123
- <?php echo grw_i('Open links in new Window'); ?>
124
- </label>
125
- </div>
126
  </div>
127
 
128
  <div class="form-group">
129
- <div class="col-sm-12">
130
- <label>
131
- <input id="<?php echo $this->get_field_id('nofollow_link'); ?>" name="<?php echo $this->get_field_name('nofollow_link'); ?>" type="checkbox" value="1" <?php checked('1', $nofollow_link); ?> class="form-control" />
132
- <?php echo grw_i('Use no follow links'); ?>
133
- </label>
134
- </div>
135
  </div>
136
 
137
  <div class="form-group">
1
  <?php global $wp_version; if (version_compare($wp_version, '3.5', '>=')) { wp_enqueue_media(); ?>
2
  <div class="form-group">
3
+ <img id="<?php echo $this->get_field_id('place_photo_img'); ?>" src="<?php echo $place_photo; ?>" alt="<?php echo $place_name; ?>" class="grw-place-photo-img" style="display:<?php if ($place_photo) { ?>inline-block<?php } else { ?>none<?php } ?>;width:32px;height:32px;border-radius:50%;">
4
+ <a id="<?php echo $this->get_field_id('place_photo_btn'); ?>" href="#" class="grw-place-photo-btn"><?php echo grw_i('Change Place photo'); ?></a>
5
+ <input type="hidden" id="<?php echo $this->get_field_id('place_photo'); ?>" name="<?php echo $this->get_field_name('place_photo'); ?>" value="<?php echo $place_photo; ?>" class="grw-place-photo" tabindex="2"/>
 
 
6
  </div>
7
  <?php } ?>
8
 
9
  <div class="form-group">
10
+ <input type="text" id="<?php echo $this->get_field_id('place_name'); ?>" name="<?php echo $this->get_field_name('place_name'); ?>" value="<?php echo $place_name; ?>" class="grw-google-place-name" placeholder="<?php echo grw_i('Google Place Name'); ?>" readonly />
 
 
11
  </div>
12
 
13
  <div class="form-group">
14
+ <input type="text" id="<?php echo $this->get_field_id('place_id'); ?>" name="<?php echo $this->get_field_name('place_id'); ?>" value="<?php echo $place_id; ?>" class="grw-google-place-id" placeholder="<?php echo grw_i('Google Place ID'); ?>" readonly />
 
 
15
  </div>
16
 
17
  <div class="form-group">
18
+ <input type="text" id="<?php echo $this->get_field_id('reviews_lang'); ?>" name="<?php echo $this->get_field_name('reviews_lang'); ?>" value="<?php echo $reviews_lang; ?>" class="grw-place-lang" placeholder="<?php echo grw_i('Language'); ?>" readonly />
 
 
19
  </div>
20
 
21
  <?php if (isset($title)) { ?>
22
  <div class="form-group">
23
+ <label><?php echo grw_i('Title'); ?></label>
24
+ <input type="text" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" value="<?php echo $title; ?>"/>
 
 
25
  </div>
26
  <?php } ?>
27
 
28
  <div class="form-group">
29
+ <label><?php echo grw_i('Pagination'); ?></label>
30
+ <input type="text" id="<?php echo $this->get_field_id('pagination'); ?>" name="<?php echo $this->get_field_name('pagination'); ?>" value="<?php echo $pagination; ?>"/>
 
 
31
  </div>
32
 
33
  <div class="form-group">
34
+ <label><?php echo grw_i('Characters before \'read more\' link'); ?></label>
35
+ <input type="text" id="<?php echo $this->get_field_id('text_size'); ?>" name="<?php echo $this->get_field_name('text_size'); ?>" value="<?php echo $text_size; ?>"/>
 
 
36
  </div>
37
 
38
  <div class="form-group">
39
+ <label for="<?php echo $this->get_field_id('max_width'); ?>"><?php echo grw_i('Widget width'); ?></label>
40
+ <input id="<?php echo $this->get_field_id('max_width'); ?>" name="<?php echo $this->get_field_name('max_width'); ?>" value="<?php echo $max_width; ?>" type="text" />
 
 
41
  </div>
42
 
43
  <div class="form-group">
44
+ <label for="<?php echo $this->get_field_id('max_height'); ?>"><?php echo grw_i('Widget height'); ?></label>
45
+ <input id="<?php echo $this->get_field_id('max_height'); ?>" name="<?php echo $this->get_field_name('max_height'); ?>" value="<?php echo $max_height; ?>" type="text" />
 
 
46
  </div>
47
 
48
  <div class="form-group">
49
+ <label>
50
+ <input id="<?php echo $this->get_field_id('refresh_reviews'); ?>" name="<?php echo $this->get_field_name('refresh_reviews'); ?>" type="checkbox" value="1" <?php checked('1', $refresh_reviews); ?>/>
51
+ <?php echo grw_i('Refresh reviews'); ?>
52
+ <span class="rplg-quest rplg-toggle" title="Click to help">?</span>
53
+ <div style="display:none">
54
+ The plugin uses the Google Places API to get your reviews. <b>The API only returns the 5 most helpful reviews (it's a limitation of Google, not the plugin)</b>. This option calls the Places API once in three days (to avoid a Google Billing) to check for a new reviews and if there are, adds to the plugin.<br><br>Also if you see the new reviews on Google map, but after some time it's not added to the plugin, it means that Google does not include these reviews to the API and the plugin can't get this.<br><br>If you need to get all reviews, please use <a href="https://richplugins.com/business-reviews-bundle-wordpress-plugin" target="_blank">the Business plugin</a> which uses a Google My Business API, but this GMB API is available only for verified Google business owner accounts.
55
+ </div>
56
+ </label>
 
 
57
  </div>
58
 
59
  <div class="form-group">
60
+ <label>
61
+ <input id="<?php echo $this->get_field_id('centered'); ?>" name="<?php echo $this->get_field_name('centered'); ?>" type="checkbox" value="1" <?php checked('1', $centered); ?>/>
62
+ <?php echo grw_i('Place by center (only if Width is set)'); ?>
63
+ </label>
 
 
64
  </div>
65
 
66
  <div class="form-group">
67
+ <label>
68
+ <input id="<?php echo $this->get_field_id('dark_theme'); ?>" name="<?php echo $this->get_field_name('dark_theme'); ?>" type="checkbox" value="1" <?php checked('1', $dark_theme); ?>/>
69
+ <?php echo grw_i('Dark background'); ?>
70
+ </label>
 
 
71
  </div>
72
 
73
  <div class="form-group">
74
+ <label>
75
+ <input id="<?php echo $this->get_field_id('reduce_avatars_size'); ?>" name="<?php echo $this->get_field_name('reduce_avatars_size'); ?>" type="checkbox" value="1" <?php checked('1', $reduce_avatars_size); ?>/>
76
+ <?php echo grw_i('Reduce avatars size'); ?>
77
+ <span class="rplg-quest rplg-toggle" title="Click to help">?</span>
78
+ <div style="display:none">
79
+ By default the Google Places API returns the reviewer's avatars of 128px in size, this option reduces the size to 50px.
80
+ </div>
81
+ </label>
 
 
82
  </div>
83
 
84
  <div class="form-group">
85
+ <label>
86
+ <input id="<?php echo $this->get_field_id('lazy_load_img'); ?>" name="<?php echo $this->get_field_name('lazy_load_img'); ?>" type="checkbox" value="1" <?php checked('1', $lazy_load_img); ?>/>
87
+ <?php echo grw_i('Lazy load images'); ?>
88
+ </label>
 
 
89
  </div>
90
 
91
  <div class="form-group">
92
+ <label>
93
+ <input id="<?php echo $this->get_field_id('open_link'); ?>" name="<?php echo $this->get_field_name('open_link'); ?>" type="checkbox" value="1" <?php checked('1', $open_link); ?>/>
94
+ <?php echo grw_i('Open links in new Window'); ?>
95
+ </label>
 
 
96
  </div>
97
 
98
  <div class="form-group">
99
+ <label>
100
+ <input id="<?php echo $this->get_field_id('nofollow_link'); ?>" name="<?php echo $this->get_field_name('nofollow_link'); ?>" type="checkbox" value="1" <?php checked('1', $nofollow_link); ?>/>
101
+ <?php echo grw_i('Use no follow links'); ?>
102
+ </label>
 
 
103
  </div>
104
 
105
  <div class="form-group">
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.7.4
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.7.4');
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__)));
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.7.5
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.7.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/s50-c/114307615494839964028.jpg');
19
  define('GRW_PLUGIN_URL', plugins_url(basename(plugin_dir_path(__FILE__ )), basename(__FILE__)));
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: richplugins
3
  Donate link: https://richplugins.com/business-reviews-bundle-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: 5.1
7
- Stable tag: 1.7.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -75,6 +75,10 @@ Why limit your reviews to just Google Reviews? Check out our other free reviews
75
 
76
  == Changelog ==
77
 
 
 
 
 
78
  = 1.7.4 =
79
  * Improve: added auto schedule for refreshing Google reviews
80
  * Improve: added new locale fi_FI
3
  Donate link: https://richplugins.com/business-reviews-bundle-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: 5.2
7
+ Stable tag: 1.7.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
75
 
76
  == Changelog ==
77
 
78
+ = 1.7.5 =
79
+ * Update to WordPress 5.2
80
+ * Bugfix: conflict with a Bootstrap css in the widget
81
+
82
  = 1.7.4 =
83
  * Improve: added auto schedule for refreshing Google reviews
84
  * Improve: added new locale fi_FI