diff options
author | pete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-09 15:38:27 +0000 |
---|---|---|
committer | pete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-09 15:38:27 +0000 |
commit | acfd8d4592a99f367a1e8e002fe8812e49c482bd (patch) | |
tree | 552db6fcb1226f86475c130a5a7cbadce31d85e2 /mod/profile/views/default | |
parent | cebd3ad4db4995ceced05c5f2da9bf6ee06074d4 (diff) | |
download | elgg-acfd8d4592a99f367a1e8e002fe8812e49c482bd.tar.gz elgg-acfd8d4592a99f367a1e8e002fe8812e49c482bd.tar.bz2 |
Full profile fields reinstated on profile/details page
git-svn-id: http://code.elgg.org/elgg/trunk@5332 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/profile/views/default')
-rwxr-xr-x | mod/profile/views/default/profile/profile_contents/details.php | 38 |
1 files changed, 18 insertions, 20 deletions
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'; ?> - <p class="<?php echo $even_odd; ?>"> - <b><?php - echo elgg_echo("profile:{$shortname}"); - ?>: </b> - <?php - echo elgg_view("output/{$valtype}",array('value' => $vars['entity']->$shortname)); - ?> - </p> - <?php - } + <p class="<?php echo $even_odd; ?>"> + <b><?php + echo elgg_echo("profile:{$shortname}"); + ?>: </b> + <?php + echo elgg_view("output/{$valtype}",array('value' => $vars['entity']->$shortname)); + ?> + </p> + <?php } } - } + } ?> <?php if (!get_plugin_setting('user_defined_fields', 'profile')) { |