| 1 |
<?php |
| 2 |
/** |
| 3 |
* Mount point for the React single-page admin. |
| 4 |
* |
| 5 |
* The whole screen is rendered by src/admin — everything below the root div is |
| 6 |
* owned by React Router, so this view stays a container and nothing else. |
| 7 |
* |
| 8 |
* @package |
| 9 |
*/ |
| 10 |
|
| 11 |
if ( ! defined( 'ABSPATH' ) ) { |
| 12 |
exit; |
| 13 |
} |
| 14 |
|
| 15 |
?> |
| 16 |
|
| 17 |
<div class="rwpfnl-app"> |
| 18 |
|
| 19 |
<?php |
| 20 |
|
| 21 |
/** |
| 22 |
* Fires before the React admin root is printed. |
| 23 |
* |
| 24 |
* @since 3.13.2 |
| 25 |
*/ |
| 26 |
do_action( 'wpfunnels/before-react-admin-content' ); |
| 27 |
?> |
| 28 |
|
| 29 |
<div id="rwpfnl-admin-root"></div> |
| 30 |
|
| 31 |
<?php |
| 32 |
|
| 33 |
/** |
| 34 |
* Fires after the React admin root is printed. |
| 35 |
* |
| 36 |
* @since 3.13.2 |
| 37 |
*/ |
| 38 |
do_action( 'wpfunnels/after-react-admin-content' ); |
| 39 |
?> |
| 40 |
|
| 41 |
</div> |
| 42 |
|