From 689c997f58b25df81164df9acdf5ebd9c1ad2bc9 Mon Sep 17 00:00:00 2001 From: ben Date: Fri, 27 Jun 2008 11:16:45 +0000 Subject: Introducing elgg_view_listing git-svn-id: https://code.elgg.org/elgg/trunk@1169 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/profile/views/default/profile/listing.php | 46 +++++++++------------------ 1 file changed, 15 insertions(+), 31 deletions(-) (limited to 'mod/profile') diff --git a/mod/profile/views/default/profile/listing.php b/mod/profile/views/default/profile/listing.php index 6b6381f64..3b322f799 100644 --- a/mod/profile/views/default/profile/listing.php +++ b/mod/profile/views/default/profile/listing.php @@ -12,36 +12,20 @@ * @uses $vars['entity'] The user entity */ -?> - -
+ $icon = elgg_view( + "profile/icon", array( + 'entity' => $vars['entity'], + 'size' => 'small', + ) + ); -
- $vars['entity'], - 'size' => 'small', - ) - ); - - ?> -
-
-

getUrl() . "\">" . $vars['entity']->name . ""; - - ?>

- location; - if (!empty($location)) { - echo "

" . elgg_echo("profile:location") . ": " . elgg_view("output/tags",array('value' => $vars['entity']->location)) . "

"; - } - - ?> -
+ $info = "

getUrl() . "\">" . $vars['entity']->name . "

"; -
\ No newline at end of file + $location = $vars['entity']->location; + if (!empty($location)) { + $info .= "

" . elgg_echo("profile:location") . ": " . elgg_view("output/tags",array('value' => $vars['entity']->location)) . "

"; + } + + echo elgg_view_listing($icon, $info); + +?> \ No newline at end of file -- cgit v1.2.3