aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/diabook-blue/theme.php
diff options
context:
space:
mode:
authorTobias Diekershoff <tobias.diekershoff@gmx.net>2012-03-15 06:31:47 +0100
committerTobias Diekershoff <tobias.diekershoff@gmx.net>2012-03-15 06:31:47 +0100
commit80b57e664a3df68994108a3d511468b249e0bbff (patch)
tree44eb74a6943ecc26a795f136e79d653c39955d63 /view/theme/diabook-blue/theme.php
parent4fcdada4320d5d5619eb3a1f517d0fea6b26857b (diff)
parentb06c5983a4dae26dd24aecd7473bad98558cd6fc (diff)
downloadvolse-hubzilla-80b57e664a3df68994108a3d511468b249e0bbff.tar.gz
volse-hubzilla-80b57e664a3df68994108a3d511468b249e0bbff.tar.bz2
volse-hubzilla-80b57e664a3df68994108a3d511468b249e0bbff.zip
Merge branch 'master' of https://github.com/friendica/friendica
Diffstat (limited to 'view/theme/diabook-blue/theme.php')
-rwxr-xr-xview/theme/diabook-blue/theme.php36
1 files changed, 36 insertions, 0 deletions
diff --git a/view/theme/diabook-blue/theme.php b/view/theme/diabook-blue/theme.php
index e5aa710c7..75abb2fdf 100755
--- a/view/theme/diabook-blue/theme.php
+++ b/view/theme/diabook-blue/theme.php
@@ -11,6 +11,42 @@ $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 scripts
$a->page['htmlhead'] .= <<< EOT
<script>