diff options
Diffstat (limited to 'mod/profile/views/default')
-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 |
2 files changed, 4 insertions, 2 deletions
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{ |