| 1 |
<?php |
| 2 |
|
| 3 |
// Do not allow the file to be called directly. |
| 4 |
if ( ! defined( 'ABSPATH' ) ) { |
| 5 |
exit; |
| 6 |
} |
| 7 |
|
| 8 |
// Output the form and table. |
| 9 |
require_once dirname( __FILE__ ) . '/../../admin/multisite-table.php'; |
| 10 |
?> |
| 11 |
<div class="patchstack-font"> |
| 12 |
<?php |
| 13 |
if ( isset( $_GET['success'], $_GET['site'] ) && ctype_digit( $_GET['site'] ) ) { |
| 14 |
$site = get_site( $_GET['site'] ); |
| 15 |
echo '<div class="notice notice-success inline" style="margin: 20px 0 0 0;"><p><strong>The database migration has been re-run for the site: ' . esc_url( $site->siteurl ) . '</strong></p></div>'; |
| 16 |
} |
| 17 |
?> |
| 18 |
<form method="GET" style="display: table;"> |
| 19 |
<div class="wrap"> |
| 20 |
<h2>Available Sites</h2> |
| 21 |
</div> |
| 22 |
<input type="hidden" name="page" value="<?php echo esc_attr( $_REQUEST['page'] ); ?>" /> |
| 23 |
<?php |
| 24 |
$table = new Patchstack_Network_Sites_Table(); |
| 25 |
$table->prepare_items(); |
| 26 |
$table->search_box( 'Search', 'search' ); |
| 27 |
?> |
| 28 |
</form> |
| 29 |
<?php |
| 30 |
$table->display(); |
| 31 |
?> |
| 32 |
</div> |
| 33 |
|