* @author Curverider Ltd
* @link http://elgg.org/
*/
+?>
+
+<div class="search_listing">
+<?php
+if (!is_array($vars['entities']) || !count($vars['entities'])) {
+ return FALSE;
+}
+
+$title_str = elgg_echo('comments');
+$body = elgg_view_title($title_str);
+
+$query = htmlspecialchars(http_build_query(
+ array(
+ 'q' => $vars['params']['query'],
+ 'type' => $vars['params']['type'],
+ 'limit' => get_input('limit', 10),
+ 'offset' => get_input('offset', 0),
+ 'subtype' => $vars['params']['subtype']
+ )
+));
+
+$url = "{$vars['url']}pg/search?$query";
+$more = "<a href=\"$url\">+$count more $title_str</a>";
+
+echo elgg_view('page_elements/contentwrapper', array('body' => $body));
foreach ($vars['entities'] as $entity) {
if ($owner = $entity->getOwnerEntity()) {
</span>
</span>
___END;
-}
\ No newline at end of file
+}
+?>
+</div>