aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-03-09 17:01:44 +0000
committerpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-03-09 17:01:44 +0000
commit3b116ee48300d19f36888c078429d668a7418cd4 (patch)
tree79cbab064454b408507fd29507e0655c9bc7d3f7 /mod
parent0ed684cbb7984feff60bb357bdf208dc423b6785 (diff)
downloadelgg-3b116ee48300d19f36888c078429d668a7418cd4.tar.gz
elgg-3b116ee48300d19f36888c078429d668a7418cd4.tar.bz2
Added large avatar to Profile/details page.
git-svn-id: http://code.elgg.org/elgg/trunk@5334 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod')
-rw-r--r--mod/profile/profile_lib.php2
-rw-r--r--mod/profile/views/default/profile/profile_contents/sidebar.php3
-rwxr-xr-xmod/profile/views/default/profile/profile_ownerblock.php3
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{