getVolatileData('search_matched_comment_owner_guid'); $author = get_user($comment_author_guid); if ($author) { $author_name = $author->name; } // @todo Sometimes we find comments on entities we can't display... if ($entity->getVolatileData('search_unavailable_entity')) { $title = elgg_echo('search:comment_on', array(elgg_echo('search:unavailable_entity'))); } else { if ($entity->getType() == 'object') { $title = $entity->title; } else { $title = $entity->name; } if (!$title) { $title = elgg_echo('item:' . $entity->getType() . ':' . $entity->getSubtype()); } if (!$title) { $title = elgg_echo('item:' . $entity->getType()); } $title = elgg_echo('search:comment_on', array($title)); $title .= ' ' . elgg_echo('search:comment_by') . ' ' . $author_name; $url = $entity->getURL() . '#annotation-' . $entity->getVolatileData('search_match_annotation_id'); } $description = $entity->getVolatileData('search_matched_comment'); $tc = $entity->getVolatileData('search_matched_comment_time_created');; ?> <![CDATA[<?php echo $title; ?>]]> ]]>