aboutsummaryrefslogtreecommitdiffstats
path: root/mod/events.php
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2011-06-23 11:30:17 +0200
committerFabio Comuni <fabrix.xm@gmail.com>2011-06-23 11:30:17 +0200
commit5de7d0f12f279aed4551d261d8f71325ca01028a (patch)
tree41af3d6ef5a8bc465f3718fd01aaa2b88ae9b2a2 /mod/events.php
parentaa4636d03a03718c5c5e58c17af40ee0104be2b6 (diff)
downloadvolse-hubzilla-5de7d0f12f279aed4551d261d8f71325ca01028a.tar.gz
volse-hubzilla-5de7d0f12f279aed4551d261d8f71325ca01028a.tar.bz2
volse-hubzilla-5de7d0f12f279aed4551d261d8f71325ca01028a.zip
add profile tabs to "photos", "events" and "notes". in dispy, show active tab.
Diffstat (limited to 'mod/events.php')
-rw-r--r--mod/events.php17
1 files changed, 16 insertions, 1 deletions
diff --git a/mod/events.php b/mod/events.php
index 156b464ba..642da3cb7 100644
--- a/mod/events.php
+++ b/mod/events.php
@@ -103,8 +103,23 @@ function events_content(&$a) {
return;
}
+ $o ="";
+ // tabs
+ $tpl = get_markup_template('profile_tabs.tpl');
+ $o .= replace_macros($tpl,array(
+ '$url' => $a->get_baseurl() . '/profile/' . $a->user['nickname'],
+ '$phototab' => $a->get_baseurl() . '/photos/' . $a->user['nickname'],
+ '$status' => t('Status'),
+ '$profile' => t('Profile'),
+ '$photos' => t('Photos'),
+ '$events' => t('Events') ,
+ '$notes' => t('Personal Notes'),
+ '$activetab' => "events",
+ ));
+
$o .= '<h2>' . t('Events') . '</h2>';
+
$mode = 'view';
$y = 0;
$m = 0;
@@ -318,4 +333,4 @@ function events_content(&$a) {
return $o;
}
-} \ No newline at end of file
+}