|
Revision 2, 0.8 kB
(checked in by sven, 3 years ago)
|
importing elgg-0.1.1a
|
| Line | |
|---|
| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 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 |
|
|---|
| 14 |
$run_result .= <<< END |
|---|
| 15 |
<rss version="0.91"> |
|---|
| 16 |
<channel> |
|---|
| 17 |
<title>$sitename :: $displaytag</title> |
|---|
| 18 |
<link>$url</link> |
|---|
| 19 |
<description>Items tagged with "$displaytag" from $sitename</description> |
|---|
| 20 |
|
|---|
| 21 |
END; |
|---|
| 22 |
foreach($data['search:tagtypes'] as $tagtype) { |
|---|
| 23 |
|
|---|
| 24 |
if (!isset($search_exclusions) || !in_array($tagtype,$search_exclusions)) { |
|---|
| 25 |
$run_result .= run("search:display_results:rss", array($tagtype,$tag)); |
|---|
| 26 |
} |
|---|
| 27 |
|
|---|
| 28 |
} |
|---|
| 29 |
|
|---|
| 30 |
$run_result .= <<< END |
|---|
| 31 |
</channel> |
|---|
| 32 |
</rss> |
|---|
| 33 |
END; |
|---|
| 34 |
|
|---|
| 35 |
|
|---|
| 36 |
} |
|---|
| 37 |
|
|---|
| 38 |
?> |
|---|