Google Reviews Widget - Version 1.49

Version Description

  • Bugfix: time-ago on English by default, update readme, added fr_FR locale
Download this release

Release Info

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

Code changes from version 1.48 to 1.49

grw-reviews.php CHANGED
@@ -12,8 +12,8 @@ if ($place->rating > 0) {
12
  $rating = $rating + $review->rating;
13
  }
14
  $rating = round($rating / count($reviews), 1);
15
- $rating = number_format((float)$rating, 1, '.', '');
16
  }
 
17
  ?>
18
 
19
  <?php if ($view_mode != 'list') { ?>
12
  $rating = $rating + $review->rating;
13
  }
14
  $rating = round($rating / count($reviews), 1);
 
15
  }
16
+ $rating = number_format((float)$rating, 1, '.', '');
17
  ?>
18
 
19
  <?php if ($view_mode != 'list') { ?>
grw-setting.php CHANGED
@@ -161,8 +161,8 @@ if (strlen($grw_google_api_key) == 0) {
161
  <li>"Google Place Name" and "Google Place ID" must be filled, if so click "Save" button below</li>
162
  </ol>
163
  <h5>Shortcode</h5>
164
- <p>Available in Google Reviews Pro version: <a href="https://googlereviews.pro/" target="_blank" style="color:#00bf54;font-size:16px;text-decoration:underline;"><?php echo grw_i('Upgrade to Pro'); ?></a></p>
165
- <p><?php echo grw_i('Feel free to contact us by email <a href="mailto:contact@widgetpack.com">contact@widgetpack.com</a>.'); ?></p>
166
  <p><?php echo grw_i('<b>Like this plugin? Give it a like on social:</b>'); ?></p>
167
  <div class="row">
168
  <div class="col-sm-4">
@@ -174,10 +174,10 @@ if (strlen($grw_google_api_key) == 0) {
174
  js.src = "//connect.facebook.net/en_EN/sdk.js#xfbml=1&version=v2.6&appId=1501100486852897";
175
  fjs.parentNode.insertBefore(js, fjs);
176
  }(document, 'script', 'facebook-jssdk'));</script>
177
- <div class="fb-like" data-href="https://widgetpack.com/" data-layout="button_count" data-action="like" data-show-faces="true" data-share="false"></div>
178
  </div>
179
  <div class="col-sm-4 twitter">
180
- <a href="https://twitter.com/widgetpack" class="twitter-follow-button" data-show-count="false">Follow @WidgetPack</a>
181
  <script>!function (d, s, id) {
182
  var js, fjs = d.getElementsByTagName(s)[0], p = /^http:/.test(d.location) ? 'http' : 'https';
183
  if (!d.getElementById(id)) {
@@ -213,15 +213,16 @@ if (strlen($grw_google_api_key) == 0) {
213
  </div>
214
  <hr>
215
  <h4>Get More Features with Google Reviews Pro!</h4>
216
- <p><a href="https://googlereviews.pro/" target="_blank" style="color:#00bf54;font-size:16px;text-decoration:underline;">Upgrade to Google Reviews Pro</a></p>
217
  <p>* Pure self-hosted plugin, keep all reviews in WordPress database</p>
218
  <p>* Auto-download new Google reviews daily</p>
219
  <p>* Collect more than 5 Google reviews</p>
220
- <p>* Support schema.org/AggregateRating microdata format to display Google Snippet for rating</p>
221
- <p>* Rating filter</p>
 
 
222
  <p>* Custom business place photo</p>
223
- <p>* Leave Google Review link to available post Google review on your website</p>
224
- <p>* Pagination, Sorting, Rating filter</p>
225
  <p>* Priority support</p>
226
  </div>
227
  <div role="tabpanel" class="tab-pane" id="setting">
@@ -267,15 +268,15 @@ if (strlen($grw_google_api_key) == 0) {
267
  </div>
268
  <div role="tabpanel" class="tab-pane" id="mod">
269
  <h4><?php echo grw_i('Moderation available in Google Reviews Pro plugin:'); ?></h4>
270
- <a href="https://googlereviews.pro/" target="_blank" style="color:#00bf54;font-size:16px;text-decoration:underline;"><?php echo grw_i('Upgrade to Pro'); ?></a>
271
  </div>
272
  <div role="tabpanel" class="tab-pane" id="shortcode">
273
  <h4><?php echo grw_i('Shortcode Builder available in Google Reviews Pro plugin:'); ?></h4>
274
- <a href="https://googlereviews.pro/" target="_blank" style="color:#00bf54;font-size:16px;text-decoration:underline;"><?php echo grw_i('Upgrade to Pro'); ?></a>
275
  </div>
276
  <div role="tabpanel" class="tab-pane" id="support">
277
  <h4><?php echo grw_i('Live Chat support available in Google Reviews Pro plugin:'); ?></h4>
278
- <a href="https://googlereviews.pro/" target="_blank" style="color:#00bf54;font-size:16px;text-decoration:underline;"><?php echo grw_i('Upgrade to Pro'); ?></a>
279
  </div>
280
  </div>
281
  </div>
161
  <li>"Google Place Name" and "Google Place ID" must be filled, if so click "Save" button below</li>
162
  </ol>
163
  <h5>Shortcode</h5>
164
+ <p>Available in Google Reviews Pro version: <a href="https://richplugins.com/google-reviews-pro-wordpress-plugin" target="_blank" style="color:#00bf54;font-size:16px;text-decoration:underline;"><?php echo grw_i('Upgrade to Pro'); ?></a></p>
165
+ <p><?php echo grw_i('Feel free to contact us by email <a href="mailto:support@richplugins.com">support@richplugins.com</a>.'); ?></p>
166
  <p><?php echo grw_i('<b>Like this plugin? Give it a like on social:</b>'); ?></p>
167
  <div class="row">
168
  <div class="col-sm-4">
174
  js.src = "//connect.facebook.net/en_EN/sdk.js#xfbml=1&version=v2.6&appId=1501100486852897";
175
  fjs.parentNode.insertBefore(js, fjs);
176
  }(document, 'script', 'facebook-jssdk'));</script>
177
+ <div class="fb-like" data-href="https://richplugins.com/" data-layout="button_count" data-action="like" data-show-faces="true" data-share="false"></div>
178
  </div>
179
  <div class="col-sm-4 twitter">
180
+ <a href="https://twitter.com/richplugins" class="twitter-follow-button" data-show-count="false">Follow @RichPlugins</a>
181
  <script>!function (d, s, id) {
182
  var js, fjs = d.getElementsByTagName(s)[0], p = /^http:/.test(d.location) ? 'http' : 'https';
183
  if (!d.getElementById(id)) {
213
  </div>
214
  <hr>
215
  <h4>Get More Features with Google Reviews Pro!</h4>
216
+ <p><a href="https://richplugins.com/google-reviews-pro-wordpress-plugin" target="_blank" style="color:#00bf54;font-size:16px;text-decoration:underline;">Upgrade to Google Reviews Pro</a></p>
217
  <p>* Pure self-hosted plugin, keep all reviews in WordPress database</p>
218
  <p>* Auto-download new Google reviews daily</p>
219
  <p>* Collect more than 5 Google reviews</p>
220
+ <p>* Supports Google Rich Snippets (schema.org)</p>
221
+ <p>* Grid theme to show G+ reviews in testimonials section</p>
222
+ <p>* 'Write a review' button to available leave Google review on your website</p>
223
+ <p>* Minimum Rating filter</p>
224
  <p>* Custom business place photo</p>
225
+ <p>* Pagination, Sorting</p>
 
226
  <p>* Priority support</p>
227
  </div>
228
  <div role="tabpanel" class="tab-pane" id="setting">
268
  </div>
269
  <div role="tabpanel" class="tab-pane" id="mod">
270
  <h4><?php echo grw_i('Moderation available in Google Reviews Pro plugin:'); ?></h4>
271
+ <a href="https://richplugins.com/google-reviews-pro-wordpress-plugin" target="_blank" style="color:#00bf54;font-size:16px;text-decoration:underline;"><?php echo grw_i('Upgrade to Pro'); ?></a>
272
  </div>
273
  <div role="tabpanel" class="tab-pane" id="shortcode">
274
  <h4><?php echo grw_i('Shortcode Builder available in Google Reviews Pro plugin:'); ?></h4>
275
+ <a href="https://richplugins.com/google-reviews-pro-wordpress-plugin" target="_blank" style="color:#00bf54;font-size:16px;text-decoration:underline;"><?php echo grw_i('Upgrade to Pro'); ?></a>
276
  </div>
277
  <div role="tabpanel" class="tab-pane" id="support">
278
  <h4><?php echo grw_i('Live Chat support available in Google Reviews Pro plugin:'); ?></h4>
279
+ <a href="https://richplugins.com/google-reviews-pro-wordpress-plugin" target="_blank" style="color:#00bf54;font-size:16px;text-decoration:underline;"><?php echo grw_i('Upgrade to Pro'); ?></a>
280
  </div>
281
  </div>
282
  </div>
grw-widget.php CHANGED
@@ -215,7 +215,7 @@ class Goog_Reviews_Widget extends WP_Widget {
215
  </div>
216
  <div class="form-group wpgrev-disabled">
217
  <input type="checkbox" disabled />
218
- <label><?php echo grw_i('Enable Google Rich Snippet for rating (schema.org)'); ?></label>
219
  </div>
220
  <div class="form-group">
221
  <?php echo grw_i('Pagination'); ?>
@@ -252,7 +252,7 @@ class Goog_Reviews_Widget extends WP_Widget {
252
  </div>
253
 
254
  <div class="form-group">
255
- <div class="wpgrev-pro"><?php echo grw_i('These features available in Google Reviews Pro plugin: '); ?> <a href="https://googlereviews.pro/" target="_blank"><?php echo grw_i('Upgrade to Pro'); ?></a></div>
256
  </div>
257
  </div>
258
 
@@ -265,7 +265,7 @@ class Goog_Reviews_Widget extends WP_Widget {
265
  <input type="text" placeholder="<?php echo grw_i('Review text limit before \'read more\' link: 200'); ?>" disabled />
266
  </div>
267
  <div class="form-group">
268
- <div class="wpgrev-pro"><?php echo grw_i('Custom photo and review concatenation available in Pro version: '); ?> <a href="https://googlereviews.pro/" target="_blank"><?php echo grw_i('Upgrade to Pro'); ?></a></div>
269
  </div>
270
  <div class="form-group">
271
  <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); ?> />
@@ -284,8 +284,8 @@ class Goog_Reviews_Widget extends WP_Widget {
284
  <h4 class="grp-options-toggle"><?php echo grw_i('Advance Options'); ?></h4>
285
  <div class="grp-options" style="display:none">
286
  <div class="form-group wpgrev-disabled">
287
- <input type="text" placeholder="<?php echo grw_i('Leave Google review link'); ?>" disabled />
288
- <small><?php echo grw_i('Allows to post Google reviews straight in widget on your website'); ?></small>
289
  </div>
290
  <div class="form-group wpgrev-disabled">
291
  <input type="checkbox" disabled />
@@ -300,7 +300,7 @@ class Goog_Reviews_Widget extends WP_Widget {
300
  <label><?php echo grw_i('User no follow links'); ?></label>
301
  </div>
302
  <div class="form-group">
303
- <div class="wpgrev-pro"><?php echo grw_i('These features available in Google Reviews Pro plugin: '); ?> <a href="https://googlereviews.pro/" target="_blank"><?php echo grw_i('Upgrade to Pro'); ?></a></div>
304
  </div>
305
  </div>
306
 
215
  </div>
216
  <div class="form-group wpgrev-disabled">
217
  <input type="checkbox" disabled />
218
+ <label><?php echo grw_i('Enable Google Rich Snippets (schema.org)'); ?></label>
219
  </div>
220
  <div class="form-group">
221
  <?php echo grw_i('Pagination'); ?>
252
  </div>
253
 
254
  <div class="form-group">
255
+ <div class="wpgrev-pro"><?php echo grw_i('These features available in Google Reviews Pro plugin: '); ?> <a href="https://richplugins.com/google-reviews-pro-wordpress-plugin" target="_blank"><?php echo grw_i('Upgrade to Pro'); ?></a></div>
256
  </div>
257
  </div>
258
 
265
  <input type="text" placeholder="<?php echo grw_i('Review text limit before \'read more\' link: 200'); ?>" disabled />
266
  </div>
267
  <div class="form-group">
268
+ <div class="wpgrev-pro"><?php echo grw_i('Custom photo and review concatenation available in Pro version: '); ?> <a href="https://richplugins.com/google-reviews-pro-wordpress-plugin" target="_blank"><?php echo grw_i('Upgrade to Pro'); ?></a></div>
269
  </div>
270
  <div class="form-group">
271
  <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); ?> />
284
  <h4 class="grp-options-toggle"><?php echo grw_i('Advance Options'); ?></h4>
285
  <div class="grp-options" style="display:none">
286
  <div class="form-group wpgrev-disabled">
287
+ <input type="text" placeholder="<?php echo grw_i('Write a review link'); ?>" disabled />
288
+ <small><?php echo grw_i('Allows to write Google reviews straight in widget on your website'); ?></small>
289
  </div>
290
  <div class="form-group wpgrev-disabled">
291
  <input type="checkbox" disabled />
300
  <label><?php echo grw_i('User no follow links'); ?></label>
301
  </div>
302
  <div class="form-group">
303
+ <div class="wpgrev-pro"><?php echo grw_i('These features available in Google Reviews Pro plugin: '); ?> <a href="https://richplugins.com/google-reviews-pro-wordpress-plugin" target="_blank"><?php echo grw_i('Upgrade to Pro'); ?></a></div>
304
  </div>
305
  </div>
306
 
grw.php CHANGED
@@ -1,18 +1,18 @@
1
  <?php
2
  /*
3
  Plugin Name: Google Reviews Widget
4
- Plugin URI: https://googlereviews.pro/
5
  Description: Instantly Google Places Reviews on your website to increase user confidence and SEO.
6
- Author: WidgetPack <contact@widgetpack.com>
7
- Version: 1.48
8
- Author URI: https://googlereviews.pro/
9
  */
10
 
11
  require(ABSPATH . 'wp-includes/version.php');
12
 
13
  require_once(dirname(__FILE__) . '/api/grw-api.php');
14
 
15
- define('GRW_VERSION', '1.48');
16
  define('GRW_GOOGLE_PLACE_API', 'https://maps.googleapis.com/maps/api/place/');
17
  define('GRW_GOOGLE_AVATAR', 'https://lh3.googleusercontent.com/-8hepWJzFXpE/AAAAAAAAAAI/AAAAAAAAAAA/I80WzYfIxCQ/s64-c/114307615494839964028.jpg');
18
  define('GRW_PLUGIN_URL', plugins_url(basename(plugin_dir_path(__FILE__ )), basename(__FILE__)));
1
  <?php
2
  /*
3
  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.49
8
+ Author URI: https://richplugins.com/google-reviews-pro-wordpress-plugin
9
  */
10
 
11
  require(ABSPATH . 'wp-includes/version.php');
12
 
13
  require_once(dirname(__FILE__) . '/api/grw-api.php');
14
 
15
+ define('GRW_VERSION', '1.49');
16
  define('GRW_GOOGLE_PLACE_API', 'https://maps.googleapis.com/maps/api/place/');
17
  define('GRW_GOOGLE_AVATAR', 'https://lh3.googleusercontent.com/-8hepWJzFXpE/AAAAAAAAAAI/AAAAAAAAAAA/I80WzYfIxCQ/s64-c/114307615494839964028.jpg');
18
  define('GRW_PLUGIN_URL', plugins_url(basename(plugin_dir_path(__FILE__ )), basename(__FILE__)));
languages/grw-fr_FR.mo ADDED
Binary file
languages/grw-fr_FR.po ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Language: fr_FR\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 1.8.11\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 "Evaluations Google"
16
+
17
+ msgid "See All Reviews"
18
+ msgstr "Voir tous les avis"
19
+
20
+ msgid "Google User"
21
+ msgstr "Utilisateur Google"
22
+
23
+ msgid "read more"
24
+ msgstr "plus"
readme.txt CHANGED
@@ -1,24 +1,24 @@
1
  === Google Reviews Widget ===
2
- Contributors: widgetpack
3
- Donate link: https://googlereviews.pro/
4
- Tags: google, google reviews, google business reviews, google place review, Google Places, google places reviews, google review, google review widget, google map reviews, map reviews, review, reviews, google reviews widget, google plus reviews, g+ reviews, comment, comments, sidebar, widget, widgetpack, facebook, facebook reviews, facebook business reviews, google reviews pro
5
  Requires at least: 2.8
6
- Tested up to: 4.6
7
- Stable tag: 1.48
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
- Google Reviews Widget show Google Business Reviews on your WordPress website to increase user confidence and SEO.
12
 
13
  == Description ==
14
 
15
- This plugin display Google Places Reviews on your websites in sidebar widget. A unique feature of the plugin is that it save all reviews in WordPress database and have no depend on any services like Google to show these reviews.
16
 
17
- To get more unique features we have [Pro and Business version](https://googlereviews.pro/) of plugin.
18
 
19
  [youtube https://www.youtube.com/watch?v=YccWFCkz6H4]
20
 
21
- [Online demo](http://wordpress.widgetpack.com/) (more than <b>30 reviews</b> in sidebar)
22
 
23
  = Plugin Features =
24
 
@@ -36,13 +36,14 @@ To get more unique features we have [Pro and Business version](https://googlerev
36
 
37
  = Get More Features with Google Reviews Pro! =
38
 
39
- [Upgrade to Google Reviews Pro](https://googlereviews.pro/)
40
 
41
  * Auto-download new Google reviews daily
42
  * Collect and display more than 5 Google reviews
 
 
 
43
  * Trim long reviews and add "read more" link
44
- * Support schema.org/AggregateRating microdata to display Google Snippet for rating
45
- * Leave Google review link to available submit Google review on your website
46
  * Powerful <b>Shortcode Builder</b>
47
  * Moderation panel, delete any reviews
48
  * Change business place photo
@@ -64,6 +65,9 @@ To get more unique features we have [Pro and Business version](https://googlerev
64
 
65
  == Changelog ==
66
 
 
 
 
67
  = 1.48 =
68
  * Bugfix, update readme
69
 
@@ -90,4 +94,5 @@ To get more unique features we have [Pro and Business version](https://googlerev
90
 
91
  == Support ==
92
 
93
- * Email support contact@widgetpack.com
 
1
  === Google Reviews Widget ===
2
+ Contributors: richplugins
3
+ Donate link: https://richplugins.com/
4
+ Tags: google, google reviews, google business reviews, google place review, Google Places, google places reviews, google review widget, google review, google map reviews, map reviews, review, reviews, google reviews widget, google plus reviews, g+ reviews, comment, comments, sidebar, widget, widgetpack, richplugins, facebook, facebook reviews, facebook business reviews, google reviews pro
5
  Requires at least: 2.8
6
+ Tested up to: 4.7
7
+ Stable tag: 1.49
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
+ Google Reviews Widget show Google Places Reviews on your WordPress website to increase user confidence and SEO.
12
 
13
  == Description ==
14
 
15
+ > > To get more unique features we have <a href="https://richplugins.com/google-reviews-pro-wordpress-plugin">Pro and 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 save all reviews in WordPress database and have no depend on any services like Google to show these reviews.
18
 
19
  [youtube https://www.youtube.com/watch?v=YccWFCkz6H4]
20
 
21
+ [Online demo](http://demo.richplugins.com/)
22
 
23
  = Plugin Features =
24
 
36
 
37
  = Get More Features with Google Reviews Pro! =
38
 
39
+ [Upgrade to Google Reviews Pro](https://richplugins.com/google-reviews-pro-wordpress-plugin)
40
 
41
  * Auto-download new Google reviews daily
42
  * Collect and display more than 5 Google reviews
43
+ * Supports Google Rich Snippets (schema.org)
44
+ * 'Write a review' button to available leave Google review on your website
45
+ * Grid theme to show G+ reviews in testimonials section
46
  * Trim long reviews and add "read more" link
 
 
47
  * Powerful <b>Shortcode Builder</b>
48
  * Moderation panel, delete any reviews
49
  * Change business place photo
65
 
66
  == Changelog ==
67
 
68
+ = 1.49 =
69
+ * Bugfix: time-ago on English by default, update readme, added fr_FR locale
70
+
71
  = 1.48 =
72
  * Bugfix, update readme
73
 
94
 
95
  == Support ==
96
 
97
+ * Email support support@richplugins.com
98
+ * Live support https://richplugins.com/forum
static/js/grp-place-finder.js CHANGED
@@ -175,7 +175,7 @@ soundcloud:a(64,64,"#fff","M26.791,154.715c-0.067,0.478-0.411,0.81-0.833,0.81c-0
175
  "0 0 256 256"),vkontakte:b(64,64,"0 0 110 110","7,82","M1917 1016q23 -64 -150 -294q-24 -32 -65 -85q-78 -100 -90 -131q-17 -41 14 -81q17 -21 81 -82h1l1 -1l1 -1l2 -2q141 -131 191 -221q3 -5 6.5 -12.5t7 -26.5t-0.5 -34t-25 -27.5t-59 -12.5l-256 -4q-24 -5 -56 5t-52 22l-20 12q-30 21 -70 64t-68.5 77.5t-61 58 t-56.5 15.5q-3 -1 -8 -3.5t-17 -14.5t-21.5 -29.5t-17 -52t-6.5 -77.5q0 -15 -3.5 -27.5t-7.5 -18.5l-4 -5q-18 -19 -53 -22h-115q-71 -4 -146 16.5t-131.5 53t-103 66t-70.5 57.5l-25 24q-10 10 -27.5 30t-71.5 91t-106 151t-122.5 211t-130.5 272q-6 16 -6 27t3 16l4 6 q15 19 57 19l274 2q12 -2 23 -6.5t16 -8.5l5 -3q16 -11 24 -32q20 -50 46 -103.5t41 -81.5l16 -29q29 -60 56 -104t48.5 -68.5t41.5 -38.5t34 -14t27 5q2 1 5 5t12 22t13.5 47t9.5 81t0 125q-2 40 -9 73t-14 46l-6 12q-25 34 -85 43q-13 2 5 24q17 19 38 30q53 26 239 24 q82 -1 135 -13q20 -5 33.5 -13.5t20.5 -24t10.5 -32t3.5 -45.5t-1 -55t-2.5 -70.5t-1.5 -82.5q0 -11 -1 -42t-0.5 -48t3.5 -40.5t11.5 -39t22.5 -24.5q8 -2 17 -4t26 11t38 34.5t52 67t68 107.5q60 104 107 225q4 10 10 17.5t11 10.5l4 3l5 2.5t13 3t20 0.5l288 2 q39 5 64 -2.5t31 -16.5z"),
176
  odnoklassniki:b(64,64,"0 0 105 105","20,84","M640 629q-188 0 -321 133t-133 320q0 188 133 321t321 133t321 -133t133 -321q0 -187 -133 -320t-321 -133zM640 1306q-92 0 -157.5 -65.5t-65.5 -158.5q0 -92 65.5 -157.5t157.5 -65.5t157.5 65.5t65.5 157.5q0 93 -65.5 158.5t-157.5 65.5zM1163 574q13 -27 15 -49.5 t-4.5 -40.5t-26.5 -38.5t-42.5 -37t-61.5 -41.5q-115 -73 -315 -94l73 -72l267 -267q30 -31 30 -74t-30 -73l-12 -13q-31 -30 -74 -30t-74 30q-67 68 -267 268l-267 -268q-31 -30 -74 -30t-73 30l-12 13q-31 30 -31 73t31 74l267 267l72 72q-203 21 -317 94 q-39 25 -61.5 41.5t-42.5 37t-26.5 38.5t-4.5 40.5t15 49.5q10 20 28 35t42 22t56 -2t65 -35q5 -4 15 -11t43 -24.5t69 -30.5t92 -24t113 -11q91 0 174 25.5t120 50.5l38 25q33 26 65 35t56 2t42 -22t28 -35z"),
177
  mailru:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="114" height="114" viewBox="0 0 114 114"><path fill="#fff" d="M41.93,30.296c-3.896,0-7.066,3.169-7.066,7.065s3.17,7.067,7.066,7.067s7.064-3.171,7.064-7.067 S45.825,30.296,41.93,30.296z"></path><path fill="#fff" d="M72.223,30.296c-3.896,0-7.065,3.169-7.065,7.065s3.17,7.067,7.065,7.067s7.064-3.171,7.064-7.067 S76.117,30.296,72.223,30.296z"></path><path fill="#fff" d="M96.324,77.49c0.299-1.112,0.146-2.273-0.428-3.271l-8.785-15.268c-0.769-1.332-2.199-2.16-3.738-2.16 c-0.75,0-1.492,0.199-2.146,0.576c-0.998,0.574-1.711,1.502-2.012,2.613c-0.299,1.111-0.146,2.272,0.428,3.271l0.703,1.226 l-0.342,0.494c-4.232,6.111-13.26,10.061-22.994,10.061c-9.67,0-18.668-3.911-22.926-9.965l-0.352-0.5l0.754-1.289 c1.199-2.049,0.507-4.694-1.543-5.896c-0.66-0.385-1.41-0.589-2.17-0.589c-1.528,0-2.955,0.816-3.725,2.133l-8.935,15.27 c-1.199,2.05-0.507,4.695,1.543,5.895c0.659,0.387,1.411,0.59,2.172,0.59c1.527,0,2.954-0.815,3.724-2.132l3.496-5.974l0.871,0.876 c6.447,6.481,16.32,10.2,27.09,10.2c10.778,0,20.658-3.725,27.104-10.215l0.879-0.885l3.436,5.969 c0.768,1.332,2.2,2.159,3.739,2.159c0.751,0,1.492-0.198,2.144-0.573C95.311,79.529,96.023,78.602,96.324,77.49z"></path></svg>',
178
- icon:function(b,e,f){return a(e,e,f||"#666",c[b])}}}();var WPacTime=WPacTime||{getTime:function(a,b,c){return"chat"==c?this.getChatTime(a,b||"ru"):c?this.getFormatTime(a,c,b||"ru"):this.getDefaultTime(a,b||"ru")},getChatTime:function(a,b){var c=((new Date).getTime()-a)/1E3/60/60,d=c/24;return 24>c?this.getFormatTime(a,"HH:mm",b):365>d?this.getFormatTime(a,"dd.MM HH:mm",b):this.getFormatTime(a,"yyyy.MM.dd HH:mm",b)},getDefaultTime:function(a,b){return this.getTimeAgo(a,b)},getTimeAgo:function(a,b){var c=((new Date).getTime()-a)/1E3,d=c/60,e=d/60,f=e/24,
179
  g=f/365;b=WPacTime.Messages[b]?b:"en";return 45>c?WPacTime.Messages[b].second:90>c?WPacTime.Messages[b].minute:45>d?WPacTime.Messages[b].minutes(d):90>d?WPacTime.Messages[b].hour:24>e?WPacTime.Messages[b].hours(e):48>e?WPacTime.Messages[b].day:30>f?WPacTime.Messages[b].days(f):60>f?WPacTime.Messages[b].month:365>f?WPacTime.Messages[b].months(f):2>g?WPacTime.Messages[b].year:WPacTime.Messages[b].years(g)},getTime12:function(a,b){var c=new Date(a);return(c.getHours()%12?c.getHours()%12:12)+":"+c.getMinutes()+
180
  (12<=c.getHours()?" PM":" AM")},getFormatTime:function(a,b,c){var d=new Date(a),e={SS:d.getMilliseconds(),ss:d.getSeconds(),mm:d.getMinutes(),HH:d.getHours(),hh:(d.getHours()%12?d.getHours()%12:12)+(12<=d.getHours()?"PM":"AM"),dd:d.getDate(),MM:d.getMonth()+1,yyyy:d.getFullYear(),yy:String(d.getFullYear()).toString().substr(2,2),ago:this.getTimeAgo(a,c),12:this.getTime12(a,c)};return b.replace(/(SS|ss|mm|HH|hh|DD|dd|MM|yyyy|yy|ago|12)/g,function(a,b){var c=e[b];return 10>c?"0"+c:c})},declineNum:function(a,
181
  b,c,d){return a+" "+this.declineMsg(a,b,c,d)},declineMsg:function(a,b,c,d,e){var f=a%10;return 1==f&&(1==a||20<a)?b:1<f&&5>f&&(20<a||10>a)?c:a?d:e}};
@@ -215,10 +215,10 @@ color:this.color(b),stars:this.stars(c||5),rating:this.rating(d,e)})},rating_ren
215
  b.getAttribute("data-hover");c&&"off"!=c||(c=b.querySelector("path"),c.setAttribute("d",WPacSVGIcon.path.star),c.setAttribute("fill",this.color(a.color)),b.setAttribute("data-hover","on"));this.prevHover(a,WPacFastjs.prev(b))}},nextHover:function(a,b){var c=WPacFastjs.next(b);if(c){var d=c.getAttribute("data-hover");d&&"on"!=d||(d=c.querySelector("path"),d.setAttribute("d",WPacSVGIcon.path.star_o),d.setAttribute("fill","#ccc"),c.setAttribute("data-hover","off"));this.nextHover(a,c)}}};var GRPPlaceFinder=GRPPlaceFinder||{_HTML:'<div class="wp-gri"><div class="row"><div class="col-sm-4"><div class="form form400 form-horizontal"><h4 class="text-left"><span class="wp-step">1</span>Find Place</h4><div class="form-group"><div class="col-sm-12"><input type="text" class="wp-place form-control" placeholder="Google Place Search Query"></div></div><div class="form-group wp-gkey-cnt" style="display:none"><div class="col-sm-12"><input type="text" class="wp-gkey form-control" placeholder="Google API Key" {{?it.google_api_key}}value="{{=it.google_api_key}}"{{?}}><small>Default limit of requests to Google Places API exceeded, to continue <a href="https://developers.google.com/places/web-service/get-api-key" target="_blank">get Google Places API key</a></small></div></div><div class="form-group"><div class="col-sm-12"><button class="wp-get-place btn btn-block btn-primary">Search Place</button></div></div><div class="form-group"><div class="col-sm-12"><h4 class="text-left"><span class="wp-step">2</span>Choice Place</h4><div class="wp-places"></div></div></div><div class="form-group"><div class="col-sm-12"><h4 class="text-left"><span class="wp-step">3</span>Save Place</h4><div class="wp-reviews"></div></div></div></div></div>{{?it.post_content}}{{=it.post_content}}{{?}}</div></div>',
216
  _PLACE_HTML:'<div class="media-left"><img class="media-object" src="{{=it.place.icon}}" alt="{{=it.place.name}}" style="width:32px;height:32px;"></div><div class="media-body"><h5 class="media-heading">{{=it.place.name}}</h5><div>{{?it.place.rating}}<span class="wp-grating">{{=it.place.rating}}</span><span class="wp-gstars"></span>{{?}}</div><small class="text-muted">{{=it.place.formatted_address}}</small></div>',_REVIEW_HTML:'<div class="media-left"><img class="media-object" src="{{=it.review.profile_photo_url || it.defava}}" alt="{{=it.review.author_name}}" onerror="if(this.src!=\'{{=it.defava}}\')this.src=\'{{=it.defava}}\';"></div><div class="media-body"><div class="media-heading"><a href="{{=it.review.author_url}}" target="_blank">{{=it.review.author_name}}</a></div><div class="wp-gtime">{{=it.time}}</div><div class="wp-gtext"><span class="wp-gstars"></span> {{=it.text}}</div></div>',
217
  _TEXT_HTML:'{{!it.t}} {{?it.h}}<span class="wp-more">{{!it.h}}</span><span class="wp-more-toggle" onclick="this.previousSibling.className=\'\';this.textContent=\'\';">read more</span>{{?}}',main:function(a){var b=this,c=document.getElementById(a.el||"wpac-greview-install");c.innerHTML=doT.template(b._HTML)({post_content:a.post_content,google_api_key:a.google_api_key});WPacFastjs.on2(c,".wp-get-place","click",function(){var d=c.querySelector(".wp-place").value;/^ChIJ.*$/.test(d)?(c.querySelector(".wp-places").innerHTML=
218
- "",b.details(a,c,d,!0)):b.textsearch(a,c,d);return!1})},textsearch:function(a,b,c){var d=this,e=b.querySelector(".wp-gkey").value,f=this.getLang();jQuery.get(a.app_host,{cf_action:"textsearch",query:c,key:e,lang:f,_textsearch_wpnonce:jQuery(a.nonce).val()},function(g){if("GOOGLE_COULDNT_CONNECT"==g.error)WPacXDM.post("https://app.widgetpack.com","https://app.widgetpack.com/widget/google-review/place",{query:c,key:e,lang:f},function(c){return d.textsearchCallback(a,b,c.error,c)});else return d.textsearchCallback(a,
219
- b,g.error,g.places)},"json")},textsearchCallback:function(a,b,c,d){var e=b.querySelector(".wp-gkey").parentNode.parentNode;if("OVER_QUERY_LIMIT"==c)WPacFastjs.show2(e),WPacFastjs.addcl(e,"has-error");else if(WPacFastjs.remcl(e,"has-error"),c=b.querySelector(".wp-places"),!d||1>d.length)c.innerHTML='<div class="wp-place-info">Business place not found.<br><br>Please check that this place can be found in <a href="https://developers.google.com/maps/documentation/javascript/examples/places-placeid-finder" target="_blank">Google PlaceID Finder</a>, if so just a copy <b>Place ID</b> to a search field and search again.</div>';
220
  else{c.innerHTML="";var f=this;WPacFastjs.each(d,function(c){f.place(a,b,c,function(c,d){WPacFastjs.on(d,"click",function(){var e=b.querySelector(".wp-place-info.wp-active");WPacFastjs.remcl(e,"wp-active");WPacFastjs.addcl(d,"wp-active");f.details(a,b,c.place_id,!1)})})});c.appendChild(f.powered_by_google(a))}},place:function(a,b,c,d){a=b.querySelector(".wp-places");b=WPacFastjs.create("div","wp-place-info media",c.formatted_address);b.innerHTML=doT.template(this._PLACE_HTML)({place:c});a.appendChild(b);
221
- c.rating&&(b.querySelector(".wp-gstars").innerHTML=WPacStars.rating_render(c.rating,16,"e7711b"));return d&&d(c,b)},details:function(a,b,c,d){var e=this,f=b.querySelector(".wp-gkey").value,g=this.getLang();jQuery.get(a.app_host,{cf_action:"details",placeid:c,key:f,lang:g,_textsearch_wpnonce:jQuery(a.nonce).val()},function(h){if("GOOGLE_COULDNT_CONNECT"==h.error)WPacXDM.post("https://app.widgetpack.com","https://app.widgetpack.com/widget/google-review/review",{placeid:c,key:f,lang:g},function(c){return e.detailsCallback(a,
222
  b,c,d,e.saveJSON)});else return e.detailsCallback(a,b,h,d,e.save)},"json")},detailsCallback:function(a,b,c,d,e){var f=b.querySelector(".wp-gkey").parentNode.parentNode;if("OVER_QUERY_LIMIT"==c.error)WPacFastjs.show2(f),WPacFastjs.addcl(f,"has-error");else{WPacFastjs.remcl(f,"has-error");var g=b.querySelector(".wp-reviews");if(c.place&&(!c.place.reviews||1>c.place.reviews.length))g.innerHTML='<div class="wp-place-info">There are no reviews yet for this business</div>';else{g.innerHTML="";d&&this.place(a,
223
  b,c.place,function(a,b){WPacFastjs.addcl(b,"wp-active")});var h=this;WPacFastjs.each(c.place.reviews,function(b){var c=WPacFastjs.create("div","wp-place-info media");c.innerHTML=doT.template(h._REVIEW_HTML)({review:b,text:h.text(a,b.text),time:WPacTime.getTime(parseInt(1E3*b.time),a.lang,"ago"),defava:"https://lh3.googleusercontent.com/-8hepWJzFXpE/AAAAAAAAAAI/AAAAAAAAAAA/I80WzYfIxCQ/s64-c/114307615494839964028.jpg"});g.appendChild(c);c.querySelector(".wp-gstars").innerHTML=WPacStars.rating_render(b.rating,
224
  14,"e7711b")});g.appendChild(h.powered_by_google(a));(d=WPacFastjs.next(g))&&WPacFastjs.rm(d);d=WPacFastjs.create("button","btn btn-block btn-primary");d.innerHTML="Save Place and Reviews";WPacFastjs.after(g,d);WPacFastjs.on(d,"click",function(){e(a,b,c);return!1})}}},save:function(a,b,c){jQuery.post(a.app_host+"&cf_action=save",{placeid:c.place.place_id,key:b.querySelector(".wp-gkey").value,_textsearch_wpnonce:jQuery(a.nonce).val()},function(d){var e=b.querySelector(".wp-gkey").parentNode.parentNode;
175
  "0 0 256 256"),vkontakte:b(64,64,"0 0 110 110","7,82","M1917 1016q23 -64 -150 -294q-24 -32 -65 -85q-78 -100 -90 -131q-17 -41 14 -81q17 -21 81 -82h1l1 -1l1 -1l2 -2q141 -131 191 -221q3 -5 6.5 -12.5t7 -26.5t-0.5 -34t-25 -27.5t-59 -12.5l-256 -4q-24 -5 -56 5t-52 22l-20 12q-30 21 -70 64t-68.5 77.5t-61 58 t-56.5 15.5q-3 -1 -8 -3.5t-17 -14.5t-21.5 -29.5t-17 -52t-6.5 -77.5q0 -15 -3.5 -27.5t-7.5 -18.5l-4 -5q-18 -19 -53 -22h-115q-71 -4 -146 16.5t-131.5 53t-103 66t-70.5 57.5l-25 24q-10 10 -27.5 30t-71.5 91t-106 151t-122.5 211t-130.5 272q-6 16 -6 27t3 16l4 6 q15 19 57 19l274 2q12 -2 23 -6.5t16 -8.5l5 -3q16 -11 24 -32q20 -50 46 -103.5t41 -81.5l16 -29q29 -60 56 -104t48.5 -68.5t41.5 -38.5t34 -14t27 5q2 1 5 5t12 22t13.5 47t9.5 81t0 125q-2 40 -9 73t-14 46l-6 12q-25 34 -85 43q-13 2 5 24q17 19 38 30q53 26 239 24 q82 -1 135 -13q20 -5 33.5 -13.5t20.5 -24t10.5 -32t3.5 -45.5t-1 -55t-2.5 -70.5t-1.5 -82.5q0 -11 -1 -42t-0.5 -48t3.5 -40.5t11.5 -39t22.5 -24.5q8 -2 17 -4t26 11t38 34.5t52 67t68 107.5q60 104 107 225q4 10 10 17.5t11 10.5l4 3l5 2.5t13 3t20 0.5l288 2 q39 5 64 -2.5t31 -16.5z"),
176
  odnoklassniki:b(64,64,"0 0 105 105","20,84","M640 629q-188 0 -321 133t-133 320q0 188 133 321t321 133t321 -133t133 -321q0 -187 -133 -320t-321 -133zM640 1306q-92 0 -157.5 -65.5t-65.5 -158.5q0 -92 65.5 -157.5t157.5 -65.5t157.5 65.5t65.5 157.5q0 93 -65.5 158.5t-157.5 65.5zM1163 574q13 -27 15 -49.5 t-4.5 -40.5t-26.5 -38.5t-42.5 -37t-61.5 -41.5q-115 -73 -315 -94l73 -72l267 -267q30 -31 30 -74t-30 -73l-12 -13q-31 -30 -74 -30t-74 30q-67 68 -267 268l-267 -268q-31 -30 -74 -30t-73 30l-12 13q-31 30 -31 73t31 74l267 267l72 72q-203 21 -317 94 q-39 25 -61.5 41.5t-42.5 37t-26.5 38.5t-4.5 40.5t15 49.5q10 20 28 35t42 22t56 -2t65 -35q5 -4 15 -11t43 -24.5t69 -30.5t92 -24t113 -11q91 0 174 25.5t120 50.5l38 25q33 26 65 35t56 2t42 -22t28 -35z"),
177
  mailru:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="114" height="114" viewBox="0 0 114 114"><path fill="#fff" d="M41.93,30.296c-3.896,0-7.066,3.169-7.066,7.065s3.17,7.067,7.066,7.067s7.064-3.171,7.064-7.067 S45.825,30.296,41.93,30.296z"></path><path fill="#fff" d="M72.223,30.296c-3.896,0-7.065,3.169-7.065,7.065s3.17,7.067,7.065,7.067s7.064-3.171,7.064-7.067 S76.117,30.296,72.223,30.296z"></path><path fill="#fff" d="M96.324,77.49c0.299-1.112,0.146-2.273-0.428-3.271l-8.785-15.268c-0.769-1.332-2.199-2.16-3.738-2.16 c-0.75,0-1.492,0.199-2.146,0.576c-0.998,0.574-1.711,1.502-2.012,2.613c-0.299,1.111-0.146,2.272,0.428,3.271l0.703,1.226 l-0.342,0.494c-4.232,6.111-13.26,10.061-22.994,10.061c-9.67,0-18.668-3.911-22.926-9.965l-0.352-0.5l0.754-1.289 c1.199-2.049,0.507-4.694-1.543-5.896c-0.66-0.385-1.41-0.589-2.17-0.589c-1.528,0-2.955,0.816-3.725,2.133l-8.935,15.27 c-1.199,2.05-0.507,4.695,1.543,5.895c0.659,0.387,1.411,0.59,2.172,0.59c1.527,0,2.954-0.815,3.724-2.132l3.496-5.974l0.871,0.876 c6.447,6.481,16.32,10.2,27.09,10.2c10.778,0,20.658-3.725,27.104-10.215l0.879-0.885l3.436,5.969 c0.768,1.332,2.2,2.159,3.739,2.159c0.751,0,1.492-0.198,2.144-0.573C95.311,79.529,96.023,78.602,96.324,77.49z"></path></svg>',
178
+ icon:function(b,e,f){return a(e,e,f||"#666",c[b])}}}();var WPacTime=WPacTime||{getTime:function(a,b,c){return"chat"==c?this.getChatTime(a,b||"en"):c?this.getFormatTime(a,c,b||"en"):this.getDefaultTime(a,b||"en")},getChatTime:function(a,b){var c=((new Date).getTime()-a)/1E3/60/60,d=c/24;return 24>c?this.getFormatTime(a,"HH:mm",b):365>d?this.getFormatTime(a,"dd.MM HH:mm",b):this.getFormatTime(a,"yyyy.MM.dd HH:mm",b)},getDefaultTime:function(a,b){return this.getTimeAgo(a,b)},getTimeAgo:function(a,b){var c=((new Date).getTime()-a)/1E3,d=c/60,e=d/60,f=e/24,
179
  g=f/365;b=WPacTime.Messages[b]?b:"en";return 45>c?WPacTime.Messages[b].second:90>c?WPacTime.Messages[b].minute:45>d?WPacTime.Messages[b].minutes(d):90>d?WPacTime.Messages[b].hour:24>e?WPacTime.Messages[b].hours(e):48>e?WPacTime.Messages[b].day:30>f?WPacTime.Messages[b].days(f):60>f?WPacTime.Messages[b].month:365>f?WPacTime.Messages[b].months(f):2>g?WPacTime.Messages[b].year:WPacTime.Messages[b].years(g)},getTime12:function(a,b){var c=new Date(a);return(c.getHours()%12?c.getHours()%12:12)+":"+c.getMinutes()+
180
  (12<=c.getHours()?" PM":" AM")},getFormatTime:function(a,b,c){var d=new Date(a),e={SS:d.getMilliseconds(),ss:d.getSeconds(),mm:d.getMinutes(),HH:d.getHours(),hh:(d.getHours()%12?d.getHours()%12:12)+(12<=d.getHours()?"PM":"AM"),dd:d.getDate(),MM:d.getMonth()+1,yyyy:d.getFullYear(),yy:String(d.getFullYear()).toString().substr(2,2),ago:this.getTimeAgo(a,c),12:this.getTime12(a,c)};return b.replace(/(SS|ss|mm|HH|hh|DD|dd|MM|yyyy|yy|ago|12)/g,function(a,b){var c=e[b];return 10>c?"0"+c:c})},declineNum:function(a,
181
  b,c,d){return a+" "+this.declineMsg(a,b,c,d)},declineMsg:function(a,b,c,d,e){var f=a%10;return 1==f&&(1==a||20<a)?b:1<f&&5>f&&(20<a||10>a)?c:a?d:e}};
215
  b.getAttribute("data-hover");c&&"off"!=c||(c=b.querySelector("path"),c.setAttribute("d",WPacSVGIcon.path.star),c.setAttribute("fill",this.color(a.color)),b.setAttribute("data-hover","on"));this.prevHover(a,WPacFastjs.prev(b))}},nextHover:function(a,b){var c=WPacFastjs.next(b);if(c){var d=c.getAttribute("data-hover");d&&"on"!=d||(d=c.querySelector("path"),d.setAttribute("d",WPacSVGIcon.path.star_o),d.setAttribute("fill","#ccc"),c.setAttribute("data-hover","off"));this.nextHover(a,c)}}};var GRPPlaceFinder=GRPPlaceFinder||{_HTML:'<div class="wp-gri"><div class="row"><div class="col-sm-4"><div class="form form400 form-horizontal"><h4 class="text-left"><span class="wp-step">1</span>Find Place</h4><div class="form-group"><div class="col-sm-12"><input type="text" class="wp-place form-control" placeholder="Google Place Search Query"></div></div><div class="form-group wp-gkey-cnt" style="display:none"><div class="col-sm-12"><input type="text" class="wp-gkey form-control" placeholder="Google API Key" {{?it.google_api_key}}value="{{=it.google_api_key}}"{{?}}><small>Default limit of requests to Google Places API exceeded, to continue <a href="https://developers.google.com/places/web-service/get-api-key" target="_blank">get Google Places API key</a></small></div></div><div class="form-group"><div class="col-sm-12"><button class="wp-get-place btn btn-block btn-primary">Search Place</button></div></div><div class="form-group"><div class="col-sm-12"><h4 class="text-left"><span class="wp-step">2</span>Choice Place</h4><div class="wp-places"></div></div></div><div class="form-group"><div class="col-sm-12"><h4 class="text-left"><span class="wp-step">3</span>Save Place</h4><div class="wp-reviews"></div></div></div></div></div>{{?it.post_content}}{{=it.post_content}}{{?}}</div></div>',
216
  _PLACE_HTML:'<div class="media-left"><img class="media-object" src="{{=it.place.icon}}" alt="{{=it.place.name}}" style="width:32px;height:32px;"></div><div class="media-body"><h5 class="media-heading">{{=it.place.name}}</h5><div>{{?it.place.rating}}<span class="wp-grating">{{=it.place.rating}}</span><span class="wp-gstars"></span>{{?}}</div><small class="text-muted">{{=it.place.formatted_address}}</small></div>',_REVIEW_HTML:'<div class="media-left"><img class="media-object" src="{{=it.review.profile_photo_url || it.defava}}" alt="{{=it.review.author_name}}" onerror="if(this.src!=\'{{=it.defava}}\')this.src=\'{{=it.defava}}\';"></div><div class="media-body"><div class="media-heading"><a href="{{=it.review.author_url}}" target="_blank">{{=it.review.author_name}}</a></div><div class="wp-gtime">{{=it.time}}</div><div class="wp-gtext"><span class="wp-gstars"></span> {{=it.text}}</div></div>',
217
  _TEXT_HTML:'{{!it.t}} {{?it.h}}<span class="wp-more">{{!it.h}}</span><span class="wp-more-toggle" onclick="this.previousSibling.className=\'\';this.textContent=\'\';">read more</span>{{?}}',main:function(a){var b=this,c=document.getElementById(a.el||"wpac-greview-install");c.innerHTML=doT.template(b._HTML)({post_content:a.post_content,google_api_key:a.google_api_key});WPacFastjs.on2(c,".wp-get-place","click",function(){var d=c.querySelector(".wp-place").value;/^ChIJ.*$/.test(d)?(c.querySelector(".wp-places").innerHTML=
218
+ "",b.details(a,c,d,!0)):b.textsearch(a,c,d);return!1});WPacFastjs.cbs(a,"ready")},textsearch:function(a,b,c){var d=this,e=b.querySelector(".wp-gkey").value,f=this.getLang();jQuery.get(a.app_host,{cf_action:"textsearch",query:c,key:e,lang:f,_textsearch_wpnonce:jQuery(a.nonce).val()},function(g){if("GOOGLE_COULDNT_CONNECT"==g.error)WPacXDM.post("https://embed.widgetpack.com","https://app.widgetpack.com/widget/google-review/place",{query:c,key:e,lang:f},function(c){return d.textsearchCallback(a,b,c.error,
219
+ c)});else return d.textsearchCallback(a,b,g.error,g.places)},"json")},textsearchCallback:function(a,b,c,d){var e=b.querySelector(".wp-gkey").parentNode.parentNode;if("OVER_QUERY_LIMIT"==c)WPacFastjs.show2(e),WPacFastjs.addcl(e,"has-error");else if(WPacFastjs.remcl(e,"has-error"),c=b.querySelector(".wp-places"),!d||1>d.length)c.innerHTML='<div class="wp-place-info">Business place not found.<br><br>Please check that this place can be found in <a href="https://developers.google.com/maps/documentation/javascript/examples/places-placeid-finder" target="_blank">Google PlaceID Finder</a>, if so just a copy <b>Place ID</b> to a search field and search again.</div>';
220
  else{c.innerHTML="";var f=this;WPacFastjs.each(d,function(c){f.place(a,b,c,function(c,d){WPacFastjs.on(d,"click",function(){var e=b.querySelector(".wp-place-info.wp-active");WPacFastjs.remcl(e,"wp-active");WPacFastjs.addcl(d,"wp-active");f.details(a,b,c.place_id,!1)})})});c.appendChild(f.powered_by_google(a))}},place:function(a,b,c,d){a=b.querySelector(".wp-places");b=WPacFastjs.create("div","wp-place-info media",c.formatted_address);b.innerHTML=doT.template(this._PLACE_HTML)({place:c});a.appendChild(b);
221
+ c.rating&&(b.querySelector(".wp-gstars").innerHTML=WPacStars.rating_render(c.rating,16,"e7711b"));return d&&d(c,b)},details:function(a,b,c,d){var e=this,f=b.querySelector(".wp-gkey").value,g=this.getLang();jQuery.get(a.app_host,{cf_action:"details",placeid:c,key:f,lang:g,_textsearch_wpnonce:jQuery(a.nonce).val()},function(h){if("GOOGLE_COULDNT_CONNECT"==h.error)WPacXDM.post("https://embed.widgetpack.com","https://app.widgetpack.com/widget/google-review/review",{placeid:c,key:f,lang:g},function(c){return e.detailsCallback(a,
222
  b,c,d,e.saveJSON)});else return e.detailsCallback(a,b,h,d,e.save)},"json")},detailsCallback:function(a,b,c,d,e){var f=b.querySelector(".wp-gkey").parentNode.parentNode;if("OVER_QUERY_LIMIT"==c.error)WPacFastjs.show2(f),WPacFastjs.addcl(f,"has-error");else{WPacFastjs.remcl(f,"has-error");var g=b.querySelector(".wp-reviews");if(c.place&&(!c.place.reviews||1>c.place.reviews.length))g.innerHTML='<div class="wp-place-info">There are no reviews yet for this business</div>';else{g.innerHTML="";d&&this.place(a,
223
  b,c.place,function(a,b){WPacFastjs.addcl(b,"wp-active")});var h=this;WPacFastjs.each(c.place.reviews,function(b){var c=WPacFastjs.create("div","wp-place-info media");c.innerHTML=doT.template(h._REVIEW_HTML)({review:b,text:h.text(a,b.text),time:WPacTime.getTime(parseInt(1E3*b.time),a.lang,"ago"),defava:"https://lh3.googleusercontent.com/-8hepWJzFXpE/AAAAAAAAAAI/AAAAAAAAAAA/I80WzYfIxCQ/s64-c/114307615494839964028.jpg"});g.appendChild(c);c.querySelector(".wp-gstars").innerHTML=WPacStars.rating_render(b.rating,
224
  14,"e7711b")});g.appendChild(h.powered_by_google(a));(d=WPacFastjs.next(g))&&WPacFastjs.rm(d);d=WPacFastjs.create("button","btn btn-block btn-primary");d.innerHTML="Save Place and Reviews";WPacFastjs.after(g,d);WPacFastjs.on(d,"click",function(){e(a,b,c);return!1})}}},save:function(a,b,c){jQuery.post(a.app_host+"&cf_action=save",{placeid:c.place.place_id,key:b.querySelector(".wp-gkey").value,_textsearch_wpnonce:jQuery(a.nonce).val()},function(d){var e=b.querySelector(".wp-gkey").parentNode.parentNode;
static/js/grp-time.js CHANGED
@@ -1,4 +1,4 @@
1
- var WPacTime=WPacTime||{getTime:function(a,b,c){return"chat"==c?this.getChatTime(a,b||"ru"):c?this.getFormatTime(a,c,b||"ru"):this.getDefaultTime(a,b||"ru")},getChatTime:function(a,b){var c=((new Date).getTime()-a)/1E3/60/60,d=c/24;return 24>c?this.getFormatTime(a,"HH:mm",b):365>d?this.getFormatTime(a,"dd.MM HH:mm",b):this.getFormatTime(a,"yyyy.MM.dd HH:mm",b)},getDefaultTime:function(a,b){return this.getTimeAgo(a,b)},getTimeAgo:function(a,b){var c=((new Date).getTime()-a)/1E3,d=c/60,f=d/60,e=f/24,
2
  g=e/365;b=WPacTime.Messages[b]?b:"en";return 45>c?WPacTime.Messages[b].second:90>c?WPacTime.Messages[b].minute:45>d?WPacTime.Messages[b].minutes(d):90>d?WPacTime.Messages[b].hour:24>f?WPacTime.Messages[b].hours(f):48>f?WPacTime.Messages[b].day:30>e?WPacTime.Messages[b].days(e):60>e?WPacTime.Messages[b].month:365>e?WPacTime.Messages[b].months(e):2>g?WPacTime.Messages[b].year:WPacTime.Messages[b].years(g)},getTime12:function(a,b){var c=new Date(a);return(c.getHours()%12?c.getHours()%12:12)+":"+c.getMinutes()+
3
  (12<=c.getHours()?" PM":" AM")},getFormatTime:function(a,b,c){var d=new Date(a),f={SS:d.getMilliseconds(),ss:d.getSeconds(),mm:d.getMinutes(),HH:d.getHours(),hh:(d.getHours()%12?d.getHours()%12:12)+(12<=d.getHours()?"PM":"AM"),dd:d.getDate(),MM:d.getMonth()+1,yyyy:d.getFullYear(),yy:String(d.getFullYear()).toString().substr(2,2),ago:this.getTimeAgo(a,c),12:this.getTime12(a,c)};return b.replace(/(SS|ss|mm|HH|hh|DD|dd|MM|yyyy|yy|ago|12)/g,function(a,b){var c=f[b];return 10>c?"0"+c:c})},declineNum:function(a,
4
  b,c,d){return a+" "+this.declineMsg(a,b,c,d)},declineMsg:function(a,b,c,d,f){var e=a%10;return 1==e&&(1==a||20<a)?b:1<e&&5>e&&(20<a||10>a)?c:a?d:f}};
1
+ var WPacTime=WPacTime||{getTime:function(a,b,c){return"chat"==c?this.getChatTime(a,b||"en"):c?this.getFormatTime(a,c,b||"en"):this.getDefaultTime(a,b||"en")},getChatTime:function(a,b){var c=((new Date).getTime()-a)/1E3/60/60,d=c/24;return 24>c?this.getFormatTime(a,"HH:mm",b):365>d?this.getFormatTime(a,"dd.MM HH:mm",b):this.getFormatTime(a,"yyyy.MM.dd HH:mm",b)},getDefaultTime:function(a,b){return this.getTimeAgo(a,b)},getTimeAgo:function(a,b){var c=((new Date).getTime()-a)/1E3,d=c/60,f=d/60,e=f/24,
2
  g=e/365;b=WPacTime.Messages[b]?b:"en";return 45>c?WPacTime.Messages[b].second:90>c?WPacTime.Messages[b].minute:45>d?WPacTime.Messages[b].minutes(d):90>d?WPacTime.Messages[b].hour:24>f?WPacTime.Messages[b].hours(f):48>f?WPacTime.Messages[b].day:30>e?WPacTime.Messages[b].days(e):60>e?WPacTime.Messages[b].month:365>e?WPacTime.Messages[b].months(e):2>g?WPacTime.Messages[b].year:WPacTime.Messages[b].years(g)},getTime12:function(a,b){var c=new Date(a);return(c.getHours()%12?c.getHours()%12:12)+":"+c.getMinutes()+
3
  (12<=c.getHours()?" PM":" AM")},getFormatTime:function(a,b,c){var d=new Date(a),f={SS:d.getMilliseconds(),ss:d.getSeconds(),mm:d.getMinutes(),HH:d.getHours(),hh:(d.getHours()%12?d.getHours()%12:12)+(12<=d.getHours()?"PM":"AM"),dd:d.getDate(),MM:d.getMonth()+1,yyyy:d.getFullYear(),yy:String(d.getFullYear()).toString().substr(2,2),ago:this.getTimeAgo(a,c),12:this.getTime12(a,c)};return b.replace(/(SS|ss|mm|HH|hh|DD|dd|MM|yyyy|yy|ago|12)/g,function(a,b){var c=f[b];return 10>c?"0"+c:c})},declineNum:function(a,
4
  b,c,d){return a+" "+this.declineMsg(a,b,c,d)},declineMsg:function(a,b,c,d,f){var e=a%10;return 1==e&&(1==a||20<a)?b:1<e&&5>e&&(20<a||10>a)?c:a?d:f}};