PluginProbe ʕ •ᴥ•ʔ
Widgets for Google Reviews / 13.2.9
Widgets for Google Reviews v13.2.9
13.3 trunk 10.9.1 11.9 12.0 12.1.2 12.2 12.3 12.4.7 12.5 12.6.1 12.7.6 12.8 12.9 13.0 13.1 13.2.5 13.2.6 13.2.7 13.2.8 13.2.9
wp-reviews-plugin-for-google / settings.php
wp-reviews-plugin-for-google Last commit date
include 1 month ago languages 1 month ago static 1 month ago tabs 1 month ago readme.txt 1 month ago settings.php 1 month ago trustindex-google-widget.class.php 1 month ago trustindex-plugin.class.php 1 month ago uninstall.php 1 month ago wordfence-vendor.txt 1 month ago wp-reviews-plugin-for-google.php 1 month ago
settings.php
40 lines
1 <?php
2 defined('ABSPATH') or die('No script kiddies please!');
3 $pluginManager = 'TrustindexPlugin_google';
4 $pluginManagerInstance = $trustindex_pm_google;
5 $_page = $pluginManagerInstance->get_plugin_slug().'/settings.php';
6 $pluginNameForEmails = 'Google';
7 $newBadgeTabs = [];
8 if (get_option($pluginManagerInstance->get_option_name('widget-setted-up'), 0) && !get_option($pluginManagerInstance->get_option_name('reply-generated'), 0)) {
9 $newBadgeTabs []= 'my-reviews';
10 }
11 if (get_option($pluginManagerInstance->get_option_name('widget-setted-up'), 0) && get_option($pluginManagerInstance->get_option_name('reply-generated'), 0) && !get_option($pluginManagerInstance->get_option_name('instagram-promo-opened'), 0)) {
12 $newBadgeTabs []= 'instagram-feed-widget';
13 }
14 $noContainerElementTabs = [ 'free-widget-configurator', 'instagram-feed-widget' ];
15 $logoCampaignId = 'wp-google-l';
16 $logoFile = 'static/img/trustindex.svg';
17 $assetCheckJs = [
18 'common' => 'static/js/admin-page-settings-common.js',
19 'connect' => 'static/js/admin-page-settings-connect.js'
20 ];
21 $assetCheckCssId = 'trustindex_settings_style_google';
22 $assetCheckCssFile = 'static/css/admin-page-settings.css';
23 if (isset($_GET['wc_notification'])) {
24 check_admin_referer('ti-wc-notification');
25 $mode = sanitize_text_field(wp_unslash($_GET['wc_notification']));
26 $dbValue = 'hide';
27 if ($mode === 'later') {
28 $dbValue = $time = time() + (30 * 86400);
29 }
30 update_option('trustindex-wc-notification', $dbValue, false);
31 if ($mode === 'open') {
32 header('Location: https://wordpress.org/plugins/customer-reviews-collector-for-woocommerce/');
33 exit;
34 }
35 echo '<script type="text/javascript">self.close();</script>';
36 exit;
37 }
38 include(plugin_dir_path(__FILE__) . 'include' . DIRECTORY_SEPARATOR . 'admin.php');
39 ?>
40