| Server IP : 104.21.28.229 / Your IP : 216.73.216.142 Web Server : Apache/2 System : Linux hosting8537.lvs 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : mienphi ( 1014) PHP Version : 8.2.14 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/mienphi/domains/mienphi.org/public_html/wp-content/plugins/learnpress-live/incs/ |
Upload File : |
<?php
/**
* Class LP_Addon_Live
*/
class LP_Addon_Live extends LP_Addon {
/**
* @var string
*/
public $version = LP_ADDON_LIVE_VER;
/**
* @var string
*/
public $require_version = LP_ADDON_LIVE_REQUIRE_VER;
/**
* @var string
*/
public $plugin_file = LP_ADDON_LIVE_PLUGIN_FILE;
/**
* @var LP_Addon_Live|null
*
* Hold the singleton of LP_Addon_Live_Preload object
*/
protected static $_instance = null;
/**
* LP_Addon_Live_Preload constructor.
*/
public function __construct() {
parent::__construct();
$this->includes();
}
/**
* Include files needed
*/
protected function includes() {
/* zooms */
//meta box
require_once LP_PLUGIN_PATH . 'inc/admin/views/meta-boxes/fields/class-lp-meta-box-fields.php';
require_once LP_ADDON_LIVE_PLUGIN_PATH . '/incs/types/zooms/class-lp-metabox-zooms.php';
//shortcodes
require_once LP_ADDON_LIVE_PLUGIN_PATH . '/incs/types/zooms/class-lp-shortcode-zoom-meeting.php';
//api
require_once LP_ADDON_LIVE_PLUGIN_PATH . '/incs/types/zooms/class-lp-zoom-api.php';
//zoom auth
require_once LP_ADDON_LIVE_PLUGIN_PATH . '/incs/types/zooms/class-lp-zoom-auth.php';
/* google meeting */
//api
require_once LP_ADDON_LIVE_PLUGIN_PATH . '/incs/types/google-meet/class-lp-google-meet-api.php';
//auth
require_once LP_ADDON_LIVE_PLUGIN_PATH . '/incs/types/google-meet/class-lp-google-auth.php';
//metabox
require_once LP_ADDON_LIVE_PLUGIN_PATH . '/incs/types/google-meet/class-lp-metabox-google.php';
//shortcodes
require_once LP_ADDON_LIVE_PLUGIN_PATH . '/incs/types/google-meet/class-lp-shortcode-google-meeting.php';
// Hooks
require_once LP_ADDON_LIVE_PLUGIN_PATH . '/incs/class-lp-live-hooks.php';
LP_Live_Hooks::instance();
}
/**
* Check is page Live setting.
*
* @return bool
*/
public function is_page_live_setting(): bool {
global $wp;
return isset( $wp->query_vars ) && array_key_exists( 'live-setting', $wp->query_vars );
}
/**
* Get link show live setting.
*
* @return string
*/
public function get_slug_page(): string {
return apply_filters( 'learnpress_live_setting_get_slug', 'live-setting' );
}
/**
* Get link show live setting.
*
* @return string
*/
public function url_page_setting(): string {
return trailingslashit( site_url( $this->get_slug_page() ) );
}
}