diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-10-17 20:04:17 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-10-17 20:04:17 -0700 |
commit | 0f47ac282c30c61dbc13e42c4f53b2fc14d65593 (patch) | |
tree | b56358665636f78c6e9a62f2abebfb75049cf447 /include/nav.php | |
parent | f5a8a92df101cbf37fedb9ac3f7702f60a40772e (diff) | |
download | volse-hubzilla-0f47ac282c30c61dbc13e42c4f53b2fc14d65593.tar.gz volse-hubzilla-0f47ac282c30c61dbc13e42c4f53b2fc14d65593.tar.bz2 volse-hubzilla-0f47ac282c30c61dbc13e42c4f53b2fc14d65593.zip |
celebrity/group/community pages about 75% implemented
Diffstat (limited to 'include/nav.php')
-rw-r--r-- | include/nav.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/nav.php b/include/nav.php index cb0882280..2c9d76bb3 100644 --- a/include/nav.php +++ b/include/nav.php @@ -27,8 +27,12 @@ else { $a->page['nav'] .= '<a id="nav-home-link" class="nav-commlink" href="profile/' . $a->user['nickname'] . '">' . t('Home') . '</a><span id="home-update" class="nav-ajax-left"></span>' . "\r\n"; - $a->page['nav'] .= '<a id="nav-notify-link" class="nav-commlink" href="notifications">' . t('Notifications') - . '</a><span id="notify-update" class="nav-ajax-left"></span>' . "\r\n"; + // only show friend requests for normal pages. Other page types have automatic friendship. + + if($_SESSION['page_flags'] == PAGE_NORMAL) { + $a->page['nav'] .= '<a id="nav-notify-link" class="nav-commlink" href="notifications">' . t('Notifications') + . '</a><span id="notify-update" class="nav-ajax-left"></span>' . "\r\n"; + } $a->page['nav'] .= '<a id="nav-messages-link" class="nav-commlink" href="message">' . t('Messages') . '</a><span id="mail-update" class="nav-ajax-left"></span>' . "\r\n"; |