diff options
Diffstat (limited to 'mod')
-rw-r--r-- | mod/profile/profile_lib.php | 2 | ||||
-rw-r--r-- | mod/profile/views/default/profile/profile_contents/sidebar.php | 3 | ||||
-rwxr-xr-x | mod/profile/views/default/profile/profile_ownerblock.php | 3 |
3 files changed, 5 insertions, 3 deletions
diff --git a/mod/profile/profile_lib.php b/mod/profile/profile_lib.php index c52ad0fcf..3979ad9e3 100644 --- a/mod/profile/profile_lib.php +++ b/mod/profile/profile_lib.php @@ -44,7 +44,7 @@ function profile_get_user_profile_html($user, $section = 'activity') { break; } - $body .= elgg_view('profile/profile_contents/sidebar'); + $body .= elgg_view('profile/profile_contents/sidebar', array('section' => $section)); return $body; } diff --git a/mod/profile/views/default/profile/profile_contents/sidebar.php b/mod/profile/views/default/profile/profile_contents/sidebar.php index 49ca06484..43e3d1087 100644 --- a/mod/profile/views/default/profile/profile_contents/sidebar.php +++ b/mod/profile/views/default/profile/profile_contents/sidebar.php @@ -11,6 +11,7 @@ ?> <div id="profile_sidebar"> <?php - echo elgg_view('profile/profile_ownerblock', array('smallicon' => true)); + $section = $vars['section']; + echo elgg_view('profile/profile_ownerblock', array('section' => $section)); ?> </div>
\ No newline at end of file diff --git a/mod/profile/views/default/profile/profile_ownerblock.php b/mod/profile/views/default/profile/profile_ownerblock.php index c5cb90189..7f89d3782 100755 --- a/mod/profile/views/default/profile/profile_ownerblock.php +++ b/mod/profile/views/default/profile/profile_ownerblock.php @@ -16,7 +16,8 @@ if($vars['entity']){ $more_info = ''; //set some variables $location = elgg_view("output/tags",array('value' => $user->location)); -if($vars['smallicon'] != true){ +$section = $vars['section']; +if($section == 'details'){ $icon = elgg_view("profile/icon",array('entity' => $user, 'size' => 'large', 'override' => 'true')); $icon_class = "large"; }else{ |