Version Description
Download this release
Release Info
Developer | trustindex |
Plugin | Widgets for Google Reviews |
Version | 9.1.1 |
Comparing to | |
See all releases |
Code changes from version 9.1 to 9.1.1
- readme.txt +2 -2
- static/js/admin-page-settings-connect.js +1 -1
- tabs/my_reviews.php +1 -1
- tabs/setup_no_reg.php +1 -1
- tabs/setup_no_reg_header.php +1 -3
- tabs/troubleshooting.php +1 -1
- trustindex-plugin.class.php +1 -1
- uninstall.php +1 -1
- wp-reviews-plugin-for-google.php +3 -3
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.0
|
7 |
Requires PHP: 5.2
|
8 |
-
Stable tag: 9.1
|
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.1
|
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.0
|
7 |
Requires PHP: 5.2
|
8 |
+
Stable tag: 9.1.1
|
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.1.1
|
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
@@ -1 +1 @@
|
|
1 |
-
var Trustindex_Connect=null;jQuery(document).ready(function(b){Trustindex_Connect={box:b("#trustindex-plugin-settings-page .autocomplete .results"),input:b("#trustindex-plugin-settings-page #page-link"),button:b("#trustindex-plugin-settings-page .btn-check"),form:b("#submit-form"),check:function(c){c.preventDefault();if(!Trustindex_Connect.regex){return false}let m=Trustindex_Connect.regex.exec(Trustindex_Connect.input.val().trim());if(!Trustindex_Connect.is_regex_valid(m)){Trustindex_Connect.box.html("<span>"+Trustindex_Connect.box.data("errortext")+"</span>");Trustindex_Connect.box.show();return false}let part1=m[1]||m[3]||"";let part2=m[2]||m[4]||"";let page_id=part1;if(part2){if(part1){page_id+=Trustindex_Connect.page_id_separator}page_id+=part2}let valid=true;if(Trustindex_Connect.form.data("platform")=="arukereso"){page_id=page_id.replace(/^com/,"bg")}else{if(Trustindex_Connect.form.data("platform")=="amazon"){valid=(!(page_id.indexOf("stores/")>-1||(page_id.indexOf("gp/")>-1&&page_id.indexOf("gp/product/")==-1)||page_id.search(/\-\/[^\/]{2}\/[^\/]{2}$/)>-1)&&page_id.indexOf("product-reviews/")==-1)}}if(page_id.trim()==""||!valid){Trustindex_Connect.box.html("<span>"+Trustindex_Connect.box.data("errortext")+"</span>");Trustindex_Connect.box.show();return false}Trustindex_Connect.box.hide();b("#ti-noreg-page-id").val(page_id);let page_details={id:page_id};let url=Trustindex_Connect.input.val().trim();let div=Trustindex_Connect.form.find(".ti-selected-source");Trustindex_Connect.form.find("#ti-noreg-page_details").val(JSON.stringify(page_details));div.find("img").attr("src","https://cdn.trustindex.io/assets/platform/Google/icon.png");div.find(".ti-source-info").html('<a target="_blank" href="'+url+'">'+url+"</a>");Trustindex_Connect.button.addClass("btn-disabled");div.fadeIn()},regex:null,is_regex_valid:function(c){if(!c){return false}for(let i=0;i<c.length;i++){if(c[i]===""){return false}}return true},page_id_separator:"|",async_request:function(c){let params=new URLSearchParams({type:"google",page_id:b("#ti-noreg-page-id").val().trim(),access_token:b("#ti-noreg-access-token").length?b("#ti-noreg-access-token").val():"",webhook_url:b("#ti-noreg-webhook-url").val(),email:b("#ti-noreg-email").val(),token:b("#ti-noreg-connect-token").val(),version:b("#ti-noreg-version").val()});b("#ti-connect-info").fadeIn();let ti_window=window.open("https://admin.trustindex.io/source/wordpressPageRequest?"+params.toString(),"trustindex","width=1000,height=1000,menubar=0");window.addEventListener("message",function(d){if(d.origin.startsWith("https://admin.trustindex.io/".replace(/\/$/,""))&&d.data.success){ti_window.close();b("#ti-connect-info").hide();c(b("#ti-noreg-connect-token").val(),d.data.request_id,typeof d.data.manual_download!="undefined"&&d.data.manual_download?1:0)}})}};if(Trustindex_Connect.button.length){Trustindex_Connect.button.click(Trustindex_Connect.check)}Trustindex_Connect.form.find(".btn-connect").on("click",function(c){c.preventDefault();let btn=b(this);btn.css("pointer-events","none");btn.addClass("btn-default").removeClass("btn-primary");btn.blur();TI_manage_dots(btn);Trustindex_Connect.button.css("pointer-events","none");Trustindex_Connect.async_request(function(d,f,e){b("#ti-noreg-review-download").val(d);b("#ti-noreg-review-request-id").val(f);b("#ti-noreg-manual-download").val(e);Trustindex_Connect.form.submit()})});b("#trustindex-plugin-settings-page .btn-refresh").click(function(c){let btn=jQuery(this);btn.css("pointer-events","none");btn.addClass("btn-default").removeClass("btn-primary");btn.blur();TI_manage_dots(btn);jQuery("#trustindex-plugin-settings-page .btn").css("pointer-events","none")});b(".btn-download-reviews").on("click",function(c){c.preventDefault();Trustindex_Connect.async_request(function(d,f,e){b.ajax({type:"POST",data:{review_download_request:d,review_download_request_id:f,manual_download:e}}).always(function(g){location.reload()})})});b("#review-manual-download").on("click",function(c){c.preventDefault();let btn=b(this);btn.blur().addClass("btn-disabled");TI_manage_dots(btn);b.ajax({url:location.search.replace(/&tab=[^&]+/,"&tab=setup_no_reg"),type:"POST",data:{command:"review-manual-download"},success:function(){location.reload()},error:function(){btn.restore();btn.addClass("show-tooltip")}})});var a=[];b("#ti-reg-email, #ti-reg-password").blur(function(){let email=jQuery("#ti-reg-email").val();if(jQuery.inArray(email,a)!=-1){jQuery("#txt-email-used").fadeIn();return false}jQuery.ajax({method:"POST",url:"https://admin.trustindex.io/api/userCheckEmail",data:{email:email,s:"wp"},dataType:"jsonp",success:function(c){if(c==-1){}else{if(c==0){jQuery("#txt-email-used").fadeOut()}else{let link=jQuery("#txt-email-used").find("a");link.html(link.html().replace("$email",email));jQuery("#txt-email-used").fadeIn();jQuery("#ti-reg-email").val("");a.push(email)}}}})});b("#form-reg").submit(function(c){return !jQuery("#txt-email-used").is(":visible")})});
|
1 |
+
var Trustindex_Connect=null;jQuery(document).ready(function(b){Trustindex_Connect={box:b("#trustindex-plugin-settings-page .autocomplete .results"),input:b("#trustindex-plugin-settings-page #page-link"),button:b("#trustindex-plugin-settings-page .btn-check"),form:b("#submit-form"),check:function(c){c.preventDefault();if(!Trustindex_Connect.regex){return false}let m=Trustindex_Connect.regex.exec(Trustindex_Connect.input.val().trim());if(!Trustindex_Connect.is_regex_valid(m)){Trustindex_Connect.box.html("<span>"+Trustindex_Connect.box.data("errortext")+"</span>");Trustindex_Connect.box.show();return false}let part1=m[1]||m[3]||"";let part2=m[2]||m[4]||"";let page_id=part1;if(part2){if(part1){page_id+=Trustindex_Connect.page_id_separator}page_id+=part2}let valid=true;if(Trustindex_Connect.form.data("platform")=="arukereso"){page_id=page_id.replace(/^com/,"bg")}else{if(Trustindex_Connect.form.data("platform")=="amazon"){valid=(!(page_id.indexOf("stores/")>-1||page_id.indexOf("account/")>-1||(page_id.indexOf("gp/")>-1&&page_id.indexOf("gp/product/")==-1)||page_id.search(/\-\/[^\/]{2}\/[^\/]{2}$/)>-1)&&page_id.indexOf("product-reviews/")==-1)}else{if(Trustindex_Connect.form.data("platform")=="tripadvisor"){let not_first_page=page_id.match(/\-or[\d]+\-/);if(not_first_page&¬_first_page[0]){page_id=page_id.replace(not_first_page[0],"-")}}}}if(page_id.trim()==""||!valid){Trustindex_Connect.box.html("<span>"+Trustindex_Connect.box.data("errortext")+"</span>");Trustindex_Connect.box.show();return false}Trustindex_Connect.box.hide();b("#ti-noreg-page-id").val(page_id);let page_details={id:page_id};let url=Trustindex_Connect.input.val().trim();let div=Trustindex_Connect.form.find(".ti-selected-source");Trustindex_Connect.form.find("#ti-noreg-page_details").val(JSON.stringify(page_details));div.find("img").attr("src","https://cdn.trustindex.io/assets/platform/Google/icon.png");div.find(".ti-source-info").html('<a target="_blank" href="'+url+'">'+url+"</a>");Trustindex_Connect.button.addClass("btn-disabled");div.fadeIn()},regex:null,is_regex_valid:function(c){if(!c){return false}for(let i=0;i<c.length;i++){if(c[i]===""){return false}}return true},page_id_separator:"|",async_request:function(c){let params=new URLSearchParams({type:"google",page_id:b("#ti-noreg-page-id").val().trim(),access_token:b("#ti-noreg-access-token").length?b("#ti-noreg-access-token").val():"",webhook_url:b("#ti-noreg-webhook-url").val(),email:b("#ti-noreg-email").val(),token:b("#ti-noreg-connect-token").val(),version:b("#ti-noreg-version").val()});b("#ti-connect-info").fadeIn();let ti_window=window.open("https://admin.trustindex.io/source/wordpressPageRequest?"+params.toString(),"trustindex","width=1000,height=1000,menubar=0");window.addEventListener("message",function(d){if(d.origin.startsWith("https://admin.trustindex.io/".replace(/\/$/,""))&&d.data.success){ti_window.close();b("#ti-connect-info").hide();c(b("#ti-noreg-connect-token").val(),d.data.request_id,typeof d.data.manual_download!="undefined"&&d.data.manual_download?1:0)}if(d.origin.startsWith("https://admin.trustindex.io/".replace(/\/$/,""))&&!d.data.success){ti_window.close();Trustindex_Connect.form.find(".ti-selected-source").hide();Trustindex_Connect.button.removeClass("btn-disabled");Trustindex_Connect.box.html("<span>"+Trustindex_Connect.box.data("errortext")+"</span>");Trustindex_Connect.box.show()}})}};if(Trustindex_Connect.button.length){Trustindex_Connect.button.click(Trustindex_Connect.check)}Trustindex_Connect.form.find(".btn-connect").on("click",function(c){c.preventDefault();let btn=b(this);btn.css("pointer-events","none");btn.addClass("btn-default").removeClass("btn-primary");btn.blur();TI_manage_dots(btn);Trustindex_Connect.button.css("pointer-events","none");Trustindex_Connect.async_request(function(d,f,e){b("#ti-noreg-review-download").val(d);b("#ti-noreg-review-request-id").val(f);b("#ti-noreg-manual-download").val(e);Trustindex_Connect.form.submit()})});b("#trustindex-plugin-settings-page .btn-refresh").click(function(c){let btn=jQuery(this);btn.css("pointer-events","none");btn.addClass("btn-default").removeClass("btn-primary");btn.blur();TI_manage_dots(btn);jQuery("#trustindex-plugin-settings-page .btn").css("pointer-events","none")});b(".btn-download-reviews").on("click",function(c){c.preventDefault();Trustindex_Connect.async_request(function(d,f,e){b.ajax({type:"POST",data:{review_download_request:d,review_download_request_id:f,manual_download:e}}).always(function(g){location.reload()})})});b("#review-manual-download").on("click",function(c){c.preventDefault();let btn=b(this);btn.blur().addClass("btn-disabled");TI_manage_dots(btn);b.ajax({url:location.search.replace(/&tab=[^&]+/,"&tab=setup_no_reg"),type:"POST",data:{command:"review-manual-download"},success:function(){location.reload()},error:function(){btn.restore();btn.addClass("show-tooltip")}})});var a=[];b("#ti-reg-email, #ti-reg-password").blur(function(){let email=jQuery("#ti-reg-email").val();if(jQuery.inArray(email,a)!=-1){jQuery("#txt-email-used").fadeIn();return false}jQuery.ajax({method:"POST",url:"https://admin.trustindex.io/api/userCheckEmail",data:{email:email,s:"wp"},dataType:"jsonp",success:function(c){if(c==-1){}else{if(c==0){jQuery("#txt-email-used").fadeOut()}else{let link=jQuery("#txt-email-used").find("a");link.html(link.html().replace("$email",email));jQuery("#txt-email-used").fadeIn();jQuery("#ti-reg-email").val("");a.push(email)}}}})});b("#form-reg").submit(function(c){return !jQuery("#txt-email-used").is(":visible")})});
|
tabs/my_reviews.php
CHANGED
@@ -122,7 +122,7 @@ $download_timestamp = get_option($trustindex_pm_google->get_option_name('downloa
|
|
122 |
<input type="hidden" id="ti-noreg-page-id" value="<?php echo esc_attr($page_details['id']); ?>" />
|
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.1" />
|
126 |
<?php if(isset($page_details['access_token'])): ?>
|
127 |
<input type="hidden" id="ti-noreg-access-token" value="<?php echo esc_attr($page_details['access_token']); ?>" />
|
128 |
<?php endif; ?>
|
122 |
<input type="hidden" id="ti-noreg-page-id" value="<?php echo esc_attr($page_details['id']); ?>" />
|
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.1.1" />
|
126 |
<?php if(isset($page_details['access_token'])): ?>
|
127 |
<input type="hidden" id="ti-noreg-access-token" value="<?php echo esc_attr($page_details['access_token']); ?>" />
|
128 |
<?php endif; ?>
|
tabs/setup_no_reg.php
CHANGED
@@ -114,7 +114,7 @@ update_option($trustindex_pm_google->get_option_name('review-download-token'), $
|
|
114 |
<input type="hidden" id="ti-noreg-connect-token" name="ti-noreg-connect-token" value="<?php echo $review_download_token; ?>" />
|
115 |
<input type="hidden" id="ti-noreg-webhook-url" value="<?php echo $trustindex_pm_google->get_webhook_url(); ?>" />
|
116 |
<input type="hidden" id="ti-noreg-email" value="<?php echo get_option('admin_email'); ?>" />
|
117 |
-
<input type="hidden" id="ti-noreg-version" value="9.1" />
|
118 |
<input type="hidden" id="ti-noreg-review-download" name="review_download" value="0" />
|
119 |
<input type="hidden" id="ti-noreg-review-request-id" name="review_request_id" value="" />
|
120 |
<input type="hidden" id="ti-noreg-manual-download" name="manual_download" value=0 />
|
114 |
<input type="hidden" id="ti-noreg-connect-token" name="ti-noreg-connect-token" value="<?php echo $review_download_token; ?>" />
|
115 |
<input type="hidden" id="ti-noreg-webhook-url" value="<?php echo $trustindex_pm_google->get_webhook_url(); ?>" />
|
116 |
<input type="hidden" id="ti-noreg-email" value="<?php echo get_option('admin_email'); ?>" />
|
117 |
+
<input type="hidden" id="ti-noreg-version" value="9.1.1" />
|
118 |
<input type="hidden" id="ti-noreg-review-download" name="review_download" value="0" />
|
119 |
<input type="hidden" id="ti-noreg-review-request-id" name="review_request_id" value="" />
|
120 |
<input type="hidden" id="ti-noreg-manual-download" name="manual_download" value=0 />
|
tabs/setup_no_reg_header.php
CHANGED
@@ -211,10 +211,8 @@ trustindex_plugin_disconnect_page();
|
|
211 |
if($ti_command == 'save-page')
|
212 |
{
|
213 |
check_admin_referer( 'save-noreg_'.$trustindex_pm_google->get_plugin_slug(), '_wpnonce_save' );
|
214 |
-
$page_details = isset($_POST['page_details']) ?
|
215 |
-
$page_details = json_decode(stripcslashes($page_details), true);
|
216 |
$review_download = isset($_POST['review_download']) ? sanitize_text_field($_POST['review_download']) : 0;
|
217 |
-
|
218 |
trustindex_plugin_connect_page($page_details, true, $review_download);
|
219 |
header('Location: admin.php?page=' . sanitize_text_field($_GET['page']) .'&tab=setup_no_reg');
|
220 |
exit;
|
211 |
if($ti_command == 'save-page')
|
212 |
{
|
213 |
check_admin_referer( 'save-noreg_'.$trustindex_pm_google->get_plugin_slug(), '_wpnonce_save' );
|
214 |
+
$page_details = isset($_POST['page_details']) ? json_decode(stripcslashes($_POST['page_details']), true) : null;
|
|
|
215 |
$review_download = isset($_POST['review_download']) ? sanitize_text_field($_POST['review_download']) : 0;
|
|
|
216 |
trustindex_plugin_connect_page($page_details, true, $review_download);
|
217 |
header('Location: admin.php?page=' . sanitize_text_field($_GET['page']) .'&tab=setup_no_reg');
|
218 |
exit;
|
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.1");
|
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.1.1");
|
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
@@ -474,7 +474,7 @@ $chosed_platform_slug = $this->plugin_slugs[ $force_platform ];
|
|
474 |
$current_platform_slug = $this->plugin_slugs[ $this->shortname ];
|
475 |
$file_path = preg_replace('/[^\/\\\\]+([\\\\\/]trustindex-plugin\.class\.php)/', $chosed_platform_slug . '$1', $file_path);
|
476 |
}
|
477 |
-
$chosed_platform = new self($force_platform, $file_path, "do-not-care-9.1", "do-not-care-Widgets for Google Reviews", "do-not-care-Google");
|
478 |
if(!$chosed_platform->is_noreg_linked() || !$chosed_platform->is_noreg_table_exists($force_platform))
|
479 |
{
|
480 |
return self::get_alertbox(
|
474 |
$current_platform_slug = $this->plugin_slugs[ $this->shortname ];
|
475 |
$file_path = preg_replace('/[^\/\\\\]+([\\\\\/]trustindex-plugin\.class\.php)/', $chosed_platform_slug . '$1', $file_path);
|
476 |
}
|
477 |
+
$chosed_platform = new self($force_platform, $file_path, "do-not-care-9.1.1", "do-not-care-Widgets for Google Reviews", "do-not-care-Google");
|
478 |
if(!$chosed_platform->is_noreg_linked() || !$chosed_platform->is_noreg_table_exists($force_platform))
|
479 |
{
|
480 |
return self::get_alertbox(
|
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.1", "Widgets for Google Reviews", "Google");
|
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.1.1", "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.1
|
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.1", "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,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.1", "Widgets for Google Reviews", "Google");
|
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.1.1
|
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.1.1", "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.1.1", "Widgets for Google Reviews", "Google");
|
41 |
}
|
42 |
$path = wp_upload_dir()['baseurl'] .'/'. $trustindex_pm_google->getCssFile(true);
|
43 |
if(is_ssl())
|