// display the login message in the header
if (!function_exists('cp_login_head')) {
function cp_login_head() {
if ( is_user_logged_in() ) :
global $current_user;
$current_user = wp_get_current_user();
$display_user_name = cp_get_user_name();
$logout_url = cp_logout_url();
?>
<?php _e( 'Welcome,', APP_TD ); ?> <strong><?php echo $display_user_name; ?></strong> [ <a href="<?php echo CP_DASHBOARD_URL; ?>"><?php _e( 'My Dashboard', APP_TD ); ?></a> | <a href="<?php echo $logout_url; ?>"><?php _e( 'Log out', APP_TD ); ?></a> ]
<?php else : ?>
<?php _e( 'Welcome,', APP_TD ); ?> <strong><?php _e( 'visitor!', APP_TD ); ?></strong> [ <a href="<?php echo appthemes_get_registration_url(); ?>"><?php _e( 'Register', APP_TD ); ?></a> | <a href="<?php echo wp_login_url(); ?>"><?php _e( 'Login', APP_TD ); ?></a> ]
<?php endif;
}
}
<div class="header_menu_res"> code...code...code... </div>
There are currently 1 users browsing this thread. (0 members and 1 guests)