aboutsummaryrefslogtreecommitdiff
path: root/mod/search/views/default
diff options
context:
space:
mode:
authorpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-11-16 21:37:30 +0000
committerpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-11-16 21:37:30 +0000
commit1e1db6fa06bc78f8cecb6c80cbef38689b3cae19 (patch)
treed9a2620acdc75e68b684334951bdf9854e24f1da /mod/search/views/default
parent2668b8089f966fcaac3fae4a449c2875f227731c (diff)
downloadelgg-1e1db6fa06bc78f8cecb6c80cbef38689b3cae19.tar.gz
elgg-1e1db6fa06bc78f8cecb6c80cbef38689b3cae19.tar.bz2
'More' links on serarch results moved, and link added to Tag results
git-svn-id: http://code.elgg.org/elgg/trunk@3690 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/search/views/default')
-rw-r--r--mod/search/views/default/search/comments/listing.php6
-rw-r--r--mod/search/views/default/search/listing.php6
-rw-r--r--mod/search/views/default/search/tags/listing.php29
3 files changed, 32 insertions, 9 deletions
diff --git a/mod/search/views/default/search/comments/listing.php b/mod/search/views/default/search/comments/listing.php
index 1bd1dedea..b3c8da5cf 100644
--- a/mod/search/views/default/search/comments/listing.php
+++ b/mod/search/views/default/search/comments/listing.php
@@ -46,7 +46,7 @@ $more = ($more_check > 0) ? $more_check : 0;
if ($more) {
$title_key = ($more == 1) ? 'comment' : 'comments';
$more_str = sprintf(elgg_echo('search:more'), $vars['count'], elgg_echo($title_key));
- $more_link = "<a href=\"$url\">$more_str</a>";
+ $more_link = "<div class='search_listing'><a href=\"$url\">$more_str</a></div>";
} else {
$more_link = '';
}
@@ -96,12 +96,12 @@ foreach ($vars['entities'] as $entity) {
<div class="search_listing_icon">$icon</div>
<div class="search_listing_info">
<p class="ItemTitle">$title</p>$description
- <p class="ItemTimestamp">$time - $more_link</p>
+ <p class="ItemTimestamp">$time</p>
</div>
</div>
___END;
}
echo $body;
+echo $more_link;
echo $nav;
-//echo elgg_view('page_elements/contentwrapper', array('body' => $body));
diff --git a/mod/search/views/default/search/listing.php b/mod/search/views/default/search/listing.php
index 5a5ecd218..c8551b9a4 100644
--- a/mod/search/views/default/search/listing.php
+++ b/mod/search/views/default/search/listing.php
@@ -55,7 +55,7 @@ $more = ($more_check > 0) ? $more_check : 0;
if ($more) {
$title_key = ($more == 1) ? 'comment' : 'comments';
$more_str = sprintf(elgg_echo('search:more'), $count, $type_str);
- $more_link = "<a href=\"$url\">$more_str</a>";
+ $more_link = "<div class='search_listing'><a href=\"$url\">$more_str</a></div>";
} else {
$more_link = '';
}
@@ -83,11 +83,11 @@ foreach ($entities as $entity) {
<div class="search_listing_icon">$icon</div>
<div class="search_listing_info">
<p class="ItemTitle">$title</p>$description
- <p class="ItemTimestamp">$time - $more_link</p>
+ <p class="ItemTimestamp">$time</p>
</div>
</div>
___END;
}
echo $body;
-//echo elgg_view('page_elements/contentwrapper', array('body' => $body));
+echo $more_link;
echo $nav;
diff --git a/mod/search/views/default/search/tags/listing.php b/mod/search/views/default/search/tags/listing.php
index 47a57e973..075487295 100644
--- a/mod/search/views/default/search/tags/listing.php
+++ b/mod/search/views/default/search/tags/listing.php
@@ -12,17 +12,39 @@
<?php
$entities = $vars['entities'];
-$count = $vars['count'];
if (!is_array($vars['entities']) || !count($vars['entities'])) {
return FALSE;
}
+$query = htmlspecialchars(http_build_query(
+ array(
+ 'q' => $vars['params']['query'],
+ 'entity_type' => $vars['params']['type'],
+ 'entity_subtype' => $vars['params']['subtype'],
+ 'limit' => get_input('limit', 10),
+ 'offset' => get_input('offset', 0),
+ 'search_type' => 'tags',
+ )
+));
+
+$url = "{$vars['url']}pg/search?$query";
+
+// get any more links.
+$more_check = $vars['count'] - ($vars['params']['offset'] + $vars['params']['limit']);
+$more = ($more_check > 0) ? $more_check : 0;
+
+if ($more) {
+ $title_key = ($more == 1) ? 'tag' : 'tags';
+ $more_str = sprintf(elgg_echo('search:more'), $vars['count'], elgg_echo($title_key));
+ $more_link = "<div class='search_listing'><a href=\"$url\">$more_str</a></div>";
+} else {
+ $more_link = '';
+}
+
$title_str = elgg_echo("item:{$vars['params']['type']}:{$vars['params']['subtype']}");
$body = elgg_view_title(elgg_echo('tags'));
-//echo elgg_view('page_elements/contentwrapper', array('body' => $body));
-
foreach ($entities as $entity) {
if ($owner = $entity->getOwnerEntity()) {
$owner_icon = $owner->getIcon('tiny');
@@ -42,4 +64,5 @@ foreach ($entities as $entity) {
$body .= $entity_html;
}
echo $body;
+echo $more_link;
?>