Fix dashboard

This commit is contained in:
Hoang Huu 2019-09-25 13:12:42 +07:00
parent df0c81f6f1
commit b2f43caeb1

View File

@ -34,26 +34,6 @@ if ( $current_user->display_name !== $current_user->user_login ) {
<button class="btn btn-link" id="show-user-sidebar-btn"> <button class="btn btn-link" id="show-user-sidebar-btn">
<i class="fa fa-bars"></i> <i class="fa fa-bars"></i>
</button> </button>
<div class="navbar-brand">
<!-- Your site title as branding in the menu -->
<?php if ( ! has_custom_logo() ) { ?>
<?php if ( is_front_page() && is_home() ) : ?>
<h1 class="navbar-brand mb-0">
<a rel="home" href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" itemprop="url">
<?php bloginfo( 'name' ); ?>
</a>
</h1>
<?php else : ?>
<a class="navbar-brand" rel="home" href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" itemprop="url">
<?php bloginfo( 'name' ); ?>
</a>
<?php endif; ?>
<?php } else {
the_custom_logo();
} ?><!-- end custom logo -->
</div>
</div> </div>
<div class=" pull-right"> <div class=" pull-right">
@ -81,7 +61,6 @@ if ( $current_user->display_name !== $current_user->user_login ) {
</div> </div>
</li> </li>
</ul> </ul>
</div> </div>
</div> </div>
</div> </div>
@ -90,6 +69,24 @@ if ( $current_user->display_name !== $current_user->user_login ) {
<div class="container-full" id="content"> <div class="container-full" id="content">
<div class="opal-row-inner"> <div class="opal-row-inner">
<div class=" user-dasboard-sidebar"> <div class=" user-dasboard-sidebar">
<div class="navbar-brand">
<?php if ( ! has_custom_logo() ) { ?>
<?php if ( is_front_page() && is_home() ) : ?>
<h1 class="navbar-brand mb-0">
<a rel="home" href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" itemprop="url">
<?php bloginfo( 'name' ); ?>
</a>
</h1>
<?php else : ?>
<a class="navbar-brand" rel="home" href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" itemprop="url">
<?php bloginfo( 'name' ); ?>
</a>
<?php endif; ?>
<?php } else {
the_custom_logo();
} ?><!-- end custom logo -->
</div>
<div class="user-dasboard-sidebar-inner"> <div class="user-dasboard-sidebar-inner">
<?php <?php
@ -127,7 +124,6 @@ if ( $current_user->display_name !== $current_user->user_login ) {
</div><!-- Container end --> </div><!-- Container end -->
</div><!-- Wrapper end --> </div><!-- Wrapper end -->
<?php else : ?> <?php else : ?>
<div class="wrapper opalestate-user-management" id="opalestate-user-management"> <div class="wrapper opalestate-user-management" id="opalestate-user-management">
<div class="container"> <div class="container">
<div class="opalestate-panel-myaccount"> <div class="opalestate-panel-myaccount">