aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/diabook-blue/theme.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-03-14 14:34:52 -0700
committerfriendica <info@friendica.com>2012-03-14 14:34:52 -0700
commitdcdfa96a1f2cd7193f33d9319fbb8cea2b6624d2 (patch)
treeaf12b1f1a8631dda4d74a1fa527e224379ae9dc4 /view/theme/diabook-blue/theme.php
parent9df67e5cfe18255957e0d20ef9440ba9afdaf0b6 (diff)
parent2dc527609e2f46dfeaa627833ccfbf2f9c0d7654 (diff)
downloadvolse-hubzilla-dcdfa96a1f2cd7193f33d9319fbb8cea2b6624d2.tar.gz
volse-hubzilla-dcdfa96a1f2cd7193f33d9319fbb8cea2b6624d2.tar.bz2
volse-hubzilla-dcdfa96a1f2cd7193f33d9319fbb8cea2b6624d2.zip
Merge branch 'pull'
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>