]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Added large avatar to Profile/details page.
authorpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 9 Mar 2010 17:01:44 +0000 (17:01 +0000)
committerpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 9 Mar 2010 17:01:44 +0000 (17:01 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@5334 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/profile/profile_lib.php
mod/profile/views/default/profile/profile_contents/sidebar.php
mod/profile/views/default/profile/profile_ownerblock.php

index c52ad0fcf04b215d12e8e9f5e75790fed765e8c6..3979ad9e338308681ee2e91a1781ee6dd2e73063 100644 (file)
@@ -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;
 }
 
index 49ca0648413f1b5db2db30ebe829efd0d194cbad..43e3d10872a1d37e3f872142aa5a7de7aedca913 100644 (file)
@@ -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
index c5cb901898caed59aa72ca84b0a2dc7d51d5fd6f..7f89d37824c678517ce1cbab8d5f370a206363b9 100755 (executable)
@@ -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{