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.
33 lines
688 B
PHTML
33 lines
688 B
PHTML
8 months ago
|
<?php
|
||
|
/**
|
||
|
* Dashboard page template.
|
||
|
*
|
||
|
* @package RankMath
|
||
|
* @subpackage RankMath\Admin
|
||
|
*/
|
||
|
|
||
|
use RankMath\Helper;
|
||
|
use RankMath\Google\Authentication;
|
||
|
|
||
|
defined( 'ABSPATH' ) || exit;
|
||
|
|
||
|
// Header.
|
||
|
rank_math()->admin->display_admin_header();
|
||
|
$path = rank_math()->admin_dir() . 'wizard/views/'; // phpcs:ignore
|
||
|
?>
|
||
|
<div class="wrap rank-math-wrap analytics">
|
||
|
|
||
|
<span class="wp-header-end"></span>
|
||
|
|
||
|
<?php
|
||
|
if ( ! Helper::is_site_connected() ) {
|
||
|
require_once $path . 'rank-math-connect.php';
|
||
|
} elseif ( ! Authentication::is_authorized() ) {
|
||
|
require_once $path . 'google-connect.php';
|
||
|
} else {
|
||
|
echo '<div class="rank-math-analytics" id="rank-math-analytics"></div>';
|
||
|
}
|
||
|
?>
|
||
|
|
||
|
</div>
|