Server IP : 104.21.14.103 / Your IP : 3.144.25.14 Web Server : LiteSpeed System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : giankuin ( 1871) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/giankuin/dangky.bnnagency.com/wp-content/themes/flatsome/inc/classes/ |
Upload File : |
<?php /** * Flatsome_Envato class. * * @package Flatsome */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } /** * The Flatsome Envato. */ final class Flatsome_Envato { /** * The single class instance. * * @var object */ private static $instance = null; /** * The registration instance. * * @var Flatsome_Base_Registration */ public $registration; /** * Setup instance properties. */ private function __construct() { $api = new UxThemes_API(); if ( get_option( 'flatsome_envato' ) ) { $this->registration = new Flatsome_Envato_Registration( $api ); } elseif ( get_option( flatsome_theme_key() . '_wup_purchase_code' ) ) { $this->registration = new Flatsome_WUpdates_Registration( $api ); } else { $this->registration = new Flatsome_Registration( $api ); } if ( is_admin() ) { $this->admin = new Flatsome_Envato_Admin( $this->registration ); } } /** * Checks whether this site is registered or not. * * @return boolean */ public function is_registered() { return $this->registration->is_registered(); } /** * Main Flatsome_Envato instance * * @return Flatsome_Envato */ public static function get_instance() { if ( is_null( self::$instance ) ) { self::$instance = new self(); } return self::$instance; } }