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; } }