<?php /** * Preview script for html markup generator * * @package tutor-droip-elements */ namespace TutorLMSDroip; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } /** * Class Editor * This class is used to define all editor functions. */ class Editor { /** * Class constructor * * @since 1.0.0 */ public function __construct() { add_action( 'wp_enqueue_scripts', array( $this, 'load_assets' ), 100 ); } /** * Load assets * * @since 1.0.0 */ public function load_assets() { wp_enqueue_script( TDE_APP_PREFIX . '-tutor-droip-elements', TDE_PLUGIN_ROOT_BASE . 'build/js/editor.min.js', array( 'wp-i18n', 'droip-editor' ), '1.0.0', true ); wp_enqueue_style( TDE_APP_PREFIX . '-tutor-droip-elements', TDE_PLUGIN_ROOT_BASE . 'build/css/editor.min.css', null, '1.0.0' ); } }
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 |
|