root/devel-backup/units/search/function_search_all_display_rss.php

Revision 246, 0.9 kB (checked in by ben, 3 years ago)

Improved styling for XSL / working in Internet Explorer

  • Property svn:eol-style set to native
Line 
1 <?php
2
3     // Parse search query and send it to the search functions
4         
5         global $search_exclusions;
6         
7         if (isset($parameter)) {
8             
9             $tag = $parameter;
10             $displaytag = htmlentities($parameter);
11             $sitename = sitename;
12             $url = url . "tag/" . $displaytag;
13             $rssurl = url . "rsstag/" . $displaytag;
14             $siteurl = url;
15             
16             $searchdesc = sprintf(gettext("Items tagged with \"%s\" from %s"),$displaytag,$sitename);
17             
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>
25
26 END;
27             foreach($data['search:tagtypes'] as $tagtype) {
28                 
29                 if (!isset($search_exclusions) || !in_array($tagtype,$search_exclusions)) {
30                     $run_result .= run("search:display_results:rss", array($tagtype,$tag));
31                 }
32                 
33             }
34             
35             $run_result .= <<< END
36     </channel>
37 </rss>
38 END;
39             
40             
41         }
42
43 ?>
Note: See TracBrowser for help on using the browser.