aboutsummaryrefslogtreecommitdiff
path: root/views/opensearch_rss/search/listing.php
blob: 2194629765fe6b05b2142fb00e98750e8b29f5d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php

global $OPEN_SEARCH_COUNT;
if (!isset($OPEN_SEARCH_COUNT)) {
	$OPEN_SEARCH_COUNT = 0;
}

$OPEN_SEARCH_COUNT += $vars['results']['count'];


elgg_set_viewtype('rss');
$entities = $vars['results']['entities'];
foreach ($entities as $entity) {
	if ($view = search_get_search_view($vars['params'], 'entity')) {
		$body .= elgg_view($view, array(
			'entity' => $entity,
			'params' => $vars['params'],
			'results' => $vars['results']
		));
	}
}
elgg_set_viewtype('opensearch_rss');

echo $body;