diff options
Diffstat (limited to 'mod')
-rw-r--r-- | mod/profile/views/default/profile/listing.php | 46 |
1 files changed, 15 insertions, 31 deletions
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
*/
-?>
-
- <div class="search_listing">
+ $icon = elgg_view(
+ "profile/icon", array(
+ 'entity' => $vars['entity'],
+ 'size' => 'small',
+ )
+ );
- <div class="search_listing_icon">
- <?php
-
- echo elgg_view(
- "profile/icon", array(
- 'entity' => $vars['entity'],
- 'size' => 'small',
- )
- );
-
- ?>
- </div>
- <div class="search_listing_info">
- <p><b><?php
-
- echo "<a href=\"" . $vars['entity']->getUrl() . "\">" . $vars['entity']->name . "</a>";
-
- ?></b></p>
- <?php
-
- $location = $vars['entity']->location;
- if (!empty($location)) {
- echo "<p>" . elgg_echo("profile:location") . ": " . elgg_view("output/tags",array('value' => $vars['entity']->location)) . "</p>";
- }
-
- ?>
- </div>
+ $info = "<p><b><a href=\"" . $vars['entity']->getUrl() . "\">" . $vars['entity']->name . "</a></b></p>";
- </div>
\ No newline at end of file + $location = $vars['entity']->location;
+ if (!empty($location)) {
+ $info .= "<p>" . elgg_echo("profile:location") . ": " . elgg_view("output/tags",array('value' => $vars['entity']->location)) . "</p>";
+ }
+
+ echo elgg_view_listing($icon, $info);
+
+?>
\ No newline at end of file |