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

@ -116,8 +116,9 @@ function profile_content(&$a, $update = 0) {
'$status' => t('Status'),
'$profile' => t('Profile'),
'$photos' => t('Photos'),
'$events' => (($is_owner) ? '<a href="events" id="profile-tab-events-link" class="profile-tabs" >' . t('Events') . '</a>' : ''),
'$notes' => (($is_owner) ? '<a href="notes" id="profile-tab-notes-link" class="profile-tabs" >' . t('Personal Notes') . '</a>' : '')
'$events' => (($is_owner) ? t('Events') : ''),
'$notes' => (($is_owner) ? t('Personal Notes') : ''),
'$activetab' => $tab,
));