ElementGenerator
9 months ago
Ajax.php
10 months ago
Backend.php
1 year ago
Editor.php
1 year ago
Frontend.php
1 year ago
Helper.php
9 months ago
Hooks.php
9 months ago
Iframe.php
1 year ago
Pages.php
9 months ago
VisibilityCondition.php
8 months ago
Backend.php
50 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Preview script for html markup generator |
| 4 | * |
| 5 | * @package tutor-droip-elements |
| 6 | */ |
| 7 | |
| 8 | namespace TutorLMSDroip; |
| 9 | |
| 10 | use TutorLMSDroip\ElementGenerator\ElementGenerator; |
| 11 | use TUTOR\Input; |
| 12 | |
| 13 | if ( ! defined( 'ABSPATH' ) ) { |
| 14 | exit; // Exit if accessed directly. |
| 15 | } |
| 16 | |
| 17 | /** |
| 18 | * Class Backend |
| 19 | * |
| 20 | * @package TutorLMSDroip |
| 21 | */ |
| 22 | class Backend { |
| 23 | |
| 24 | |
| 25 | /** |
| 26 | * Backend constructor. |
| 27 | */ |
| 28 | public function __construct() { |
| 29 | $this->run(); |
| 30 | } |
| 31 | |
| 32 | /** |
| 33 | * Run the backend |
| 34 | */ |
| 35 | public function run() { |
| 36 | $action = Input::get( 'action' ); |
| 37 | if ( 'droip' === $action ) { |
| 38 | $load_for = Input::get( 'load_for' ); |
| 39 | if ( 'droip-iframe' === $load_for ) { |
| 40 | new Iframe(); |
| 41 | } else { |
| 42 | new Editor(); |
| 43 | } |
| 44 | } |
| 45 | new ElementGenerator(); |
| 46 | new Pages(); |
| 47 | new Hooks(); |
| 48 | } |
| 49 | } |
| 50 |