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-designthemes.php
<?php if ( ! class_exists( 'DtWebinarTsDesignThemes' ) ) { class DtWebinarTsDesignThemes { /** * 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() { if(is_page_template( 'tpl-google-classroom.php' )) { ?> <div id="header-wrapper"> <header id="header"> <div class="container"> <?php do_action( '_theme_name_header' ); ?> </div> </header> </div> <?php } } function dtwebinar_dt_after_main_content() { } function dtwebinar_dt_before_content() { if (is_page_template( 'tpl-google-classroom.php' )) { echo '<div id="main">'; echo '<div class="container">'; echo '<section id="primary" class="content-full-width">'; } global $post; echo '<article id="post-'.$post->ID.'" class="'.implode(' ', get_post_class()).'">'; } function dtwebinar_dt_after_content() { echo '</article>'; if (is_page_template( 'tpl-google-classroom.php' )) { echo '</section>'; echo '</div>'; echo '</div>'; } } } DtWebinarTsDesignThemes::instance(); } ?>
Save