aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mod/search/views/default/search/comments/listing.php29
1 files changed, 28 insertions, 1 deletions
diff --git a/mod/search/views/default/search/comments/listing.php b/mod/search/views/default/search/comments/listing.php
index ba9b7ea6e..8ba0a2288 100644
--- a/mod/search/views/default/search/comments/listing.php
+++ b/mod/search/views/default/search/comments/listing.php
@@ -7,6 +7,31 @@
* @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()) {
@@ -31,4 +56,6 @@ foreach ($vars['entities'] as $entity) {
</span>
</span>
___END;
-} \ No newline at end of file
+}
+?>
+</div>