]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixed the wrapper for comment listing.
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sun, 8 Nov 2009 00:15:03 +0000 (00:15 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sun, 8 Nov 2009 00:15:03 +0000 (00:15 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@3639 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/search/views/default/search/comments/listing.php

index ba9b7ea6eb2bc4a371d1e38f28644c4fd2e47d62..8ba0a22886680db2ebcc7a2da0a5954b7782f340 100644 (file)
@@ -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>