Elgg  Version 1.11
default.php
Go to the documentation of this file.
1 <?php
9 $title = $vars['entity']->title;
10 if (empty($title)) {
11  $title = strip_tags($vars['entity']->description);
13 }
14 
15 $permalink = htmlspecialchars($vars['entity']->getURL(), ENT_NOQUOTES, 'UTF-8');
16 $pubdate = date('r', $vars['entity']->getTimeCreated());
17 
19 
20 $creator = elgg_view('page/components/creator', $vars);
21 $georss = elgg_view('page/components/georss', $vars);
22 $extension = elgg_view('extensions/item', $vars);
23 
24 $item = <<<__HTML
25 <item>
26  <guid isPermaLink="true">$permalink</guid>
27  <pubDate>$pubdate</pubDate>
28  <link>$permalink</link>
29  <title><![CDATA[$title]]></title>
30  <description><![CDATA[$description]]></description>
32 </item>
33 
34 __HTML;
35 
36 echo $item;
ui datepicker title
Definition: admin.php:616
$description
Definition: default.php:18
$permalink
Definition: default.php:9
$creator
Definition: default.php:21
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
elgg_get_excerpt($text, $num_chars=250)
Returns an excerpt.
Definition: output.php:72
$title
Definition: default.php:32
$pubdate
Definition: default.php:10
$extension
Definition: default.php:23