aboutsummaryrefslogtreecommitdiff
path: root/mod/search/views/default/search/entity.php
diff options
context:
space:
mode:
authorpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-03-11 18:14:25 +0000
committerpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-03-11 18:14:25 +0000
commit982d56d370ba021e17a6e8548cdeb26345a89380 (patch)
tree893988fd1e5cfbbc71f54a0656a93ca3fc78361a /mod/search/views/default/search/entity.php
parentbdacb612f3fffa967ef6fda89c081fb7a59894d2 (diff)
downloadelgg-982d56d370ba021e17a6e8548cdeb26345a89380.tar.gz
elgg-982d56d370ba021e17a6e8548cdeb26345a89380.tar.bz2
Updated Search results UI.
git-svn-id: http://code.elgg.org/elgg/trunk@5367 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/search/views/default/search/entity.php')
-rw-r--r--mod/search/views/default/search/entity.php17
1 files changed, 11 insertions, 6 deletions
diff --git a/mod/search/views/default/search/entity.php b/mod/search/views/default/search/entity.php
index 92f6aa41d..2b08384d5 100644
--- a/mod/search/views/default/search/entity.php
+++ b/mod/search/views/default/search/entity.php
@@ -14,16 +14,16 @@ $entity = $vars['entity'];
// @todo allow an option to switch to displaying the entity's icon instead.
$type = $entity->getType();
if ($type == 'user' || $type == 'group') {
- $icon = elgg_view('profile/icon', array('entity' => $entity, 'size' => 'small'));
+ $icon = elgg_view('profile/icon', array('entity' => $entity, 'size' => 'tiny'));
} elseif ($owner = $entity->getOwnerEntity()) {
- $icon = elgg_view('profile/icon', array('entity' => $owner, 'size' => 'small'));
+ $icon = elgg_view('profile/icon', array('entity' => $owner, 'size' => 'tiny'));
} else {
// display a generic icon if no owner, though there will probably be
// other problems if the owner can't be found.
$icon = elgg_view(
'graphics/icon', array(
'entity' => $entity,
- 'size' => 'small',
+ 'size' => 'tiny',
));
}
@@ -31,17 +31,22 @@ $title = $entity->getVolatileData('search_matched_title');
$description = $entity->getVolatileData('search_matched_description');
$extra_info = $entity->getVolatileData('search_matched_extra');
$url = $entity->getURL();
+
+if (!$title) {
+ $title = elgg_echo('untitled');
+}
+
$title = "<a href=\"$url\">$title</a>";
$tc = $entity->time_created;
$tu = $entity->time_updated;
$time = friendly_time(($tu > $tc) ? $tu : $tc);
echo <<<___END
- <div class="search_listing">
+ <div class="search_listing clearfloat">
<div class="search_listing_icon">$icon</div>
<div class="search_listing_info">
- <p class="ItemTitle">$title</p>$description
- <p class="ItemTimestamp">$time $extra_info</p>
+ <p class="entity_title">$title</p>$description
+ <p class="entity_subtext">$time $extra_info</p>
</div>
</div>
___END;