Update user-management.php
This commit is contained in:
parent
fb19196359
commit
3fb8aa84f0
@ -17,17 +17,12 @@ if ( ! class_exists( 'OpalEstate_User' ) ) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
get_header( 'no-sidebar' );
|
|
||||||
$user_id = get_current_user_id();
|
$user_id = get_current_user_id();
|
||||||
$current_user = wp_get_current_user();
|
$current_user = wp_get_current_user();
|
||||||
|
|
||||||
$user_info = "<span class='display-name'>{$current_user->display_name}</span>";
|
|
||||||
|
|
||||||
if ( $current_user->display_name !== $current_user->user_login ) {
|
|
||||||
$user_info .= "<span class='username'>{$current_user->user_login}</span>";
|
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
<?php if ( $user_id ): ?>
|
<?php if ( $user_id ): ?>
|
||||||
|
<?php get_header( 'no-sidebar' ); ?>
|
||||||
<div class="dashboard-navbar">
|
<div class="dashboard-navbar">
|
||||||
<div class="clearfix">
|
<div class="clearfix">
|
||||||
<div class="pull-left navbar-left">
|
<div class="pull-left navbar-left">
|
||||||
@ -134,7 +129,9 @@ if ( $current_user->display_name !== $current_user->user_login ) {
|
|||||||
</div><!-- .row end -->
|
</div><!-- .row end -->
|
||||||
</div><!-- Container end -->
|
</div><!-- Container end -->
|
||||||
</div><!-- Wrapper end -->
|
</div><!-- Wrapper end -->
|
||||||
|
<?php get_footer( 'header/no-sidebar' ); ?>
|
||||||
<?php else : ?>
|
<?php else : ?>
|
||||||
|
<?php get_header(); ?>
|
||||||
<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">
|
||||||
@ -146,5 +143,5 @@ if ( $current_user->display_name !== $current_user->user_login ) {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<?php get_footer(); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php get_footer( 'header/no-sidebar' ); ?>
|
|
||||||
|
Loading…
Reference in New Issue
Block a user