Merge branch 'master' of https://github.com/wpopal/opal-estate-pro
This commit is contained in:
commit
fa7e675e9d
@ -183,6 +183,8 @@ function opalestate_management_user_menu_tabs() {
|
||||
|
||||
$uri = opalestate_get_user_management_page_uri();
|
||||
|
||||
$current_tab = isset( $_GET['tab'] ) && $_GET['tab'] ? sanitize_text_field( $_GET['tab'] ) : 'dashboard';
|
||||
|
||||
foreach ( $menu as $key => $item ) {
|
||||
if( preg_match("#http#", $item['link']) ){
|
||||
$link = $item['link'];
|
||||
@ -190,7 +192,7 @@ function opalestate_management_user_menu_tabs() {
|
||||
$link = $uri . '?tab=' . $item['link'];
|
||||
}
|
||||
|
||||
$output .= '<li class="' . ( is_object( $post ) && $post->ID == $item['id'] ? 'active' : '' ) . '"><a href="' . $link . '"><i class="' . $item['icon'] . '"></i> ' . $item['title'] . '</a></li>';
|
||||
$output .= '<li class="account-links-item' . ( $current_tab == $item['link'] ? ' active' : '' ) . '"><a href="' . $link . '"><i class="' . $item['icon'] . '"></i> ' . $item['title'] . '</a></li>';
|
||||
}
|
||||
|
||||
$output .= '<li><a href="' . wp_logout_url( home_url( '/' ) ) . '"> <i class="fa fa-unlock"></i> ' . esc_html__( 'Log out', 'opalestate-pro' ) . '</a></li>';
|
||||
|
Loading…
Reference in New Issue
Block a user