From 9dc0e659d6b851c30f945ea8fe1e6f45bb9465dd Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Sat, 9 Oct 2010 00:45:09 -0700 Subject: [PATCH] issue #1, need login link on profile pages --- include/nav.php | 5 ++++- view/theme/default/style.css | 7 +++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/include/nav.php b/include/nav.php index 48b935a..cb08822 100644 --- a/include/nav.php +++ b/include/nav.php @@ -2,9 +2,12 @@ $a->page['nav'] .= '' ; -if(x($_SESSION['uid'])) { +if(local_user()) { $a->page['nav'] .= '' . t('Logout') . "\r\n"; } +else { + $a->page['nav'] .= '' . t('Login') . "\r\n"; +} $a->page['nav'] .= "\r\n"; diff --git a/view/theme/default/style.css b/view/theme/default/style.css index af5c694..ea176b7 100644 --- a/view/theme/default/style.css +++ b/view/theme/default/style.css @@ -57,6 +57,13 @@ code { blockquote:before { content: '>> '; } +.nav-login-link { + float: right; + margin-left: 0px; + margin-right: 3px; + padding: 3px; + font-size: 70%; +} /* NOTIFICATION */ #notification-show-hide-link {