add profile tabs to "photos", "events" and "notes". in dispy, show active tab.

This commit is contained in:
Fabio Comuni 2011-06-23 11:30:17 +02:00
parent aa4636d03a
commit 5de7d0f12f
7 changed files with 68 additions and 19 deletions

View file

@ -36,6 +36,20 @@ function notes_content(&$a) {
$contact = $a->contact;
$is_owner = true;
$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' => "notes",
));
$o .= '<h3>' . t('Personal Notes') . '</h3>';