blob: bc7b5574e57e7ba54c63310fa063a542dd214e5e (
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
25
26
27
|
<?php
/**
* OpenSearch serach results list
*/
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;
|