diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-07 02:38:51 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-07 02:38:51 +0000 |
commit | ccca9564b23d6f860d46ccdb86a7578e74b7a534 (patch) | |
tree | 72fbe19572d8006a0babb8782cd514bb8d05a731 /mod/search/views/default/search/comments/entity.php | |
parent | cb5ecaff25b858117a57ede78f353661a520c9d4 (diff) | |
download | elgg-ccca9564b23d6f860d46ccdb86a7578e74b7a534.tar.gz elgg-ccca9564b23d6f860d46ccdb86a7578e74b7a534.tar.bz2 |
Fixes #2335 #2336 clean up and minor standardization of search plugin - needs html/css clean up
git-svn-id: http://code.elgg.org/elgg/trunk@8057 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/search/views/default/search/comments/entity.php')
-rw-r--r-- | mod/search/views/default/search/comments/entity.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/mod/search/views/default/search/comments/entity.php b/mod/search/views/default/search/comments/entity.php index 6e267fe7a..eddb36547 100644 --- a/mod/search/views/default/search/comments/entity.php +++ b/mod/search/views/default/search/comments/entity.php @@ -1,16 +1,16 @@ <?php /** - * Elgg search entity + * Default view for a comment * - * @package Elgg - * @subpackage Core + * @uses $vars['entity'] */ + $entity = $vars['entity']; $owner = get_entity($entity->getVolatileData('search_matched_comment_owner_guid')); if ($owner instanceof ElggUser) { - $icon = elgg_view('profile/icon', array('entity' => $owner, 'size' => 'tiny')); + $icon = elgg_view_entity_icon($owner, 'tiny'); } else { $icon = ''; } @@ -36,6 +36,8 @@ if ($entity->getVolatileData('search_unavailable_entity')) { } $title = elgg_echo('search:comment_on', array($title)); + + // @todo this should use something like $comment->getURL() $url = $entity->getURL() . '#comment_' . $entity->getVolatileData('search_match_annotation_id'); $title = "<a href=\"$url\">$title</a>"; } @@ -54,4 +56,4 @@ echo <<<___END </div> ___END; -?> +?>
\ No newline at end of file |