Version Description
Download this release
Release Info
Developer | trustindex |
Plugin | Widgets for Google Reviews |
Version | 9.7 |
Comparing to | |
See all releases |
Code changes from version 6.9.2 to 9.7
- languages/trustindex-af.mo +0 -0
- languages/trustindex-ar.mo +0 -0
- languages/trustindex-ary.mo +0 -0
- languages/trustindex-az.mo +0 -0
- languages/trustindex-azb.mo +0 -0
- languages/trustindex-bg_BG.mo +0 -0
- languages/trustindex-bn_BD.mo +0 -0
- languages/trustindex-bs_BA.mo +0 -0
- languages/trustindex-cs_CZ.mo +0 -0
- languages/trustindex-cy.mo +0 -0
- languages/trustindex-da_DK.mo +0 -0
- languages/trustindex-de_AT.mo +0 -0
- languages/trustindex-de_CH.mo +0 -0
- languages/trustindex-de_CH_informal.mo +0 -0
- languages/trustindex-de_DE.mo +0 -0
- languages/trustindex-de_DE_formal.mo +0 -0
- languages/trustindex-el.mo +0 -0
- languages/trustindex-es_AR.mo +0 -0
- languages/trustindex-es_CL.mo +0 -0
- languages/trustindex-es_CO.mo +0 -0
- languages/trustindex-es_CR.mo +0 -0
- languages/trustindex-es_ES.mo +0 -0
- languages/trustindex-es_GT.mo +0 -0
- languages/trustindex-es_MX.mo +0 -0
- languages/trustindex-es_PE.mo +0 -0
- languages/trustindex-es_PR.mo +0 -0
- languages/trustindex-es_UY.mo +0 -0
- languages/trustindex-es_VE.mo +0 -0
- languages/trustindex-et.mo +0 -0
- languages/trustindex-fa_AF.mo +0 -0
- languages/trustindex-fa_IR.mo +0 -0
- languages/trustindex-fi.mo +0 -0
- languages/trustindex-fr_BR.mo +0 -0
- languages/trustindex-fr_CA.mo +0 -0
- languages/trustindex-fr_FR.mo +0 -0
- languages/trustindex-gd.mo +0 -0
- languages/trustindex-gl_ES.mo +0 -0
- languages/trustindex-he_IL.mo +0 -0
- languages/trustindex-hi_IN.mo +0 -0
- languages/trustindex-hr.mo +0 -0
- languages/trustindex-hu_HU.mo +0 -0
- languages/trustindex-hy.mo +0 -0
- languages/trustindex-id_ID.mo +0 -0
- languages/trustindex-is_IS.mo +0 -0
- languages/trustindex-it_IT.mo +0 -0
- languages/trustindex-ja.mo +0 -0
- languages/trustindex-ka_GE.mo +0 -0
- languages/trustindex-kk.mo +0 -0
- languages/trustindex-ko_KR.mo +0 -0
- languages/trustindex-lt_LT.mo +0 -0
- languages/trustindex-mk_MK.mo +0 -0
- languages/trustindex-ms_MY.mo +0 -0
- languages/trustindex-nb_NO.mo +0 -0
- languages/trustindex-nl_BE.mo +0 -0
- languages/trustindex-nl_NL.mo +0 -0
- languages/trustindex-nl_NL_formal.mo +0 -0
- languages/trustindex-nn_NO.mo +0 -0
- languages/trustindex-pl_PL.mo +0 -0
- languages/trustindex-pt_AO.mo +0 -0
- languages/trustindex-pt_BR.mo +0 -0
- languages/trustindex-pt_PT.mo +0 -0
- languages/trustindex-pt_PT_ao90.mo +0 -0
- languages/trustindex-ro_RO.mo +0 -0
- languages/trustindex-ru_RU.mo +0 -0
- languages/trustindex-sk_SK.mo +0 -0
- languages/trustindex-sl_SI.mo +0 -0
- languages/trustindex-sq.mo +0 -0
- languages/trustindex-sr_RS.mo +0 -0
- languages/trustindex-sv_SE.mo +0 -0
- languages/trustindex-th.mo +0 -0
- languages/trustindex-tr_TR.mo +0 -0
- languages/trustindex-uk.mo +0 -0
- languages/trustindex-vi.mo +0 -0
- languages/trustindex-zh_CN.mo +0 -0
- languages/trustindex-zh_HK.mo +0 -0
- languages/trustindex-zh_TW.mo +0 -0
- readme.txt +2 -2
- static/js/admin-page-settings-connect.js +2 -0
- tabs/my_reviews.php +1 -1
- tabs/setup_no_reg.php +21 -2
- tabs/troubleshooting.php +1 -1
- trustindex-plugin.class.php +69 -2
- uninstall.php +1 -1
- wp-reviews-plugin-for-google.php +3 -3
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
CHANGED
Binary file
|
languages/trustindex-cs_CZ.mo
CHANGED
Binary file
|
languages/trustindex-cy.mo
CHANGED
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-fa_AF.mo
CHANGED
Binary file
|
languages/trustindex-fa_IR.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-gl_ES.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-hy.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-ka_GE.mo
CHANGED
Binary file
|
languages/trustindex-kk.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: 6.1
|
7 |
Requires PHP: 5.2
|
8 |
-
Stable tag: 9.
|
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: 9.
|
18 |
|
19 |
Embed Google reviews fast and easily into your WordPress site. Increase SEO, trust and sales using Google reviews.
|
20 |
|
5 |
Requires at least: 3.0.1
|
6 |
Tested up to: 6.1
|
7 |
Requires PHP: 5.2
|
8 |
+
Stable tag: 9.7
|
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: 9.7
|
18 |
|
19 |
Embed Google reviews fast and easily into your WordPress site. Increase SEO, trust and sales using Google reviews.
|
20 |
|
static/js/admin-page-settings-connect.js
CHANGED
@@ -60,6 +60,8 @@ jQuery(document).ready(function($) {
|
|
60 |
|| page_id.search(/\-\/[^\/]{2}\/[^\/]{2}$/) > -1
|
61 |
)
|
62 |
&& page_id.indexOf("product-reviews/") == -1
|
|
|
|
|
63 |
);
|
64 |
}
|
65 |
else if(Trustindex_Connect.form.data('platform') == 'tripadvisor')
|
60 |
|| page_id.search(/\-\/[^\/]{2}\/[^\/]{2}$/) > -1
|
61 |
)
|
62 |
&& page_id.indexOf("product-reviews/") == -1
|
63 |
+
&& page_id.indexOf("/AccountInfo/") == -1
|
64 |
+
&& page_id.indexOf("/SellerProfileView/") == -1
|
65 |
);
|
66 |
}
|
67 |
else if(Trustindex_Connect.form.data('platform') == 'tripadvisor')
|
tabs/my_reviews.php
CHANGED
@@ -137,7 +137,7 @@ $download_timestamp = get_option($trustindex_pm_google->get_option_name('downloa
|
|
137 |
<input type="hidden" id="ti-noreg-page-id" value="<?php echo esc_attr($page_details['id']); ?>" />
|
138 |
<input type="hidden" id="ti-noreg-webhook-url" value="<?php echo $trustindex_pm_google->get_webhook_url(); ?>" />
|
139 |
<input type="hidden" id="ti-noreg-email" value="<?php echo get_option('admin_email'); ?>" />
|
140 |
-
<input type="hidden" id="ti-noreg-version" value="9.
|
141 |
<?php if(isset($page_details['access_token'])): ?>
|
142 |
<input type="hidden" id="ti-noreg-access-token" value="<?php echo esc_attr($page_details['access_token']); ?>" />
|
143 |
<?php endif; ?>
|
137 |
<input type="hidden" id="ti-noreg-page-id" value="<?php echo esc_attr($page_details['id']); ?>" />
|
138 |
<input type="hidden" id="ti-noreg-webhook-url" value="<?php echo $trustindex_pm_google->get_webhook_url(); ?>" />
|
139 |
<input type="hidden" id="ti-noreg-email" value="<?php echo get_option('admin_email'); ?>" />
|
140 |
+
<input type="hidden" id="ti-noreg-version" value="9.7" />
|
141 |
<?php if(isset($page_details['access_token'])): ?>
|
142 |
<input type="hidden" id="ti-noreg-access-token" value="<?php echo esc_attr($page_details['access_token']); ?>" />
|
143 |
<?php endif; ?>
|
tabs/setup_no_reg.php
CHANGED
@@ -122,7 +122,7 @@ update_option($trustindex_pm_google->get_option_name('review-download-token'), $
|
|
122 |
<input type="hidden" id="ti-noreg-connect-token" name="ti-noreg-connect-token" value="<?php echo $review_download_token; ?>" />
|
123 |
<input type="hidden" id="ti-noreg-webhook-url" value="<?php echo $trustindex_pm_google->get_webhook_url(); ?>" />
|
124 |
<input type="hidden" id="ti-noreg-email" value="<?php echo get_option('admin_email'); ?>" />
|
125 |
-
<input type="hidden" id="ti-noreg-version" value="9.
|
126 |
<input type="hidden" id="ti-noreg-review-download" name="review_download" value="0" />
|
127 |
<input type="hidden" id="ti-noreg-review-request-id" name="review_request_id" value="" />
|
128 |
<input type="hidden" id="ti-noreg-manual-download" name="manual_download" value=0 />
|
@@ -319,7 +319,26 @@ $widget_has_reviews = !in_array($widget_type, [ 'button', 'badge' ]) || in_array
|
|
319 |
<?php wp_nonce_field( 'save-dateformat_'.$trustindex_pm_google->get_plugin_slug(), '_wpnonce_dateformat' ); ?>
|
320 |
<select class="form-control" name="dateformat" id="ti-dateformat-id">
|
321 |
<?php foreach(TrustindexPlugin_google::$widget_dateformats as $format): ?>
|
322 |
-
<option value="<?php echo esc_attr($format); ?>" <?php echo $dateformat == $format ? 'selected' : ''; ?>><?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
323 |
<?php endforeach; ?>
|
324 |
</select>
|
325 |
</form>
|
122 |
<input type="hidden" id="ti-noreg-connect-token" name="ti-noreg-connect-token" value="<?php echo $review_download_token; ?>" />
|
123 |
<input type="hidden" id="ti-noreg-webhook-url" value="<?php echo $trustindex_pm_google->get_webhook_url(); ?>" />
|
124 |
<input type="hidden" id="ti-noreg-email" value="<?php echo get_option('admin_email'); ?>" />
|
125 |
+
<input type="hidden" id="ti-noreg-version" value="9.7" />
|
126 |
<input type="hidden" id="ti-noreg-review-download" name="review_download" value="0" />
|
127 |
<input type="hidden" id="ti-noreg-review-request-id" name="review_request_id" value="" />
|
128 |
<input type="hidden" id="ti-noreg-manual-download" name="manual_download" value=0 />
|
319 |
<?php wp_nonce_field( 'save-dateformat_'.$trustindex_pm_google->get_plugin_slug(), '_wpnonce_dateformat' ); ?>
|
320 |
<select class="form-control" name="dateformat" id="ti-dateformat-id">
|
321 |
<?php foreach(TrustindexPlugin_google::$widget_dateformats as $format): ?>
|
322 |
+
<option value="<?php echo esc_attr($format); ?>" <?php echo $dateformat == $format ? 'selected' : ''; ?>><?php
|
323 |
+
switch($format)
|
324 |
+
{
|
325 |
+
case 'modern':
|
326 |
+
$lang = substr(get_locale(), 0, 2);
|
327 |
+
if(!in_array($lang, array_keys(TrustindexPlugin_google::$widget_date_format_locales)))
|
328 |
+
{
|
329 |
+
$lang = 'en';
|
330 |
+
}
|
331 |
+
$tmp = explode('|', TrustindexPlugin_google::$widget_date_format_locales[ $lang ]);
|
332 |
+
echo str_replace([ '%d', '%s' ], [ 2, $tmp[3] ], $tmp[0]);
|
333 |
+
break;
|
334 |
+
case 'hide':
|
335 |
+
echo TrustindexPlugin_google::___('Hide');
|
336 |
+
break;
|
337 |
+
default:
|
338 |
+
echo date($format);
|
339 |
+
break;
|
340 |
+
}
|
341 |
+
?></option>
|
342 |
<?php endforeach; ?>
|
343 |
</select>
|
344 |
</form>
|
tabs/troubleshooting.php
CHANGED
@@ -39,7 +39,7 @@ exit;
|
|
39 |
}
|
40 |
$yes_icon = '<span class="dashicons dashicons-yes-alt"></span>';
|
41 |
$no_icon = '<span class="dashicons dashicons-dismiss"></span>';
|
42 |
-
$plugin_updated = ($trustindex_pm_google->get_plugin_current_version() <= "9.
|
43 |
$css_inline = get_option($trustindex_pm_google->get_option_name('load-css-inline'), 0);
|
44 |
$css = get_option($trustindex_pm_google->get_option_name('css-content'));
|
45 |
?>
|
39 |
}
|
40 |
$yes_icon = '<span class="dashicons dashicons-yes-alt"></span>';
|
41 |
$no_icon = '<span class="dashicons dashicons-dismiss"></span>';
|
42 |
+
$plugin_updated = ($trustindex_pm_google->get_plugin_current_version() <= "9.7");
|
43 |
$css_inline = get_option($trustindex_pm_google->get_option_name('load-css-inline'), 0);
|
44 |
$css = get_option($trustindex_pm_google->get_option_name('css-content'));
|
45 |
?>
|
trustindex-plugin.class.php
CHANGED
@@ -459,7 +459,7 @@ $chosed_platform_slug = $this->plugin_slugs[ $force_platform ];
|
|
459 |
$current_platform_slug = $this->plugin_slugs[ $this->shortname ];
|
460 |
$file_path = preg_replace('/[^\/\\\\]+([\\\\\/]trustindex-plugin\.class\.php)/', $chosed_platform_slug . '$1', $file_path);
|
461 |
}
|
462 |
-
$chosed_platform = new self($force_platform, $file_path, "do-not-care-9.
|
463 |
if(!$chosed_platform->is_noreg_linked())
|
464 |
{
|
465 |
return $this->error_box_for_admins(self::___('You have to connect your business (%s)!', [$force_platform]));
|
@@ -2587,7 +2587,7 @@ public static $widget_languages = [
|
|
2587 |
'ka' => 'ქართული',
|
2588 |
'kk' => 'қазақ'
|
2589 |
];
|
2590 |
-
public static $widget_dateformats = [ 'j. F, Y.', 'F j, Y.', 'Y.m.d.', 'Y-m-d', 'd/m/Y' ];
|
2591 |
private static $widget_rating_texts = array (
|
2592 |
'en' =>
|
2593 |
array (
|
@@ -4121,6 +4121,58 @@ private static $dot_separated_languages = array (
|
|
4121 |
15 => 'ur',
|
4122 |
16 => 'zh',
|
4123 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4124 |
private static $page_urls = array (
|
4125 |
'facebook' => 'https://www.facebook.com/pg/%page_id%',
|
4126 |
'google' => 'https://www.google.com/maps/search/?api=1&query=Google&query_place_id=%page_id%',
|
@@ -4478,6 +4530,10 @@ if($class_appends)
|
|
4478 |
{
|
4479 |
$content = str_replace('" data-layout-id=', ' '. implode(' ', $class_appends) .'" data-layout-id=', $content);
|
4480 |
}
|
|
|
|
|
|
|
|
|
4481 |
if(!$only_preview)
|
4482 |
{
|
4483 |
if(!wp_style_is('ti-widget-css-' . $this->shortname, 'registered'))
|
@@ -4513,8 +4569,19 @@ $custom_attributes = 'data-empty="'. (empty($r->text) ? 1 : 0) .'"';
|
|
4513 |
$date = " ";
|
4514 |
if($r->date && $r->date != '0000-00-00')
|
4515 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4516 |
$date = str_replace(self::$widget_month_names['en'], self::$widget_month_names[$array['language']], date($array['dateformat'], strtotime($r->date)));
|
4517 |
}
|
|
|
4518 |
$rating_content = $this->get_rating_stars($r->rating);
|
4519 |
if($this->shortname == 'facebook' && in_array($r->rating, [ 1, 5 ]))
|
4520 |
{
|
459 |
$current_platform_slug = $this->plugin_slugs[ $this->shortname ];
|
460 |
$file_path = preg_replace('/[^\/\\\\]+([\\\\\/]trustindex-plugin\.class\.php)/', $chosed_platform_slug . '$1', $file_path);
|
461 |
}
|
462 |
+
$chosed_platform = new self($force_platform, $file_path, "do-not-care-9.7", "do-not-care-Widgets for Google Reviews", "do-not-care-Google");
|
463 |
if(!$chosed_platform->is_noreg_linked())
|
464 |
{
|
465 |
return $this->error_box_for_admins(self::___('You have to connect your business (%s)!', [$force_platform]));
|
2587 |
'ka' => 'ქართული',
|
2588 |
'kk' => 'қазақ'
|
2589 |
];
|
2590 |
+
public static $widget_dateformats = [ 'modern', 'j. F, Y.', 'F j, Y.', 'Y.m.d.', 'Y-m-d', 'd/m/Y', 'hide' ];
|
2591 |
private static $widget_rating_texts = array (
|
2592 |
'en' =>
|
2593 |
array (
|
4121 |
15 => 'ur',
|
4122 |
16 => 'zh',
|
4123 |
);
|
4124 |
+
public static $widget_date_format_locales = array (
|
4125 |
+
'en' => '%d %s ago|today|day|days|week|weeks|month|months|year|years',
|
4126 |
+
'fr' => 'il y a %d %s|aujourd\'hui|jour|jours|semaine|semaines|mois|mois|année|ans',
|
4127 |
+
'de' => 'vor %d %s|heute|tag|tagen|woche|wochen|monat|monaten|jahr|jahren',
|
4128 |
+
'es' => 'hace %d %s|hoy|día|días|semana|semanas|mes|meses|año|años',
|
4129 |
+
'ar' => '%d %s مضى|اليوم|يوم|أيام|أسبوع|أسابيع|شهر|شهور|سنة|سنوات',
|
4130 |
+
'cs' => 'před %d %s|dnes|dnem|dny|týdnem|týdny|měsícem|měsíci|rokem|roky',
|
4131 |
+
'da' => '%d %s siden|i dag|dag|dage|uge|uger|måned|måneder|år|år',
|
4132 |
+
'et' => '%d %s tagasi|täna|päev|päeva|nädal|nädalat|kuu|kuud|aasta|aastat',
|
4133 |
+
'el' => 'πριν από %d ημέρα|σήμερα|ημέρα|ημέρες|εβδομάδα|εβδομάδες|μήνα|μήνες|χρόνο|χρόνια',
|
4134 |
+
'fi' => '%d %s sitten|tänään|päivä|päivää|viikko|viikkoa|kuukausi|kuukautta|vuosi|vuotta',
|
4135 |
+
'hi' => '%d %s पहले|आज|दिन|दिन|सप्ताह|सप्ताह|महीने|महीने|वर्ष|वर्ष',
|
4136 |
+
'hu' => '%d %s|ma|napja|napja|hete|hete|hónapja|hónapja|éve|éve',
|
4137 |
+
'it' => '%d %s fa|oggi|giorno|giorni|settimana|settimane|mese|mesi|anno|anni',
|
4138 |
+
'ja' => '%d %s 前|今日|日|日|週間|週間|か月|か月|年|年',
|
4139 |
+
'nl' => '%d %s geleden|vandaag|dag|dagen|week|weken|maand|maanden|jaar|jaar',
|
4140 |
+
'no' => '%d %s siden|i dag|dag|dager|uke|uker|måned|måneder|år|år',
|
4141 |
+
'pl' => '%d %s temu|dziś|dzień|dni|tydzień|tygodni|miesiąc|miesięcy|rok|lat',
|
4142 |
+
'pt' => '%d %s atrás|hoje|dia|dias|semana|semanas|mês|meses|ano|anos',
|
4143 |
+
'ro' => 'acum %d %s|astăzi|zi|zile|săptămână|săptămâni|lună|luni|an|ani',
|
4144 |
+
'ru' => '%d %s назад|сегодня|день|дней|неделю|недель|месяц|месяцев|год|лет',
|
4145 |
+
'sl' => 'pred %d %s|danes|dnevom|dnevi|tednom|tedni|mesecem|meseci|letom|leti',
|
4146 |
+
'sk' => 'pred %d %s|dnes|dňom|dňami|týždňom|týždňami|mesiacom|mesiacmi|rokom|rokmi',
|
4147 |
+
'sv' => '%d %s sedan|i dag|dag|dagar|vecka|veckor|månad|månader|år|år',
|
4148 |
+
'tr' => '%d %s önce|bugün|gün|gün|hafta|hafta|ay|ay|yıl|yıl',
|
4149 |
+
'uk' => '%d %s тому|сьогодні|день|днів|тиждень|тижнів|місяць|місяців|рік|років',
|
4150 |
+
'zh' => '%d %s 前|今天|天|天|周|周|个月|个月|年|年',
|
4151 |
+
'gd' => '%d %s air ais|an diugh|latha|làithean|seachdain|seachdainean|mìos|mìosan|bliadhna|bliadhna',
|
4152 |
+
'hr' => 'prije %d %s|danas|dan|dana|tjedan|tjedana|mjesec|mjeseci|godinu|godina',
|
4153 |
+
'id' => '%d %s lalu|hari ini|hari|hari yang|minggu|minggu yang|bulan|bulan yang|tahun|tahun yang',
|
4154 |
+
'is' => 'fyrir %d %s|í dag|degi|dögum|viku|vikum|mánuði|mánuðum|ári|árum',
|
4155 |
+
'he' => '%d לפני %s|היום|יום|ימים|שבוע|שבועות|חודש|חודשים|שנה|שנים',
|
4156 |
+
'ko' => '%d %s 전|오늘|일|일|주|주|월|월|년|년',
|
4157 |
+
'lt' => 'prieš %d %s|šiandien|dieną|dienų|savaitę|savaites|mėnesį|mėnesių|metų|metų',
|
4158 |
+
'ms' => '%d %s lalu|hari ini|hari|hari|minggu|minggu|bulan|bulan|tahun|tahun',
|
4159 |
+
'sr' => 'пре %d %s|данас|дан|дана|недељу|недеље|месец|месеци|године|година',
|
4160 |
+
'th' => '%d %s ที่แล้ว|วันนี้|วัน|วัน|สัปดาห์|สัปดาห์|เดือน|เดือน|ปี|ปี',
|
4161 |
+
'vi' => '%d %s trước|hôm nay|ngày|ngày|tuần|tuần|tháng|tháng|năm|năm',
|
4162 |
+
'mk' => 'пред %d %s|денес|ден|дена|недела|недели|месец|месеци|година|години',
|
4163 |
+
'bg' => 'преди %d %s|днес|ден|дни|седмица|седмици|месец|месеца|година|години',
|
4164 |
+
'sq' => '%d %s më parë|sot|ditë|ditë|javë|javë|muaj|muaj|vit|vit',
|
4165 |
+
'af' => '%d %s gelede|vandag|dag|dae|week|weke|maand|maande|jaar|jaar',
|
4166 |
+
'az' => '%d %s əvvəl|bu gün|gün|gün|həftə|həftə|ay|ay|il|il',
|
4167 |
+
'bn' => '%d %s আগে|আজ|দিন|দিন|সপ্তাহ|সপ্তাহ|মাস|মাস|বছর|বছর',
|
4168 |
+
'bs' => 'prije %d %s|danas|dan|dana|sedmicu|sedmica|mjesec|mjeseci|godinu|godina',
|
4169 |
+
'cy' => '%d %s yn ôl|heddiw|diwrnod|diwrnod|wythnos|wythnosau|mis|mis|flwyddyn|flynyddoedd',
|
4170 |
+
'fa' => '%d %s قبل|امروز|روز|روز|هفته|هفته|ماه|ماه|سال|سال',
|
4171 |
+
'gl' => 'hai %d %s|hoxe|día|días|semana|semanas|mes|meses|ano|anos',
|
4172 |
+
'hy' => '%d %s առաջ|այսօր|օր|օր|շաբաթ|շաբաթ|ամիս|ամիս|տարի|տարի',
|
4173 |
+
'ka' => '%d %s წინ|დღეს|დღის|დღის|კვირის|კვირის|თვის|თვის|წლის|წლის',
|
4174 |
+
'kk' => '%d %s бұрын|бүгін|күн|күн|апта|апта|ай|ай|жыл|жыл',
|
4175 |
+
);
|
4176 |
private static $page_urls = array (
|
4177 |
'facebook' => 'https://www.facebook.com/pg/%page_id%',
|
4178 |
'google' => 'https://www.google.com/maps/search/?api=1&query=Google&query_place_id=%page_id%',
|
4530 |
{
|
4531 |
$content = str_replace('" data-layout-id=', ' '. implode(' ', $class_appends) .'" data-layout-id=', $content);
|
4532 |
}
|
4533 |
+
if($dateformat == 'modern')
|
4534 |
+
{
|
4535 |
+
$content = preg_replace('/class="(ti-widget[^\'"]*)" data-layout-id=/', 'class="$1" data-time-locale="'. self::$widget_date_format_locales[ $lang ] .'" data-layout-id=', $content);
|
4536 |
+
}
|
4537 |
if(!$only_preview)
|
4538 |
{
|
4539 |
if(!wp_style_is('ti-widget-css-' . $this->shortname, 'registered'))
|
4569 |
$date = " ";
|
4570 |
if($r->date && $r->date != '0000-00-00')
|
4571 |
{
|
4572 |
+
if(in_array($array['dateformat'], [ 'hide', 'modern' ]))
|
4573 |
+
{
|
4574 |
+
$date = '';
|
4575 |
+
if($array['dateformat'] == 'modern')
|
4576 |
+
{
|
4577 |
+
$custom_attributes .= ' data-time="'. strtotime($r->date) .'"';
|
4578 |
+
}
|
4579 |
+
}
|
4580 |
+
else
|
4581 |
+
{
|
4582 |
$date = str_replace(self::$widget_month_names['en'], self::$widget_month_names[$array['language']], date($array['dateformat'], strtotime($r->date)));
|
4583 |
}
|
4584 |
+
}
|
4585 |
$rating_content = $this->get_rating_stars($r->rating);
|
4586 |
if($this->shortname == 'facebook' && in_array($r->rating, [ 1, 5 ]))
|
4587 |
{
|
uninstall.php
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
<?php
|
2 |
require_once plugin_dir_path( __FILE__ ) . 'trustindex-plugin.class.php';
|
3 |
-
$trustindex_pm_google = new TrustindexPlugin_google("google", __FILE__, "9.
|
4 |
$trustindex_pm_google->uninstall();
|
5 |
?>
|
1 |
<?php
|
2 |
require_once plugin_dir_path( __FILE__ ) . 'trustindex-plugin.class.php';
|
3 |
+
$trustindex_pm_google = new TrustindexPlugin_google("google", __FILE__, "9.7", "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: 9.
|
13 |
Text Domain: wp-reviews-plugin-for-google
|
14 |
Domain Path: /languages/
|
15 |
Donate link: https://www.trustindex.io/prices/
|
@@ -19,7 +19,7 @@ Copyright 2019 Trustindex Kft (email: support@trustindex.io)
|
|
19 |
*/
|
20 |
defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
|
21 |
require_once plugin_dir_path( __FILE__ ) . 'trustindex-plugin.class.php';
|
22 |
-
$trustindex_pm_google = new TrustindexPlugin_google("google", __FILE__, "9.
|
23 |
register_activation_hook(__FILE__, array($trustindex_pm_google, 'activate'));
|
24 |
register_deactivation_hook(__FILE__, array($trustindex_pm_google, 'deactivate'));
|
25 |
add_action('admin_menu', array($trustindex_pm_google, 'add_setting_menu'), 10);
|
@@ -37,7 +37,7 @@ global $trustindex_pm_google;
|
|
37 |
if(!isset($trustindex_pm_google) || is_null($trustindex_pm_google))
|
38 |
{
|
39 |
require_once plugin_dir_path( __FILE__ ) . 'trustindex-plugin.class.php';
|
40 |
-
$trustindex_pm_google = new TrustindexPlugin_google("google", __FILE__, "9.
|
41 |
}
|
42 |
$path = wp_upload_dir()['baseurl'] .'/'. $trustindex_pm_google->getCssFile(true);
|
43 |
if(is_ssl())
|
9 |
Author URI: https://www.trustindex.io/
|
10 |
Contributors: trustindex
|
11 |
License: GPLv2 or later
|
12 |
+
Version: 9.7
|
13 |
Text Domain: wp-reviews-plugin-for-google
|
14 |
Domain Path: /languages/
|
15 |
Donate link: https://www.trustindex.io/prices/
|
19 |
*/
|
20 |
defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
|
21 |
require_once plugin_dir_path( __FILE__ ) . 'trustindex-plugin.class.php';
|
22 |
+
$trustindex_pm_google = new TrustindexPlugin_google("google", __FILE__, "9.7", "Widgets for Google Reviews", "Google");
|
23 |
register_activation_hook(__FILE__, array($trustindex_pm_google, 'activate'));
|
24 |
register_deactivation_hook(__FILE__, array($trustindex_pm_google, 'deactivate'));
|
25 |
add_action('admin_menu', array($trustindex_pm_google, 'add_setting_menu'), 10);
|
37 |
if(!isset($trustindex_pm_google) || is_null($trustindex_pm_google))
|
38 |
{
|
39 |
require_once plugin_dir_path( __FILE__ ) . 'trustindex-plugin.class.php';
|
40 |
+
$trustindex_pm_google = new TrustindexPlugin_google("google", __FILE__, "9.7", "Widgets for Google Reviews", "Google");
|
41 |
}
|
42 |
$path = wp_upload_dir()['baseurl'] .'/'. $trustindex_pm_google->getCssFile(true);
|
43 |
if(is_ssl())
|