Elgg  Version 1.11
default.php
Go to the documentation of this file.
1 <?php
9 $permalink = htmlspecialchars($vars['entity']->getURL(), ENT_NOQUOTES, 'UTF-8');
10 $pubdate = date('r', $vars['entity']->getTimeCreated());
11 $title = htmlspecialchars($vars['entity']->name, ENT_NOQUOTES, 'UTF-8');
12 
13 if ($vars['entity']->description) {
15 } else {
16  $description = '';
17 }
18 
19 $georss = elgg_view('page/components/georss', $vars);
20 $extension = elgg_view('extensions/item', $vars);
21 
22 $item = <<<__HTML
23 <item>
24  <guid isPermaLink="true">$permalink</guid>
25  <pubDate>$pubdate</pubDate>
26  <link>$permalink</link>
27  <title><![CDATA[$title]]></title>
28  <description><![CDATA[$description]]></description>
30 </item>
31 
32 __HTML;
33 
34 echo $item;
ui datepicker title
Definition: admin.php:616
$description
Definition: default.php:18
$permalink
Definition: default.php:9
if(!$site) if(!($site instanceof ElggSite)) $site description
elgg_autop($string)
Create paragraphs from text with line spacing.
Definition: output.php:56
elgg echo
Translates a string.
Definition: languages.js:43
$item
Definition: default.php:25
if(!array_key_exists($size, $icon_sizes)) $vars['size']
Definition: default.php:23
elgg_view($view, $vars=array(), $bypass=false, $ignored=false, $viewtype= '')
Return a parsed view.
Definition: views.php:354
$georss
Definition: default.php:22
elgg item
Definition: admin.php:437
$site name
$title
Definition: default.php:32
$pubdate
Definition: default.php:10
$extension
Definition: default.php:23