Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function garland_user_bar() {
- global $user;
- $output = '';
- if (!$user->uid) {
- $output .=print ("Welcome Guest Please "); print l("Login","user");print (" or"); print l(" Register","user/register");
- }
- else {
- $output .= t('<p class="user-info">Hi !user, welcome back.</p>', array('!user' => theme('username', $user)));
- $output .= theme('item_list', array(
- l(t('Your account'), 'user/'.$user->uid, array('title' => t('Edit your account'))),
- l(t('Sign out'), 'logout')));
- $output = '<div id="user-bar">'.$output.'</div>';
- return $output;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement