The events moved from the profile to the navigation bar - for supported themes

This commit is contained in:
Michael Vogel 2015-09-30 18:50:44 +02:00
commit 68a6f0298e
8 changed files with 41 additions and 24 deletions

View file

@ -179,6 +179,10 @@ function events_content(&$a) {
);
}
if ($a->theme_events_in_profile)
nav_set_selected('home');
else
nav_set_selected('events');
$editselect = 'none';
if( feature_enabled(local_user(), 'richtext') )
@ -249,7 +253,8 @@ function events_content(&$a) {
$o ="";
// tabs
$tabs = profile_tabs($a, True);
if ($a->theme_events_in_profile)
$tabs = profile_tabs($a, True);

View file

@ -9,6 +9,8 @@ function notes_init(&$a) {
$which = $a->user['nickname'];
nav_set_selected('home');
// profile_load($a,$which,$profile);
}

View file

@ -17,6 +17,8 @@ function photos_init(&$a) {
return;
}
nav_set_selected('home');
$o = '';
if($a->argc > 1) {

View file

@ -15,6 +15,8 @@ function videos_init(&$a) {
return;
}
nav_set_selected('home');
$o = '';
if($a->argc > 1) {