aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/diabook/theme.php
diff options
context:
space:
mode:
authortommy tomson <thomas.bierey@gmx.de>2012-03-14 12:50:11 +0100
committertommy tomson <thomas.bierey@gmx.de>2012-03-14 12:50:11 +0100
commit42462cc1f00cd0d2e637ff3ddb62b30ae4a645c6 (patch)
treede57dff1f997b6734ea31ebd74065b4faa1afcb6 /view/theme/diabook/theme.php
parent8358b9247f857e52d794a99c30a11941ef2a9214 (diff)
downloadvolse-hubzilla-42462cc1f00cd0d2e637ff3ddb62b30ae4a645c6.tar.gz
volse-hubzilla-42462cc1f00cd0d2e637ff3ddb62b30ae4a645c6.tar.bz2
volse-hubzilla-42462cc1f00cd0d2e637ff3ddb62b30ae4a645c6.zip
add links to home, profile, photos, events, notes to aside in network-stream
Diffstat (limited to 'view/theme/diabook/theme.php')
-rwxr-xr-xview/theme/diabook/theme.php37
1 files changed, 37 insertions, 0 deletions
diff --git a/view/theme/diabook/theme.php b/view/theme/diabook/theme.php
index 5d3c2906d..9b3ed30b0 100755
--- a/view/theme/diabook/theme.php
+++ b/view/theme/diabook/theme.php
@@ -11,6 +11,43 @@ $a->theme_info = array(
'extends' => 'diabook',
);
+//profile_side
+
+
+
+$nav['usermenu']=array();
+$userinfo = null;
+
+if(local_user()) {
+
+
+
+$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'],
+ );
+
+$ps['usermenu'][status] = Array('profile/' . $a->user['nickname'], t('Home'), "", t('Your posts and conversations'));
+$ps['usermenu'][profile] = Array('profile/' . $a->user['nickname']. '?tab=profile', t('Profile'), "", t('Your profile page'));
+$ps['usermenu'][photos] = Array('photos/' . $a->user['nickname'], t('Photos'), "", t('Your photos'));
+$ps['usermenu'][events] = Array('events/', t('Events'), "", t('Your events'));
+$ps['usermenu'][notes] = Array('notes/', t('Personal notes'), "", t('Your personal photos'));
+
+
+if($is_url = preg_match ("/\bnetwork\b/i", $_SERVER['REQUEST_URI'])) {
+$tpl = get_markup_template('profile_side.tpl');
+
+$a->page['aside'] .= replace_macros($tpl, array(
+ '$userinfo' => $userinfo,
+ '$ps' => $ps,
+ ));
+}
+}
+
+//js script
+
$a->page['htmlhead'] .= <<< EOT
<script>