This commit is contained in:
Hoang Huu
2020-05-12 10:28:05 +07:00
parent b4b2d5c553
commit dc600a4172
5 changed files with 15 additions and 6 deletions

View File

@@ -111,9 +111,9 @@ $roles_classes = implode( ' ', array_map( 'sanitize_html_class', $roles ) )
</div>
</div>
<div class="content-area" id="primary">
<?php $tab = isset( $_GET['tab'] ) && $_GET['tab'] ? sanitize_text_field( $_GET['tab'] ) : 'dashboard'; ?>
<div class="site-main" id="main" role="main">
<?php if ( isset( $_GET['tab'] ) ) : ?>
<?php if ( $tab ) : ?>
<?php opalestate_management_show_content_page_tab(); ?>
<?php else : ?>
<?php while ( have_posts() ) : the_post(); ?>