You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.0 KiB
PHTML
41 lines
1.0 KiB
PHTML
8 months ago
|
<?php
|
||
|
/**
|
||
|
* Status & Tools main view file.
|
||
|
*
|
||
|
* @package RankMath
|
||
|
* @subpackage RankMath\Status
|
||
|
* @author Rank Math <support@rankmath.com>
|
||
|
* @license GPL-2.0+
|
||
|
* @link https://rankmath.com/wordpress/plugin/seo-suite/
|
||
|
* @copyright 2019 Rank Math
|
||
|
*/
|
||
|
|
||
|
use RankMath\Helper;
|
||
|
use RankMath\Helpers\Param;
|
||
|
|
||
|
defined( 'ABSPATH' ) || exit;
|
||
|
|
||
|
$default_tab = apply_filters( 'rank_math/tools/default_tab', 'status' );
|
||
|
$module = Helper::get_module( 'status' );
|
||
|
$current = Param::get( 'view', $default_tab );
|
||
|
|
||
|
if ( ! in_array( $current, array_keys( apply_filters( 'rank_math/tools/pages', [] ) ), true ) ) {
|
||
|
Helper::redirect( Helper::get_admin_url( 'status' ) );
|
||
|
exit;
|
||
|
}
|
||
|
|
||
|
// Header.
|
||
|
rank_math()->admin->display_admin_header();
|
||
|
?>
|
||
|
<div class="wrap rank-math-wrap rank-math-tools-wrap dashboard">
|
||
|
|
||
|
<span class='wp-header-end'></span>
|
||
|
|
||
|
<?php $module->display_nav(); ?>
|
||
|
|
||
|
<div class="rank-math-ui dashboard-wrapper container <?php echo esc_attr( $current ); ?>">
|
||
|
<?php $module->display_body( $current ); ?>
|
||
|
</div>
|
||
|
|
||
|
</div>
|