| @@ -1,8 +1,18 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | 3 | * Main UI admin page. |
| 4 | 4 | * |
| 5 | + * The full config is fetched client-side from the `load` REST route; this | |
| 6 | + * only needs to hand the app enough to make that first request. | |
| 7 | + * | |
| 5 | 8 | * @package plugin_groups |
| 9 | + * @var $bootstrap array { | |
| 10 | + * @type string $loadURL REST URL for the `load` route. | |
| 11 | + * @type string $restNonce Nonce for X-WP-Nonce. | |
| 12 | + * @type int $siteID Current site ID. | |
| 13 | + * @type bool $networkAdmin Flag if in network admin. | |
| 14 | + * } | |
| 6 | 15 | */ |
| 16 | + | |
| 7 | 17 | ?> |
| 8 | -<div class="plugin-groups-main" id="plg-app"></div> | |
| 18 | +<div class="plugin-groups-main flex h-full flex-col overflow-hidden" id="plg-app" data-bootstrap="<?php echo esc_attr( wp_json_encode( $bootstrap ) ); ?>"></div> | |