From baf87075d343b3cefe662fc8dd08499fcb7d4c54 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Mon, 29 Dec 2014 16:23:23 +0100 Subject: [PATCH] Login and Logout top right links using wp functions --- sidebar-top.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sidebar-top.php b/sidebar-top.php index acb26e6..55c0583 100644 --- a/sidebar-top.php +++ b/sidebar-top.php @@ -31,12 +31,13 @@ if ( !is_active_sidebar( 'top-widget' ) "; if (!is_user_logged_in()) { - echo "".__('Login')." / "; + echo "".__('Login')." / "; echo "".__('Register')."  "; } else { get_currentuserinfo(); $a = sprintf( __('Howdy, %1$s'), $current_user->display_name ); echo "".$a." ".get_avatar( $current_user->ID, 20 )."  "; + echo "/ ".__('Logout')." "; } if ( function_exists ('the_msls' ) ) { echo " "; the_msls(); } ?>