| Server IP : 37.27.51.148 / Your IP : 37.27.51.148 Web Server : nginx/1.14.1 System : Linux libra 4.18.0-553.51.1.el8_10.x86_64 #1 SMP Wed Apr 30 20:24:04 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.3.31 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/html/wp-content/plugins/thrive-quiz-builder/tva-bridge/ |
Upload File : |
<?php
namespace TQB\TVA;
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-quiz-builder
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
/**
* Main entry-endpoint for TQB-TVA integration
*/
class Main {
/**
* @var Main
*/
private static $instance;
/**
* Singleton implementation for Main
*
* @return Main
*/
public static function get_instance() {
if ( self::$instance === null ) {
self::$instance = new static();
}
return self::$instance;
}
/**
* Main constructor
*/
private function __construct() {
if ( ! function_exists( 'is_plugin_active' ) ) {
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
}
$is_active = is_plugin_active( 'thrive-apprentice/thrive-apprentice.php' );
/**
* If Thrive Apprentice is active, include the dependencies
*/
if ( $is_active ) {
require_once __DIR__ . '/class-hooks.php';
}
}
}
/**
* @return Main
*/
function tqb_tva_integration() {
return Main::get_instance();
}
tqb_tva_integration();