diff options
author | Friendika <info@friendika.com> | 2011-10-11 20:38:09 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-10-11 20:38:09 -0700 |
commit | 3ef7dcac4b84f6f78dcba5cd768fc08f9cfc1067 (patch) | |
tree | a5c1bb726da5cb539004d212f0aaae3f8f9ffb95 | |
parent | 2206d894b3fec7064b91e0420bcc2b16e9e7009b (diff) | |
download | volse-hubzilla-3ef7dcac4b84f6f78dcba5cd768fc08f9cfc1067.tar.gz volse-hubzilla-3ef7dcac4b84f6f78dcba5cd768fc08f9cfc1067.tar.bz2 volse-hubzilla-3ef7dcac4b84f6f78dcba5cd768fc08f9cfc1067.zip |
solve intro/notify naming issue by providing both or either, theme decides what to do
-rw-r--r-- | include/nav.php | 5 | ||||
-rw-r--r-- | view/theme/duepuntozero/nav.tpl | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/include/nav.php b/include/nav.php index 600043ee5..5c24df51e 100644 --- a/include/nav.php +++ b/include/nav.php @@ -114,7 +114,9 @@ function nav(&$a) { /* only show friend requests for normal pages. Other page types have automatic friendship. */ if($_SESSION['page_flags'] == PAGE_NORMAL) { - $nav['notifications'] = array('notifications/network', t('Notifications'), "", t('Notifications')); + $nav['introductions'] = array('notifications/intros', t('Introductions'), "", t('Friend Requests')); + $nav['notifications'] = array('notifications', t('Notifications'), "", t('Notifications')); + } $nav['messages'] = array('message', t('Messages'), "", t('Private mail')); @@ -175,6 +177,7 @@ function nav_set_selected($item){ 'network' => null, 'home' => null, 'profiles' => null, + 'introductions' => null, 'notifications' => null, 'messages' => null, 'directory' => null, diff --git a/view/theme/duepuntozero/nav.tpl b/view/theme/duepuntozero/nav.tpl index b13ea9ae2..afa918065 100644 --- a/view/theme/duepuntozero/nav.tpl +++ b/view/theme/duepuntozero/nav.tpl @@ -30,8 +30,8 @@ {{ if $nav.community }} <a id="nav-community-link" class="nav-commlink $nav.community.2 $sel.community" href="$nav.community.0" title="$nav.community.3" >$nav.community.1</a> {{ endif }} - {{ if $nav.notifications }} - <a id="nav-notify-link" class="nav-commlink $nav.notifications.2 $sel.notifications" href="$nav.notifications.0" title="$nav.notifications.3" >$nav.notifications.1</a> + {{ if $nav.introductions }} + <a id="nav-notify-link" class="nav-commlink $nav.introductions.2 $sel.introductions" href="$nav.introductions.0" title="$nav.introductions.3" >$nav.introductions.1</a> <span id="intro-update" class="nav-ajax-left"></span> {{ endif }} {{ if $nav.messages }} |