aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2011-07-29 16:23:47 +0200
committerFabio Comuni <fabrix.xm@gmail.com>2011-07-29 16:23:47 +0200
commitd12e2cbfe913529fbca0cc75c4f157ae42db616d (patch)
tree819f9f0e777a1335ecfee19f88354e4eddf9a70a /include
parent23d6339a4152759d8dcf68afc6e7dea652336d8c (diff)
downloadvolse-hubzilla-d12e2cbfe913529fbca0cc75c4f157ae42db616d.tar.gz
volse-hubzilla-d12e2cbfe913529fbca0cc75c4f157ae42db616d.tar.bz2
volse-hubzilla-d12e2cbfe913529fbca0cc75c4f157ae42db616d.zip
Fix nav template and add missing strings
Diffstat (limited to 'include')
-rw-r--r--include/nav.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/nav.php b/include/nav.php
index caed9453a..bb1a5b2d8 100644
--- a/include/nav.php
+++ b/include/nav.php
@@ -37,8 +37,26 @@ function nav(&$a) {
* Display login or logout
*/
+ $nav['usermenu']=array();
+ $userinfo = null;
+
if(local_user()) {
$nav['logout'] = Array('logout',t('Logout'), "", t('End this session'));
+
+ // user menu
+ $nav['usermenu'][] = Array('profile/' . $a->user['nickname'], t('Status'), "", t('Your posts and conversations'));
+ $nav['usermenu'][] = Array('profile/' . $a->user['nickname']. '?tab=profile', t('Profile'), "", t('Your profile page'));
+ $nav['usermenu'][] = Array('photos/' . $a->user['nickname'], t('Photos'), "", t('Your photos'));
+ $nav['usermenu'][] = Array('events/', t('Events'), "", t('Your events'));
+ $nav['usermenu'][] = Array('notes/', t('Personal notes'), "", t('Your personal photos'));
+
+ // user info
+ $r = q("SELECT micro FROM contact WHERE uid=%d AND self=1", intval($a->user['uid']));
+ $userinfo = array(
+ 'icon' => (count($r) ? $r[0]['micro']: $a->get_baseurl()."/images/default-profile-mm.jpg"),
+ 'name' => $a->user['username'],
+ );
+
}
else {
$nav['login'] = Array('login',t('Login'), ($a->module == 'login'?'selected':''), t('Sign in'));
@@ -137,6 +155,8 @@ function nav(&$a) {
'$sitelocation' => $sitelocation,
'$nav' => $nav,
'$banner' => $banner,
+ '$emptynotifications' => t('Nothing new here'),
+ '$userinfo' => $userinfo,
));
call_hooks('page_header', $a->page['nav']);