Elgg  Version master
default.php
Go to the documentation of this file.
1 <?php
6 $entity = elgg_extract('entity', $vars);
7 if (!$entity instanceof ElggUser) {
8  return;
9 }
10 
11 $permalink = htmlspecialchars($entity->getURL(), ENT_NOQUOTES, 'UTF-8');
12 $pubdate = date('r', $entity->getTimeCreated());
13 $title = htmlspecialchars($entity->getDisplayName() ?? '', ENT_NOQUOTES, 'UTF-8');
14 
15 $description = $entity->getProfileData('description');
16 if (!empty($description)) {
18 }
19 
20 $georss = elgg_view('page/components/georss', $vars);
21 $extension = elgg_view('extensions/item', $vars);
22 
23 ?>
24 <item>
25  <guid isPermaLink="true"><?= $permalink; ?></guid>
26  <pubDate><?= $pubdate; ?></pubDate>
27  <link><?= $permalink; ?></link>
28  <title><![CDATA[<?= $title; ?>]]></title>
29  <description><![CDATA[<?= $description; ?>]]></description>
30  <?= $georss; ?>
31  <?= $extension; ?>
32 </item>
$description
Definition: default.php:20
if(!$entity instanceof ElggEntity) $permalink
Definition: default.php:11
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:254
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
Definition: views.php:156
$site description
Definition: settings.php:14
if(!array_key_exists($size, $icon_sizes)) $vars['size']
Definition: default.php:25
$georss
Definition: default.php:24
$entity
Generic icon view.
Definition: default.php:13
elgg_autop(string $string)
Create paragraphs from text with line spacing.
Definition: output.php:67
$title
Definition: default.php:29
$pubdate
Definition: default.php:12
$extension
Definition: default.php:25