From 1e1db6fa06bc78f8cecb6c80cbef38689b3cae19 Mon Sep 17 00:00:00 2001 From: pete Date: Mon, 16 Nov 2009 21:37:30 +0000 Subject: '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 --- .../views/default/search/comments/listing.php | 6 ++--- mod/search/views/default/search/listing.php | 6 ++--- mod/search/views/default/search/tags/listing.php | 29 +++++++++++++++++++--- 3 files changed, 32 insertions(+), 9 deletions(-) (limited to 'mod/search/views/default') 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 = "$more_str"; + $more_link = "
$more_str
"; } else { $more_link = ''; } @@ -96,12 +96,12 @@ foreach ($vars['entities'] as $entity) {
$icon

$title

$description -

$time - $more_link

+

$time

___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 = "$more_str"; + $more_link = "
$more_str
"; } else { $more_link = ''; } @@ -83,11 +83,11 @@ foreach ($entities as $entity) {
$icon

$title

$description -

$time - $more_link

+

$time

___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 @@ $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 = "
$more_str
"; +} 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; ?> -- cgit v1.2.3