aboutsummaryrefslogtreecommitdiff
path: root/mod/thewire/views/rss/search/object/thewire/entity.php
blob: 3d4a17b78383cada6ed987aad7b7e20c48a88e80 (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
/**
 * Elgg thewire.
 * Search entity view for RSS feeds.
 *
 * @package ElggTheWire
 */

if (!array_key_exists('entity', $vars)) {
	return FALSE;
}

$owner = $vars['entity']->getOwnerEntity();
if ($owner) {
	$title = sprintf(elgg_echo('thewire:by'), $owner->name);
}
$description = $vars['entity']->getVolatileData('search_matched_description');

?>

<item>
	<guid isPermaLink='false'><?php echo $vars['entity']->getGUID(); ?></guid>
	<pubDate><?php echo date("r", $vars['entity']->time_created) ?></pubDate>
	<link><?php echo htmlspecialchars($vars['entity']->getURL()); ?></link>
	<title><![CDATA[<?php echo $title; ?>]]></title>
	<description><![CDATA[<?php	echo $description; ?>]]></description>
</item>