diff options
Diffstat (limited to 'mod/profile/views/default/user')
-rw-r--r-- | mod/profile/views/default/user/user.php | 41 |
1 files changed, 14 insertions, 27 deletions
diff --git a/mod/profile/views/default/user/user.php b/mod/profile/views/default/user/user.php index 2c64ac0df..d2411c3d9 100644 --- a/mod/profile/views/default/user/user.php +++ b/mod/profile/views/default/user/user.php @@ -28,46 +28,33 @@ <?php
}
-
+ if (is_array($vars['profile']) && sizeof($vars['profile']) > 0)
+ foreach($vars['profile'] as $shortname => $valtype) {
+ if ($shortname != "description") {
+ $value = $vars['entity']->$shortname;
+ if (!empty($value)) {
+
?>
- <p>
- <b><?php
-
- echo elgg_echo("profile:location");
-
- ?>: </b>
- <?php
- echo elgg_view('output/tags',array('tags' => $vars['entity']->location));
-
- ?>
- </p>
<p>
<b><?php
-
- echo elgg_echo("profile:skills");
-
- ?>: </b>
- <?php
- echo elgg_view('output/tags',array('tags' => $vars['entity']->skills));
-
- ?>
- </p>
- <p>
- <b><?php
-
- echo elgg_echo("profile:interests");
+ echo elgg_echo("profile:{$shortname}");
?>: </b>
<?php
- echo elgg_view('output/tags',array('tags' => $vars['entity']->interests));
+ echo elgg_view("output/{$valtype}",array('value' => $vars['entity']->$shortname));
?>
+
</p>
- <?php
+ <?php
+ }
+ }
+ }
+
if ($vars['entity']->canEdit()) {
?>
|