| 1 |
<?php |
| 2 |
/* |
| 3 |
* IMPORTANT: READ THE LICENSE AGREEMENT CAREFULLY. BY INSTALLING, COPYING, RUNNING, OR OTHERWISE USING THE WPSSO CORE PREMIUM |
| 4 |
* APPLICATION, YOU AGREE TO BE BOUND BY THE TERMS OF ITS LICENSE AGREEMENT. IF YOU DO NOT AGREE TO THE TERMS OF ITS LICENSE |
| 5 |
* AGREEMENT, DO NOT INSTALL, RUN, COPY, OR OTHERWISE USE THE WPSSO CORE PREMIUM APPLICATION. |
| 6 |
* |
| 7 |
* License URI: https://wpsso.com/wp-content/plugins/wpsso/license/premium.txt |
| 8 |
* |
| 9 |
* Copyright 2020-2026 Jean-Sebastien Morisset (https://wpsso.com/) |
| 10 |
*/ |
| 11 |
|
| 12 |
if ( ! defined( 'ABSPATH' ) ) { |
| 13 |
|
| 14 |
die( 'These aren\'t the droids you\'re looking for.' ); |
| 15 |
} |
| 16 |
|
| 17 |
if ( ! class_exists( 'WpssoStdReviewJudgeme' ) ) { |
| 18 |
|
| 19 |
class WpssoStdReviewJudgeme { |
| 20 |
|
| 21 |
private $p; // Wpsso class object. |
| 22 |
|
| 23 |
public function __construct( &$plugin ) { |
| 24 |
|
| 25 |
$this->p =& $plugin; |
| 26 |
|
| 27 |
if ( $this->p->debug->enabled ) { |
| 28 |
|
| 29 |
$this->p->debug->mark(); |
| 30 |
} |
| 31 |
|
| 32 |
if ( $this->p->notice->is_admin_pre_notices() ) { |
| 33 |
|
| 34 |
$pkg_info = $this->p->util->get_pkg_info(); // Uses a local cache. |
| 35 |
$short_pro = $pkg_info[ 'wpsso' ][ 'short_pro' ]; |
| 36 |
$judgeme_short = __( 'Judge.me', 'judgeme-product-reviews-woocommerce' ); |
| 37 |
$judgeme_long = __( 'Judge.me Product Reviews for WooCommerce', 'judgeme-product-reviews-woocommerce' ); |
| 38 |
$notice_key = 'notice-pro-required-judgeme'; |
| 39 |
$notice_msg = sprintf( __( 'The %1$s plugin is active.', 'wpsso' ), $judgeme_long ) . ' '; |
| 40 |
$notice_msg .= sprintf( __( 'Please note that service API modules, like the one required to retrieve data from the %1$s service API, are provided with the %2$s edition.', 'wpsso' ), $judgeme_short, $short_pro ); |
| 41 |
|
| 42 |
$this->p->notice->warn( $notice_msg, $user_id = null, $notice_key, $dismiss_time = true ); |
| 43 |
} |
| 44 |
} |
| 45 |
} |
| 46 |
} |
| 47 |
|