Google Reviews Widget - Version 1.47

Version Description

  • Added localization for German (de_DE)
Download this release

Release Info

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

Code changes from version 1.46 to 1.47

grw-reviews-helper.php CHANGED
@@ -53,7 +53,7 @@ function grw_place_reviews($place, $reviews, $place_id, $text_size) {
53
  if (strlen($review->author_name) > 0) {
54
  $author_name = $review->author_name;
55
  } else {
56
- $author_name = 'Google User';
57
  }
58
  ?><div class="wp-google-name"><?php echo $author_name; ?></div><?php
59
  }
@@ -70,7 +70,7 @@ function grw_place_reviews($place, $reviews, $place_id, $text_size) {
70
  }
71
  ?>
72
  </div>
73
- <?php grw_anchor($place->url, 'wp-google-url', 'See All Reviews', true, true); ?>
74
  <?php
75
  }
76
 
@@ -129,7 +129,7 @@ function grw_trim_text($text, $size) {
129
  }
130
  echo $visible_text;
131
  if (strlen($invisible_text) > 0) {
132
- ?><span class="wp-more"><?php echo $invisible_text; ?></span><span class="wp-more-toggle" onclick="this.previousSibling.className='';this.textContent='';">read more</span><?php
133
  }
134
  } else {
135
  echo $text;
53
  if (strlen($review->author_name) > 0) {
54
  $author_name = $review->author_name;
55
  } else {
56
+ $author_name = grw_i('Google User');
57
  }
58
  ?><div class="wp-google-name"><?php echo $author_name; ?></div><?php
59
  }
70
  }
71
  ?>
72
  </div>
73
+ <?php $seeAllReviews = grw_i('See All Reviews'); grw_anchor($place->url, 'wp-google-url', $seeAllReviews, true, true); ?>
74
  <?php
75
  }
76
 
129
  }
130
  echo $visible_text;
131
  if (strlen($invisible_text) > 0) {
132
+ ?><span class="wp-more"><?php echo $invisible_text; ?></span><span class="wp-more-toggle" onclick="this.previousSibling.className='';this.textContent='';"><?php echo grw_i('read more'); ?></span><?php
133
  }
134
  } else {
135
  echo $text;
grw-reviews.php CHANGED
@@ -35,7 +35,7 @@ if ($place->rating > 0) {
35
  <div class="wp-google-badge-btn">
36
  <img class="wp-google-logo" src="<?php echo GRW_PLUGIN_URL; ?>/static/img/google_rating_logo_36.png" alt="powered by Google">
37
  <div class="wp-google-badge-score">
38
- <div>Google Rating</div>
39
  <span class="wp-google-rating"><?php echo $rating; ?></span>
40
  <span class="wp-google-stars"><?php grw_stars($rating); ?></span>
41
  </div>
35
  <div class="wp-google-badge-btn">
36
  <img class="wp-google-logo" src="<?php echo GRW_PLUGIN_URL; ?>/static/img/google_rating_logo_36.png" alt="powered by Google">
37
  <div class="wp-google-badge-score">
38
+ <div><?php echo grw_i('Google Rating'); ?></div>
39
  <span class="wp-google-rating"><?php echo $rating; ?></span>
40
  <span class="wp-google-stars"><?php grw_stars($rating); ?></span>
41
  </div>
grw.php CHANGED
@@ -4,7 +4,7 @@ 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.46
8
  Author URI: https://googlereviews.pro/
9
  */
10
 
@@ -12,7 +12,7 @@ require(ABSPATH . 'wp-includes/version.php');
12
 
13
  require_once(dirname(__FILE__) . '/api/grw-api.php');
14
 
15
- define('GRW_VERSION', '1.46');
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__)));
@@ -335,6 +335,12 @@ function grw_save_reviews($place, $min_filter = 0) {
335
  }
336
  }
337
 
 
 
 
 
 
 
338
  /*-------------------------------- Helpers --------------------------------*/
339
  function grw_enabled() {
340
  global $id, $post;
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.47
8
  Author URI: https://googlereviews.pro/
9
  */
10
 
12
 
13
  require_once(dirname(__FILE__) . '/api/grw-api.php');
14
 
15
+ define('GRW_VERSION', '1.47');
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__)));
335
  }
336
  }
337
 
338
+ function grw_lang_init() {
339
+ $plugin_dir = basename(dirname(__FILE__));
340
+ load_plugin_textdomain('grw', false, basename( dirname( __FILE__ ) ) . '/languages');
341
+ }
342
+ add_action('plugins_loaded', 'grw_lang_init');
343
+
344
  /*-------------------------------- Helpers --------------------------------*/
345
  function grw_enabled() {
346
  global $id, $post;
languages/grw-de_DE.mo ADDED
Binary file
languages/grw-de_DE.po ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Language: de_DE\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 "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"
readme.txt CHANGED
@@ -4,7 +4,7 @@ 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
5
  Requires at least: 2.8
6
  Tested up to: 4.6
7
- Stable tag: 1.46
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -62,6 +62,9 @@ Live demo: [http://widgetsforsite.com/](http://widgetsforsite.com/)
62
 
63
  == Changelog ==
64
 
 
 
 
65
  = 1.46 =
66
  * Bugfix: remove unused variable
67
 
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
5
  Requires at least: 2.8
6
  Tested up to: 4.6
7
+ Stable tag: 1.47
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
62
 
63
  == Changelog ==
64
 
65
+ = 1.47 =
66
+ * Added localization for German (de_DE)
67
+
68
  = 1.46 =
69
  * Bugfix: remove unused variable
70