From 8fbbdf8785a9640e20bd4b4c59a02fbb3cac8337 Mon Sep 17 00:00:00 2001 From: ben Date: Mon, 28 Apr 2008 10:36:35 +0000 Subject: The profile now has fields set in start.php. TODO: make those user editable, once we have the admin panel ... git-svn-id: https://code.elgg.org/elgg/trunk@543 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/profile/views/default/user/user.php | 41 +++++++++++---------------------- 1 file changed, 14 insertions(+), 27 deletions(-) (limited to 'mod/profile/views/default/user/user.php') 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 @@ 0) + foreach($vars['profile'] as $shortname => $valtype) { + if ($shortname != "description") { + $value = $vars['entity']->$shortname; + if (!empty($value)) { + ?> -

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

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

-

- : $vars['entity']->interests)); + echo elgg_view("output/{$valtype}",array('value' => $vars['entity']->$shortname)); ?> +

- canEdit()) { ?> -- cgit v1.2.3