src/Modules/Licenser.php
function show_notice() {
		if ( ! is_admin() ) {
			return false;
		}
		$status                = $this->get_license_status();
		$no_activations_string = apply_filters( $this->product->get_key() . '_lc_no_activations_string', 'No activations left for %s !!!. You need to upgrade your plan in order to use %s on more websites. Please ask the %s Staff for more details.' );
		$no_valid_string       = apply_filters( $this->product->get_key() . '_lc_no_valid_string', 'In order to benefit from updates and support for %s, please add your license code from your  <a href="%s" target="_blank">purchase history</a> and validate it <a href="%s">here</a>. ' );
		$expiration_string     = apply_filters( $this->product->get_key() . '_lc_expiration_string', 'Your license is about to expire for %s. You can go to %s and renew it   ' );

		// No activations left for this license.
		if ( 'valid' != $status && $this->check_activation() ) {
			?>
			<div class="error">
				<p><strong>
						<?php
						echo sprintf(
							$no_activations_string,
							$this->product->get_name(),
							$this->product->get_name(),
							'<a href="' . $this->get_api_url() . '" target="_blank">' . $this->get_distributor_name() . '</a>'
						);
						?>
					</strong>
				</p>
			</div>
			<?php
			return false;
		}
		// Invalid license key.
		if ( 'valid' != $status ) {
			?>
			<div class="error">
				<p>
					<strong><?php echo sprintf( $no_valid_string, $this->product->get_name() . ' ' . $this->product->get_type(), $this->get_api_url(), admin_url( 'options-general.php' ) . '#' . $this->product->get_key() ); ?> </strong>
				</p>
			</div>
			<?php

			return false;
		}

		// Expired and soon to expire license.
		if ( 'valid' == $status && $this->check_expiration() ) {
			?>
			<div class="update-nag">
				<p>
					<strong>
						<?php
						echo sprintf(
							$expiration_string,
							$this->product->get_name() . ' ' . $this->product->get_type(),
							'<a href="' . $this->renew_url() . '" target="_blank">' . $this->get_distributor_name() . '</a>'
						);
						?>
					</strong>
				</p>
			</div>
			<?php
			return false;
		}

		return true;
	}
function show_notice() {
		if ( ! is_admin() ) {
			return false;
		}
		$status                = $this->get_license_status();
		$no_activations_string = apply_filters( $this->product->get_key() . '_lc_no_activations_string', 'No activations left for %s !!!. You need to upgrade your plan in order to use %s on more websites. Please ask the %s Staff for more details.' );
		$no_valid_string       = apply_filters( $this->product->get_key() . '_lc_no_valid_string', 'In order to benefit from updates and support for %s, please add your license code from your  <a href="%s" target="_blank">purchase history</a> and validate it <a href="%s">here</a>. ' );
		$expiration_string     = apply_filters( $this->product->get_key() . '_lc_expiration_string', 'Your license is about to expire for %s. You can go to %s and renew it   ' );

		// No activations left for this license.
		if ( 'valid' != $status && $this->check_activation() ) {
			?>
			<div class="error">
				<p><strong>
						<?php
						echo sprintf(
							$no_activations_string,
							$this->product->get_name(),
							$this->product->get_name(),
							'<a href="' . $this->get_api_url() . '" target="_blank">' . $this->get_distributor_name() . '</a>'
						);
						?>
					</strong>
				</p>
			</div>
			<?php
			return false;
		}
		// Invalid license key.
		if ( 'valid' != $status ) {
			?>
			<div class="error">
				<p>
					<strong><?php echo sprintf( $no_valid_string, $this->product->get_name() . ' ' . $this->product->get_type(), $this->get_api_url(), admin_url( 'options-general.php' ) . '#' . $this->product->get_key() ); ?> </strong>
				</p>
			</div>
			<?php

			return false;
		}

		// Expired and soon to expire license.
		if ( 'valid' == $status && $this->check_expiration() ) {
			?>
			<div class="update-nag">
				<p>
					<strong>
						<?php
						echo sprintf(
							$expiration_string,
							$this->product->get_name() . ' ' . $this->product->get_type(),
							'<a href="' . $this->renew_url() . '" target="_blank">' . $this->get_distributor_name() . '</a>'
						);
						?>
					</strong>
				</p>
			</div>
			<?php
			return false;
		}

		return true;
	}
function show_notice ( ) { if ( ! is_admin ( ) ) { return false ; } $ status = $ this -> get_license_status ( ) ; $ no_activations_string = apply_filters ( $ this -> product -> get_key ( ) . '_lc_no_activations_string' , 'No activations left for %s !!!. You need to upgrade your plan in order to use %s on more websites. Please ask the %s Staff for more details.' ) ; $ no_valid_string = apply_filters ( $ this -> product -> get_key ( ) . '_lc_no_valid_string' , 'In order to benefit from updates and support for %s, please add your license code from your  <a href="%s" target="_blank">purchase history</a> and validate it <a href="%s">here</a>. ' ) ; $ expiration_string = apply_filters ( $ this -> product -> get_key ( ) . '_lc_expiration_string' , 'Your license is about to expire for %s. You can go to %s and renew it   ' ) ; // No activations left for this license. if ( 'valid' != $ status && $ this -> check_activation ( ) ) { ?>
			<div class="error">
				<p><strong>
						<?php echo sprintf ( $ no_activations_string , $ this -> product -> get_name ( ) , $ this -> product -> get_name ( ) , '<a href="' . $ this -> get_api_url ( ) . '" target="_blank">' . $ this -> get_distributor_name ( ) . '</a>' ) ; ?>
					</strong>
				</p>
			</div>
			<?php return false ; } // Invalid license key. if ( 'valid' != $ status ) { ?>
			<div class="error">
				<p>
					<strong><?php echo sprintf ( $ no_valid_string , $ this -> product -> get_name ( ) . ' ' . $ this -> product -> get_type ( ) , $ this -> get_api_url ( ) , admin_url ( 'options-general.php' ) . '#' . $ this -> product -> get_key ( ) ) ; ?> </strong>
				</p>
			</div>
			<?php return false ; } // Expired and soon to expire license. if ( 'valid' == $ status && $ this -> check_expiration ( ) ) { ?>
			<div class="update-nag">
				<p>
					<strong>
						<?php echo sprintf ( $ expiration_string , $ this -> product -> get_name ( ) . ' ' . $ this -> product -> get_type ( ) , '<a href="' . $ this -> renew_url ( ) . '" target="_blank">' . $ this -> get_distributor_name ( ) . '</a>' ) ; ?>
					</strong>
				</p>
			</div>
			<?php return false ; } return true ; }
Show the admin notice regarding the license status.

@return bool Should we show the notice ?
Show the admin notice regarding the license status .