Fixing a small css issue in the user class.
[elgg.git] / units / search / function_search_all_display_rss.php
blob4cc8eee661f215be9895b982ffb9aac21d97423a
1 <?php
3 // Parse search query and send it to the search functions
5 global $search_exclusions;
7 if (isset($parameter)) {
9 $tag = $parameter;
10 $displaytag = htmlspecialchars($parameter, ENT_COMPAT, 'utf-8');
11 $sitename = sitename;
12 $url = url . "tag/" . $displaytag;
13 $rssurl = url . "rsstag/" . $displaytag;
14 $siteurl = url;
16 $searchdesc = sprintf(__gettext("Items tagged with \"%s\" from %s"),$displaytag,$sitename);
18 $run_result .= <<< END
19 <?xml-stylesheet type="text/xsl" href="{$rssurl}/rssstyles.xsl"?>
20 <rss version="0.91">
21 <channel>
22 <title>$sitename :: $displaytag</title>
23 <link>$url</link>
24 <description>$searchdesc</description>
26 END;
27 foreach($data['search:tagtypes'] as $tagtype) {
29 if (!isset($search_exclusions) || !in_array($tagtype,$search_exclusions)) {
30 $run_result .= run("search:display_results:rss", array($tagtype,$tag));
35 $run_result .= <<< END
36 </channel>
37 </rss>
38 END;