[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.137.190.115: ~ $
<?php
/**
 * Preview script for html markup generator
 *
 * @package tutor-droip-elements
 */

namespace TutorLMSDroip;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

/**
 * Class Iframe
 */
class Iframe {

	/**
	 * Class constructor
	 *
	 * @since 1.0.0
	 */
	public function __construct() {
		$post_id = isset( $_GET['post_id'] ) ? $_GET['post_id'] : null;
		if ( $post_id !== null ) {
			$post = get_post( $post_id );
			if ( $post && ( $post->post_type === TDE_APP_PREFIX . '-course-template' || $post->post_type === TDE_APP_PREFIX . '-courses-template' ) ) {
				// add_action( 'template_include', array( $this, 'load_page_template' ) );
				add_action( 'template_redirect', array( $this, 'load_page_template' ) );
				add_filter( 'droip_assets_should_load', array( $this, 'load_droip_assets' ) );
			}
		}
	}

	/**
	 * Load droip page template
	 * it will include the template file insted of original template file
	 * $loadForIframe = true if load for iframe
	 *
	 * @param string $original wp action for template file load.
	 * @return string template name.
	 */
	public static function load_page_template() {
		get_header() . the_content() . get_footer();
		exit();
	}


	/**
	 * Load droip assets
	 *
	 * @param bool $default_value default value.
	 * @return bool
	 * @since 1.0.0
	 */
	public function load_droip_assets( $default_value ) {
		return true;
	}
}

Filemanager

Name Type Size Permission Actions
ElementGenerator Folder 0755
Ajax.php File 5.41 KB 0644
Backend.php File 1.03 KB 0644
Editor.php File 832 B 0644
Frontend.php File 321 B 0644
Helper.php File 4.7 KB 0644
Iframe.php File 1.36 KB 0644
Pages.php File 3.62 KB 0644