Widgets for Google Reviews - Version 7.4

Version Description

Download this release

Release Info

Developer trustindex
Plugin Icon 128x128 Widgets for Google Reviews
Version 7.4
Comparing to
See all releases

Code changes from version 7.3 to 7.4

Files changed (77) hide show
  1. languages/trustindex-af.mo +0 -0
  2. languages/trustindex-ar.mo +0 -0
  3. languages/trustindex-ary.mo +0 -0
  4. languages/trustindex-az.mo +0 -0
  5. languages/trustindex-azb.mo +0 -0
  6. languages/trustindex-bg_BG.mo +0 -0
  7. languages/trustindex-bn_BD.mo +0 -0
  8. languages/trustindex-bs_BA.mo +0 -0
  9. languages/trustindex-cs_CZ.mo +0 -0
  10. languages/trustindex-cy.mo +0 -0
  11. languages/trustindex-da_DK.mo +0 -0
  12. languages/trustindex-de_AT.mo +0 -0
  13. languages/trustindex-de_CH.mo +0 -0
  14. languages/trustindex-de_CH_informal.mo +0 -0
  15. languages/trustindex-de_DE.mo +0 -0
  16. languages/trustindex-de_DE_formal.mo +0 -0
  17. languages/trustindex-el.mo +0 -0
  18. languages/trustindex-es_AR.mo +0 -0
  19. languages/trustindex-es_CL.mo +0 -0
  20. languages/trustindex-es_CO.mo +0 -0
  21. languages/trustindex-es_CR.mo +0 -0
  22. languages/trustindex-es_ES.mo +0 -0
  23. languages/trustindex-es_GT.mo +0 -0
  24. languages/trustindex-es_MX.mo +0 -0
  25. languages/trustindex-es_PE.mo +0 -0
  26. languages/trustindex-es_PR.mo +0 -0
  27. languages/trustindex-es_UY.mo +0 -0
  28. languages/trustindex-es_VE.mo +0 -0
  29. languages/trustindex-et.mo +0 -0
  30. languages/trustindex-fi.mo +0 -0
  31. languages/trustindex-fr_BR.mo +0 -0
  32. languages/trustindex-fr_CA.mo +0 -0
  33. languages/trustindex-fr_FR.mo +0 -0
  34. languages/trustindex-gd.mo +0 -0
  35. languages/trustindex-he_IL.mo +0 -0
  36. languages/trustindex-hi_IN.mo +0 -0
  37. languages/trustindex-hr.mo +0 -0
  38. languages/trustindex-hu_HU.mo +0 -0
  39. languages/trustindex-id_ID.mo +0 -0
  40. languages/trustindex-is_IS.mo +0 -0
  41. languages/trustindex-it_IT.mo +0 -0
  42. languages/trustindex-ja.mo +0 -0
  43. languages/trustindex-ko_KR.mo +0 -0
  44. languages/trustindex-lt_LT.mo +0 -0
  45. languages/trustindex-mk_MK.mo +0 -0
  46. languages/trustindex-ms_MY.mo +0 -0
  47. languages/trustindex-nb_NO.mo +0 -0
  48. languages/trustindex-nl_BE.mo +0 -0
  49. languages/trustindex-nl_NL.mo +0 -0
  50. languages/trustindex-nl_NL_formal.mo +0 -0
  51. languages/trustindex-nn_NO.mo +0 -0
  52. languages/trustindex-pl_PL.mo +0 -0
  53. languages/trustindex-pt_AO.mo +0 -0
  54. languages/trustindex-pt_BR.mo +0 -0
  55. languages/trustindex-pt_PT.mo +0 -0
  56. languages/trustindex-pt_PT_ao90.mo +0 -0
  57. languages/trustindex-ro_RO.mo +0 -0
  58. languages/trustindex-ru_RU.mo +0 -0
  59. languages/trustindex-sk_SK.mo +0 -0
  60. languages/trustindex-sl_SI.mo +0 -0
  61. languages/trustindex-sq.mo +0 -0
  62. languages/trustindex-sr_RS.mo +0 -0
  63. languages/trustindex-sv_SE.mo +0 -0
  64. languages/trustindex-th.mo +0 -0
  65. languages/trustindex-tr_TR.mo +0 -0
  66. languages/trustindex-uk.mo +0 -0
  67. languages/trustindex-vi.mo +0 -0
  68. languages/trustindex-zh_CN.mo +0 -0
  69. languages/trustindex-zh_HK.mo +0 -0
  70. languages/trustindex-zh_TW.mo +0 -0
  71. readme.txt +3 -3
  72. tabs/setup_no_reg.php +1 -1
  73. tabs/setup_no_reg_header.php +0 -3
  74. tabs/troubleshooting.php +1 -1
  75. trustindex-plugin.class.php +111 -25
  76. uninstall.php +1 -1
  77. wp-reviews-plugin-for-google.php +2 -2
languages/trustindex-af.mo CHANGED
Binary file
languages/trustindex-ar.mo CHANGED
Binary file
languages/trustindex-ary.mo CHANGED
Binary file
languages/trustindex-az.mo CHANGED
Binary file
languages/trustindex-azb.mo CHANGED
Binary file
languages/trustindex-bg_BG.mo CHANGED
Binary file
languages/trustindex-bn_BD.mo CHANGED
Binary file
languages/trustindex-bs_BA.mo ADDED
Binary file
languages/trustindex-cs_CZ.mo CHANGED
Binary file
languages/trustindex-cy.mo ADDED
Binary file
languages/trustindex-da_DK.mo CHANGED
Binary file
languages/trustindex-de_AT.mo CHANGED
Binary file
languages/trustindex-de_CH.mo CHANGED
Binary file
languages/trustindex-de_CH_informal.mo CHANGED
Binary file
languages/trustindex-de_DE.mo CHANGED
Binary file
languages/trustindex-de_DE_formal.mo CHANGED
Binary file
languages/trustindex-el.mo CHANGED
Binary file
languages/trustindex-es_AR.mo CHANGED
Binary file
languages/trustindex-es_CL.mo CHANGED
Binary file
languages/trustindex-es_CO.mo CHANGED
Binary file
languages/trustindex-es_CR.mo CHANGED
Binary file
languages/trustindex-es_ES.mo CHANGED
Binary file
languages/trustindex-es_GT.mo CHANGED
Binary file
languages/trustindex-es_MX.mo CHANGED
Binary file
languages/trustindex-es_PE.mo CHANGED
Binary file
languages/trustindex-es_PR.mo CHANGED
Binary file
languages/trustindex-es_UY.mo CHANGED
Binary file
languages/trustindex-es_VE.mo CHANGED
Binary file
languages/trustindex-et.mo CHANGED
Binary file
languages/trustindex-fi.mo CHANGED
Binary file
languages/trustindex-fr_BR.mo CHANGED
Binary file
languages/trustindex-fr_CA.mo CHANGED
Binary file
languages/trustindex-fr_FR.mo CHANGED
Binary file
languages/trustindex-gd.mo CHANGED
Binary file
languages/trustindex-he_IL.mo CHANGED
Binary file
languages/trustindex-hi_IN.mo CHANGED
Binary file
languages/trustindex-hr.mo CHANGED
Binary file
languages/trustindex-hu_HU.mo CHANGED
Binary file
languages/trustindex-id_ID.mo CHANGED
Binary file
languages/trustindex-is_IS.mo CHANGED
Binary file
languages/trustindex-it_IT.mo CHANGED
Binary file
languages/trustindex-ja.mo CHANGED
Binary file
languages/trustindex-ko_KR.mo CHANGED
Binary file
languages/trustindex-lt_LT.mo CHANGED
Binary file
languages/trustindex-mk_MK.mo CHANGED
Binary file
languages/trustindex-ms_MY.mo CHANGED
Binary file
languages/trustindex-nb_NO.mo CHANGED
Binary file
languages/trustindex-nl_BE.mo CHANGED
Binary file
languages/trustindex-nl_NL.mo CHANGED
Binary file
languages/trustindex-nl_NL_formal.mo CHANGED
Binary file
languages/trustindex-nn_NO.mo CHANGED
Binary file
languages/trustindex-pl_PL.mo CHANGED
Binary file
languages/trustindex-pt_AO.mo CHANGED
Binary file
languages/trustindex-pt_BR.mo CHANGED
Binary file
languages/trustindex-pt_PT.mo CHANGED
Binary file
languages/trustindex-pt_PT_ao90.mo CHANGED
Binary file
languages/trustindex-ro_RO.mo CHANGED
Binary file
languages/trustindex-ru_RU.mo CHANGED
Binary file
languages/trustindex-sk_SK.mo CHANGED
Binary file
languages/trustindex-sl_SI.mo CHANGED
Binary file
languages/trustindex-sq.mo CHANGED
Binary file
languages/trustindex-sr_RS.mo CHANGED
Binary file
languages/trustindex-sv_SE.mo CHANGED
Binary file
languages/trustindex-th.mo CHANGED
Binary file
languages/trustindex-tr_TR.mo CHANGED
Binary file
languages/trustindex-uk.mo CHANGED
Binary file
languages/trustindex-vi.mo CHANGED
Binary file
languages/trustindex-zh_CN.mo CHANGED
Binary file
languages/trustindex-zh_HK.mo CHANGED
Binary file
languages/trustindex-zh_TW.mo CHANGED
Binary file
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: google, google places reviews, reviews, widget, google business, review, t
5
  Requires at least: 3.0.1
6
  Tested up to: 5.8
7
  Requires PHP: 5.2
8
- Stable tag: 7.3
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
  Plugin Name: Widgets for Google Reviews
@@ -14,7 +14,7 @@ Plugin URI: https://wordpress.org/plugins/wp-reviews-plugin-for-google/
14
  Author: Trustindex.io <support@trustindex.io>
15
  Author URI: https://www.trustindex.io/
16
  Text Domain: wp-reviews-plugin-for-google
17
- Version: 7.3
18
 
19
  Embed Google reviews fast and easily into your WordPress site. Increase SEO, trust and sales using Google Business reviews.
20
 
@@ -129,7 +129,7 @@ Why not display your other ratings, too? Check out our other free review plugins
129
  If your company does business globally, it’s in your interest to cater to various languages.
130
 
131
  Our Widgets for Google Reviews supports the following languages:
132
- Afrikaans, Albanian, Arabic, Azerbaijani, Bengali, Bulgarian, Chinese, Croatian, Czech, Danish, Dutch, English, Estonian, Finnish, French, German, Greek, Hebrew, Hindi, Hungarian, Icelandic, Indonesian, Italian, Japanese, Korean, Lithuanian, Macedonian, Malay, Norwegian, Polish, Portuguese, Romanian, Russian, Scottish Gaelic, Serbian, Slovak, Slovenian, Spanish, Swedish, Thai, Turkish, Ukranian, Vietnamese
133
 
134
  == Support ==
135
 
5
  Requires at least: 3.0.1
6
  Tested up to: 5.8
7
  Requires PHP: 5.2
8
+ Stable tag: 7.4
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
  Plugin Name: Widgets for Google Reviews
14
  Author: Trustindex.io <support@trustindex.io>
15
  Author URI: https://www.trustindex.io/
16
  Text Domain: wp-reviews-plugin-for-google
17
+ Version: 7.4
18
 
19
  Embed Google reviews fast and easily into your WordPress site. Increase SEO, trust and sales using Google Business reviews.
20
 
129
  If your company does business globally, it’s in your interest to cater to various languages.
130
 
131
  Our Widgets for Google Reviews supports the following languages:
132
+ Afrikaans, Albanian, Arabic, Azerbaijani, Bengali, Bosnian, Bulgarian, Chinese, Croatian, Czech, Danish, Dutch, English, Estonian, Finnish, French, German, Greek, Hebrew, Hindi, Hungarian, Icelandic, Indonesian, Italian, Japanese, Korean, Lithuanian, Macedonian, Malay, Norwegian, Polish, Portuguese, Romanian, Russian, Scottish Gaelic, Serbian, Slovak, Slovenian, Spanish, Swedish, Thai, Turkish, Ukranian, Vietnamese, Welsh
133
 
134
  == Support ==
135
 
tabs/setup_no_reg.php CHANGED
@@ -104,7 +104,7 @@ value=""
104
  <?php echo $trustindex_pm_google->get_trustindex_widget('2d9bf9019f8d93ad1430e9135'); ?>
105
  </div>
106
  </div>
107
-
108
  <?php elseif($current_step == 2 || !$style_id): ?>
109
  <h1 class="ti-free-title">
110
  2. <?php echo TrustindexPlugin::___('Select Layout'); ?>
104
  <?php echo $trustindex_pm_google->get_trustindex_widget('2d9bf9019f8d93ad1430e9135'); ?>
105
  </div>
106
  </div>
107
+ <?php include( plugin_dir_path(__FILE__ ) . "demo_widgets.php" ); ?>
108
  <?php elseif($current_step == 2 || !$style_id): ?>
109
  <h1 class="ti-free-title">
110
  2. <?php echo TrustindexPlugin::___('Select Layout'); ?>
tabs/setup_no_reg_header.php CHANGED
@@ -339,10 +339,7 @@ $style_id = null;
339
  $scss_set = null;
340
  $widget_setted_up = null;
341
  }
342
- else
343
- {
344
  wp_enqueue_style("trustindex-widget-preview-css", "https://cdn.trustindex.io/assets/ti-preview-box.css");
345
- }
346
  $example = 'HairPalace';
347
  $example_url = null;
348
  switch("google")
339
  $scss_set = null;
340
  $widget_setted_up = null;
341
  }
 
 
342
  wp_enqueue_style("trustindex-widget-preview-css", "https://cdn.trustindex.io/assets/ti-preview-box.css");
 
343
  $example = 'HairPalace';
344
  $example_url = null;
345
  switch("google")
tabs/troubleshooting.php CHANGED
@@ -25,7 +25,7 @@ exit;
25
  }
26
  $yes_icon = '<span class="dashicons dashicons-yes-alt"></span>';
27
  $no_icon = '<span class="dashicons dashicons-dismiss"></span>';
28
- $plugin_updated = ($trustindex_pm_google->get_plugin_current_version() <= "7.3");
29
  $widget_nonce = get_option($trustindex_pm_google->get_option_name('widget-nonce'), 1);
30
  ?>
31
  <div class="ti-box">
25
  }
26
  $yes_icon = '<span class="dashicons dashicons-yes-alt"></span>';
27
  $no_icon = '<span class="dashicons dashicons-dismiss"></span>';
28
+ $plugin_updated = ($trustindex_pm_google->get_plugin_current_version() <= "7.4");
29
  $widget_nonce = get_option($trustindex_pm_google->get_option_name('widget-nonce'), 1);
30
  ?>
31
  <div class="ti-box">
trustindex-plugin.class.php CHANGED
@@ -1,5 +1,5 @@
1
  <?php
2
- /* GENERATED: 1634976944 */
3
  class TrustindexPlugin
4
  {
5
  private $plugin_file_path;
@@ -373,7 +373,7 @@ $chosed_platform_slug = $this->plugin_slugs[ $force_platform ];
373
  $current_platform_slug = $this->plugin_slugs[ $this->shortname ];
374
  $file_path = preg_replace('/\/[^\/]+\/trustindex-plugin\.class\.php/', "/$chosed_platform_slug/trustindex-plugin.class.php", $file_path);
375
  }
376
- $chosed_platform = new TrustindexPlugin($force_platform, $file_path, "do-not-care-7.3", "do-not-care-Widgets for Google Reviews", "do-not-care-Google");
377
  if(!$chosed_platform->is_noreg_linked() || !$chosed_platform->is_noreg_table_exists($force_platform))
378
  {
379
  return self::get_alertbox(
@@ -736,6 +736,8 @@ public static $widget_languages = [
736
  'af' => 'Afrikaans',
737
  'az' => 'Azərbaycan dili',
738
  'bn' => 'বাংলা',
 
 
739
  ];
740
  public static $widget_dateformats = [ 'j. F, Y.', 'F j, Y.', 'Y.m.d.', 'Y-m-d', 'd/m/Y' ];
741
  private static $widget_rating_texts = array (
@@ -869,11 +871,11 @@ private static $widget_rating_texts = array (
869
  ),
870
  'pl' =>
871
  array (
872
- 0 => 'Śłaby',
873
- 1 => 'Poniżej średniego',
874
- 2 => 'Średni',
875
- 3 => 'Dobry',
876
- 4 => 'Doskonały',
877
  ),
878
  'pt' =>
879
  array (
@@ -957,7 +959,7 @@ private static $widget_rating_texts = array (
957
  ),
958
  'hr' =>
959
  array (
960
- 0 => 'siromašan',
961
  1 => 'ispod prosjeka',
962
  2 => 'prosjed',
963
  3 => 'dobro',
@@ -1013,11 +1015,11 @@ private static $widget_rating_texts = array (
1013
  ),
1014
  'sr' =>
1015
  array (
1016
- 0 => 'јадан',
1017
- 1 => 'испод просека',
1018
- 2 => 'просек',
1019
  3 => 'Добро',
1020
- 4 => 'одличан',
1021
  ),
1022
  'th' =>
1023
  array (
@@ -1083,6 +1085,22 @@ private static $widget_rating_texts = array (
1083
  3 => 'ভাল',
1084
  4 => 'চমৎকার',
1085
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1086
  );
1087
  private static $widget_recommendation_texts = array (
1088
  'en' =>
@@ -1167,7 +1185,7 @@ private static $widget_recommendation_texts = array (
1167
  ),
1168
  'pl' =>
1169
  array (
1170
- 'negative' => 'NOT_RECOMMEND_ICON nie zaleca',
1171
  'positive' => 'RECOMMEND_ICON poleca',
1172
  ),
1173
  'pt' =>
@@ -1300,6 +1318,16 @@ private static $widget_recommendation_texts = array (
1300
  'negative' => 'NOT_RECOMMEND_ICON সুপারিশ করে না',
1301
  'positive' => 'RECOMMEND_ICON সুপারিশ করে',
1302
  ),
 
 
 
 
 
 
 
 
 
 
1303
  );
1304
  private static $widget_verified_texts = array (
1305
  'en' => 'Verified',
@@ -1345,6 +1373,8 @@ private static $widget_verified_texts = array (
1345
  'af' => 'Geverifieer',
1346
  'az' => 'Doğrulanmışdır',
1347
  'bn' => 'যাচাই',
 
 
1348
  );
1349
  private static $widget_month_names = array (
1350
  'en' =>
@@ -1863,11 +1893,11 @@ private static $widget_month_names = array (
1863
  1 => 'Фебруар',
1864
  2 => 'Март',
1865
  3 => 'Април',
1866
- 4 => 'мај',
1867
  5 => 'Јуни',
1868
  6 => 'Јул',
1869
  7 => 'Август',
1870
- 8 => 'септембар',
1871
  9 => 'Октобар',
1872
  10 => 'Новембар',
1873
  11 => 'Децембар',
@@ -1992,6 +2022,36 @@ private static $widget_month_names = array (
1992
  10 => 'নভেম্বর',
1993
  11 => 'ডিসেম্বর',
1994
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1995
  );
1996
  private static $page_urls = array (
1997
  'facebook' => 'https://www.facebook.com/pg/%page_id%',
@@ -2111,16 +2171,29 @@ $no_rating_text = in_array($style_id, [ 15, 19 ]) ? 1 : 0;
2111
  }
2112
  if($default_reviews)
2113
  {
2114
- $page_details['rating_number'] = 9;
 
 
 
 
 
 
 
 
 
 
 
 
 
2115
  if($this->is_ten_scale_rating_platform())
2116
  {
2117
- $page_details['rating_score'] = number_format(rand(10, 100) / 10, 1);
2118
  }
2119
  else
2120
  {
2121
- $page_details['rating_score'] = rand(1, 5);
2122
  }
2123
- $reviews = $this->getRandomReviews();
2124
  }
2125
  else
2126
  {
@@ -2566,17 +2639,30 @@ $text .= '<span class="ti-star e"></span>';
2566
  }
2567
  return $text;
2568
  }
2569
- private function getRandomReviews()
2570
- {
 
 
 
 
 
 
 
 
 
 
 
2571
  $reviews = [];
2572
- for($i = 0; $i < 9; $i++)
2573
  {
 
 
2574
  $r = new stdClass();
2575
  $r->id = $i;
2576
- $r->user = self::___('Reviewer');
2577
  $r->user_photo = 'https://cdn.trustindex.io/assets/default-avatar/noprofile-01.svg';
2578
- $r->text = self::___('This is an example review about your business (to demonstrate the widgets...)');
2579
- $r->original_rating = rand(1, 5);
2580
  $r->rating = $r->original_rating;
2581
  $r->highlight = null;
2582
  $r->date = date('Y-m-d');
1
  <?php
2
+ /* GENERATED: 1636535063 */
3
  class TrustindexPlugin
4
  {
5
  private $plugin_file_path;
373
  $current_platform_slug = $this->plugin_slugs[ $this->shortname ];
374
  $file_path = preg_replace('/\/[^\/]+\/trustindex-plugin\.class\.php/', "/$chosed_platform_slug/trustindex-plugin.class.php", $file_path);
375
  }
376
+ $chosed_platform = new TrustindexPlugin($force_platform, $file_path, "do-not-care-7.4", "do-not-care-Widgets for Google Reviews", "do-not-care-Google");
377
  if(!$chosed_platform->is_noreg_linked() || !$chosed_platform->is_noreg_table_exists($force_platform))
378
  {
379
  return self::get_alertbox(
736
  'af' => 'Afrikaans',
737
  'az' => 'Azərbaycan dili',
738
  'bn' => 'বাংলা',
739
+ 'bs' => 'Bosanski',
740
+ 'cy' => 'Cymraeg'
741
  ];
742
  public static $widget_dateformats = [ 'j. F, Y.', 'F j, Y.', 'Y.m.d.', 'Y-m-d', 'd/m/Y' ];
743
  private static $widget_rating_texts = array (
871
  ),
872
  'pl' =>
873
  array (
874
+ 0 => 'Słaba',
875
+ 1 => 'Poniżej średniej',
876
+ 2 => 'Średnia',
877
+ 3 => 'Dobra',
878
+ 4 => 'Doskonała',
879
  ),
880
  'pt' =>
881
  array (
959
  ),
960
  'hr' =>
961
  array (
962
+ 0 => 'slabo',
963
  1 => 'ispod prosjeka',
964
  2 => 'prosjed',
965
  3 => 'dobro',
1015
  ),
1016
  'sr' =>
1017
  array (
1018
+ 0 => 'Слабо',
1019
+ 1 => 'Испод просека',
1020
+ 2 => 'Просек',
1021
  3 => 'Добро',
1022
+ 4 => 'Oдлично',
1023
  ),
1024
  'th' =>
1025
  array (
1085
  3 => 'ভাল',
1086
  4 => 'চমৎকার',
1087
  ),
1088
+ 'bs' =>
1089
+ array (
1090
+ 0 => 'jadan',
1091
+ 1 => 'ispod prosjeka',
1092
+ 2 => 'prosjek',
1093
+ 3 => 'dobro',
1094
+ 4 => 'odličan',
1095
+ ),
1096
+ 'cy' =>
1097
+ array (
1098
+ 0 => 'gwael',
1099
+ 1 => 'islaw\'r cyfartaledd',
1100
+ 2 => 'cyffredin',
1101
+ 3 => 'da',
1102
+ 4 => 'rhagorol',
1103
+ ),
1104
  );
1105
  private static $widget_recommendation_texts = array (
1106
  'en' =>
1185
  ),
1186
  'pl' =>
1187
  array (
1188
+ 'negative' => 'NOT_RECOMMEND_ICON nie poleca',
1189
  'positive' => 'RECOMMEND_ICON poleca',
1190
  ),
1191
  'pt' =>
1318
  'negative' => 'NOT_RECOMMEND_ICON সুপারিশ করে না',
1319
  'positive' => 'RECOMMEND_ICON সুপারিশ করে',
1320
  ),
1321
+ 'bs' =>
1322
+ array (
1323
+ 'negative' => 'NOT_RECOMMEND_ICON ne preporučuje',
1324
+ 'positive' => 'RECOMMEND_ICON preporučuje',
1325
+ ),
1326
+ 'cy' =>
1327
+ array (
1328
+ 'negative' => 'NOT_RECOMMEND_ICON ddim yn argymell',
1329
+ 'positive' => 'RECOMMEND_ICON yn argymell',
1330
+ ),
1331
  );
1332
  private static $widget_verified_texts = array (
1333
  'en' => 'Verified',
1373
  'af' => 'Geverifieer',
1374
  'az' => 'Doğrulanmışdır',
1375
  'bn' => 'যাচাই',
1376
+ 'bs' => 'Provjereno',
1377
+ 'cy' => 'Wedi\'i ddilysu',
1378
  );
1379
  private static $widget_month_names = array (
1380
  'en' =>
1893
  1 => 'Фебруар',
1894
  2 => 'Март',
1895
  3 => 'Април',
1896
+ 4 => 'Mај',
1897
  5 => 'Јуни',
1898
  6 => 'Јул',
1899
  7 => 'Август',
1900
+ 8 => 'Cептембар',
1901
  9 => 'Октобар',
1902
  10 => 'Новембар',
1903
  11 => 'Децембар',
2022
  10 => 'নভেম্বর',
2023
  11 => 'ডিসেম্বর',
2024
  ),
2025
+ 'bs' =>
2026
+ array (
2027
+ 0 => 'Januar',
2028
+ 1 => 'Februar',
2029
+ 2 => 'Mart',
2030
+ 3 => 'April',
2031
+ 4 => 'Maj',
2032
+ 5 => 'Jun',
2033
+ 6 => 'Jul',
2034
+ 7 => 'Avgust',
2035
+ 8 => 'Septembar',
2036
+ 9 => 'Oktobar',
2037
+ 10 => 'Novembar',
2038
+ 11 => 'Decembar',
2039
+ ),
2040
+ 'cy' =>
2041
+ array (
2042
+ 0 => 'Ionawr',
2043
+ 1 => 'Chwefror',
2044
+ 2 => 'Mawrth',
2045
+ 3 => 'Ebrill',
2046
+ 4 => 'Mai',
2047
+ 5 => 'Mehefin',
2048
+ 6 => 'Gorffennaf',
2049
+ 7 => 'Awst',
2050
+ 8 => 'Medi',
2051
+ 9 => 'Hydref',
2052
+ 10 => 'Tachwedd',
2053
+ 11 => 'Rhagfyr',
2054
+ ),
2055
  );
2056
  private static $page_urls = array (
2057
  'facebook' => 'https://www.facebook.com/pg/%page_id%',
2171
  }
2172
  if($default_reviews)
2173
  {
2174
+ if(!isset($page_details['avatar_url']))
2175
+ {
2176
+ $page_details['avatar_url'] = 'https://cdn.trustindex.io/companies/default_avatar.jpg';
2177
+ }
2178
+ $rating_num = 5;
2179
+ if(in_array($style_id, [ 16, 31 ]))
2180
+ {
2181
+ $rating_num = 9;
2182
+ }
2183
+ else if(in_array(self::$widget_templates[ 'templates' ][ $style_id ]['type'], [ 'sidebar', 'list' ]))
2184
+ {
2185
+ $rating_num = 3;
2186
+ }
2187
+ $page_details['rating_number'] = $rating_num;
2188
  if($this->is_ten_scale_rating_platform())
2189
  {
2190
+ $page_details['rating_score'] = number_format(rand(80, 100) / 10, 1);
2191
  }
2192
  else
2193
  {
2194
+ $page_details['rating_score'] = rand(4, 5);
2195
  }
2196
+ $reviews = $this->getRandomReviews($rating_num);
2197
  }
2198
  else
2199
  {
2639
  }
2640
  return $text;
2641
  }
2642
+ private function getRandomReviews($count = 9)
2643
+ {
2644
+ $random_texts = [
2645
+ 'Works very well, does the job, very easy to set up.',
2646
+ 'O plugin excede expectativas! Com ele, é possível acrescentar as avaliações do Google ao site com um design altamente customizável e configuração em poucos cliques.',
2647
+ '<strong>I have been using this firm for many...</strong><br />I have been using this firm for many years now for my office supplies and I find them excellent. Deliveries 99% next day. Stock excellent. Problem solving excellent. Prices excellent. Keep up the good service',
2648
+ 'Very good! We ordered the breaded mushrooms as a appetizer, wish I had some now!<br /><br />I ordered the slow cooked beef and Guinness stew form dinner and my boyfriend got the bangers and mash, both were delicious! And it was so nice to have a hearty warm meal with it being chilly outside.<br /><br />Would definitely recommend to friends and family visiting and I would come back myself as well',
2649
+ 'Was so impressed with the facilities. Everything very seamlessly integrated, no snags in decor etc. Loved the ambient lighting - everything was on a dimmer! Bed was very comfy, and bathroom beautifully presented! Staff were more than helpful, with the hotel boasting an extremely up-market feel for the price! Highly recommended',
2650
+ 'Smooth online transaction. very professional and reputable with solid communication',
2651
+ 'Good selection. Reasonable prices. Easy to use website. Prompt delivery.',
2652
+ 'Wonderful products, great service.',
2653
+ 'As always very pleased with the service and the packaging! I have yet to try all the different aromas but I’m sure they will be good as usual.'
2654
+ ];
2655
  $reviews = [];
2656
+ for($i = 0; $i < $count; $i++)
2657
  {
2658
+ shuffle($random_texts);
2659
+ $text = array_pop($random_texts);
2660
  $r = new stdClass();
2661
  $r->id = $i;
2662
+ $r->user = self::___('Reviewer') .' '. ($i + 1);
2663
  $r->user_photo = 'https://cdn.trustindex.io/assets/default-avatar/noprofile-01.svg';
2664
+ $r->text = '<p style="font-size:11px;font-style:italic;opacity:0.8;margin:0;margin-bottom:4px">'. self::___('Example review to demonstrate the widgets...') .'</p>'. $text;
2665
+ $r->original_rating = rand(4, 5);
2666
  $r->rating = $r->original_rating;
2667
  $r->highlight = null;
2668
  $r->date = date('Y-m-d');
uninstall.php CHANGED
@@ -1,5 +1,5 @@
1
  <?php
2
  require_once plugin_dir_path( __FILE__ ) . 'plugin-load.php';
3
- $trustindex_pm_google = new TrustindexPlugin("google", __FILE__, "7.3", "Widgets for Google Reviews", "Google");
4
  $trustindex_pm_google->uninstall();
5
  ?>
1
  <?php
2
  require_once plugin_dir_path( __FILE__ ) . 'plugin-load.php';
3
+ $trustindex_pm_google = new TrustindexPlugin("google", __FILE__, "7.4", "Widgets for Google Reviews", "Google");
4
  $trustindex_pm_google->uninstall();
5
  ?>
wp-reviews-plugin-for-google.php CHANGED
@@ -9,7 +9,7 @@ Author: Trustindex.io <support@trustindex.io>
9
  Author URI: https://www.trustindex.io/
10
  Contributors: trustindex
11
  License: GPLv2 or later
12
- Version: 7.3
13
  Text Domain: wp-reviews-plugin-for-google
14
  Domain Path: /languages/
15
  Donate link: https://www.trustindex.io/prices/
@@ -25,7 +25,7 @@ $plugin_slug = $tmp[ count($tmp) - 2 ];
25
  if(1)
26
  {
27
  require_once plugin_dir_path( __FILE__ ) . 'plugin-load.php';
28
- $trustindex_pm_google = new TrustindexPlugin("google", __FILE__, "7.3", "Widgets for Google Reviews", "Google");
29
  }
30
  register_activation_hook(__FILE__, array($trustindex_pm_google, 'activate'));
31
  register_deactivation_hook(__FILE__, array($trustindex_pm_google, 'deactivate'));
9
  Author URI: https://www.trustindex.io/
10
  Contributors: trustindex
11
  License: GPLv2 or later
12
+ Version: 7.4
13
  Text Domain: wp-reviews-plugin-for-google
14
  Domain Path: /languages/
15
  Donate link: https://www.trustindex.io/prices/
25
  if(1)
26
  {
27
  require_once plugin_dir_path( __FILE__ ) . 'plugin-load.php';
28
+ $trustindex_pm_google = new TrustindexPlugin("google", __FILE__, "7.4", "Widgets for Google Reviews", "Google");
29
  }
30
  register_activation_hook(__FILE__, array($trustindex_pm_google, 'activate'));
31
  register_deactivation_hook(__FILE__, array($trustindex_pm_google, 'deactivate'));