golden hour
/var/www/html/wp-content/plugins/designthemes-webinar/theme-support
⬆️ Go Up
Upload
File/Folder
Size
Actions
class-default.php
1.87 KB
Del
OK
class-designthemes.php
1.89 KB
Del
OK
class-lms.php
1.25 KB
Del
OK
Edit: class-lms.php
<?php if ( ! class_exists( 'DtWebinarTsLms' ) ) { class DtWebinarTsLms { /** * 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( 'dtwebinar_before_main_content', array ( $this, 'dtwebinar_dt_before_main_content' ), 10 ); add_action( 'dtwebinar_after_main_content', array ( $this, 'dtwebinar_dt_after_main_content' ), 10 ); add_action( 'dtwebinar_before_content', array ( $this, 'dtwebinar_dt_before_content' ), 10 ); add_action( 'dtwebinar_after_content', array ( $this, 'dtwebinar_dt_after_content' ), 10 ); } function dtwebinar_dt_before_main_content() { } function dtwebinar_dt_after_main_content() { } function dtwebinar_dt_before_content() { global $post; echo '<article id="post-'.$post->ID.'" class="'.implode(' ', get_post_class()).'">'; } function dtwebinar_dt_after_content() { echo '</article>'; } } DtWebinarTsLms::instance(); } ?>
Save