| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/HostingSpaces/admin/aifortoday.co.uk/wwwroot/wp-content/themes/solace/inc/core/ |
Upload File : |
<?php
/**
* Theme Info trait.
*
* @package Solace\Core
*/
namespace Solace\Core;
/**
* Theme_Info trait
*/
trait Theme_Info {
/**
* Check validity of addons plugin.
*
* @return bool
*/
private function has_valid_addons() {
if ( ! defined( 'SOLACE_PRO_BASEFILE' ) ) {
return false;
}
$option_name = basename( dirname( SOLACE_PRO_BASEFILE ) );
$option_name = str_replace( '-', '_', strtolower( trim( $option_name ) ) );
$status = get_option( $option_name . '_license_data' );
if ( ! $status ) {
return false;
}
if ( ! isset( $status->license ) ) {
return false;
}
if ( $status->license === 'not_active' || $status->license === 'invalid' ) {
return false;
}
return true;
}
}