| 1 |
<?php |
| 2 |
namespace Depicter\Controllers\Admin; |
| 3 |
|
| 4 |
use WPEmerge\Requests\Request; |
| 5 |
use WPEmerge\View\ViewInterface; |
| 6 |
|
| 7 |
class EditorController { |
| 8 |
|
| 9 |
/** |
| 10 |
* Handle the index page. |
| 11 |
* |
| 12 |
* @param Request $request |
| 13 |
* @param string $view the view that WordPress was trying to load |
| 14 |
* @return ViewInterface |
| 15 |
*/ |
| 16 |
public function open( Request $request, $view ) { |
| 17 |
return \Depicter::view( 'admin/editor/open/content.php' )->with([]); |
| 18 |
} |
| 19 |
|
| 20 |
/** |
| 21 |
* Handle the index page. |
| 22 |
* |
| 23 |
* @param Request $request |
| 24 |
* @param string $view the view that WordPress was trying to load |
| 25 |
* @return ViewInterface |
| 26 |
*/ |
| 27 |
public function preview( Request $request, $view ) { |
| 28 |
return \Depicter::view( 'admin/editor/preview.php' )->with([]); |
| 29 |
} |
| 30 |
|
| 31 |
} |
| 32 |
|