From acfd8d4592a99f367a1e8e002fe8812e49c482bd Mon Sep 17 00:00:00 2001 From: pete Date: Tue, 9 Mar 2010 15:38:27 +0000 Subject: Full profile fields reinstated on profile/details page git-svn-id: http://code.elgg.org/elgg/trunk@5332 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/profile/index.php | 4 +-- .../default/profile/profile_contents/details.php | 38 ++++++++++------------ 2 files changed, 20 insertions(+), 22 deletions(-) (limited to 'mod') diff --git a/mod/profile/index.php b/mod/profile/index.php index 72adf08ca..6d56f2c87 100644 --- a/mod/profile/index.php +++ b/mod/profile/index.php @@ -23,7 +23,7 @@ if ($user = get_user_by_username($username)) { $body = elgg_view('profile/profile_navigation', array("option" => $option,"entity" => $user)); switch($option){ case 'activity': - $body .= elgg_view('profile/profile_contents/details', array("entity" => $user, "full" => true)); + $body .= elgg_view('profile/profile_contents/details', array("entity" => $user)); break; case 'widgets': @@ -42,7 +42,7 @@ if ($user = get_user_by_username($username)) { break; case 'default': - $body .= elgg_view('profile/profile_contents/details', array("entity" => $user, "full" => true)); + $body .= elgg_view('profile/profile_contents/details', array("entity" => $user)); break; } //$body .= elgg_view_entity($user,true); diff --git a/mod/profile/views/default/profile/profile_contents/details.php b/mod/profile/views/default/profile/profile_contents/details.php index 7c5e6a0a4..d040cef75 100755 --- a/mod/profile/views/default/profile/profile_contents/details.php +++ b/mod/profile/views/default/profile/profile_contents/details.php @@ -13,29 +13,27 @@ else if (check_entity_relationship(page_owner(), 'friend', $vars['entity']->guid)) $rel = 'friend'; - if ($vars['full'] == true) { - $even_odd = null; - if (is_array($vars['config']->profile) && sizeof($vars['config']->profile) > 0) - foreach($vars['config']->profile as $shortname => $valtype) { - if ($shortname != "description") { - $value = $vars['entity']->$shortname; - if (!empty($value)) { - //This function controls the alternating class - $even_odd = ( 'odd' != $even_odd ) ? 'odd' : 'even'; + $even_odd = null; + if (is_array($vars['config']->profile) && sizeof($vars['config']->profile) > 0) + foreach($vars['config']->profile as $shortname => $valtype) { + if ($shortname != "description") { + $value = $vars['entity']->$shortname; + if (!empty($value)) { + //This function controls the alternating class + $even_odd = ( 'odd' != $even_odd ) ? 'odd' : 'even'; ?> -

- : - $vars['entity']->$shortname)); - ?> -

- "> + : + $vars['entity']->$shortname)); + ?> +

+