golden hour
/var/www/html/wp-content/plugins/designthemes-webinar
⬆️ Go Up
Upload
File/Folder
Size
Actions
assets
-
Del
OK
designthemes-webinar.php
5.19 KB
Del
OK
elementor
-
Del
OK
languages
-
Del
OK
modules
-
Del
OK
script-and-styles.php
1.17 KB
Del
OK
theme-support
-
Del
OK
Edit: script-and-styles.php
<?php if( !class_exists('DtWebinarDependentFiles') ) { class DtWebinarDependentFiles { /** * Instance variable */ private static $_instance = null; /** * Instance * * Ensures only one instance of the class is loaded or can be loaded. */ public static function instance() { if ( is_null( self::$_instance ) ) { self::$_instance = new self(); } return self::$_instance; } function __construct() { add_action ( 'admin_enqueue_scripts', array ( $this, 'dtwebinar_admin_enqueue_scripts' ), 100 ); } /** * Admin enqueue scripts */ function dtwebinar_admin_enqueue_scripts() { $current_screen = get_current_screen(); wp_register_style ( 'dtwebinar-common', DTWEBINAR_PLUGIN_URL . 'assets/css/common.css' ); if(in_array($current_screen->id, array ('toplevel_page_dtwebinar-google-classroom'))) { wp_enqueue_style ( 'dtwebinar-common' ); } } } } if( !function_exists('dtwebinar_dependent_files_instance') ) { function dtwebinar_dependent_files_instance() { return DtWebinarDependentFiles::instance(); } } dtwebinar_dependent_files_instance(); ?>
Save