Elgg  Version 3.0
item.php
Go to the documentation of this file.
1 <?php
8 $item = elgg_extract('item', $vars);
9 if (!$item instanceof ElggRiverItem) {
10  return;
11 }
12 
13 $output = elgg_view($item->getView(), $vars);
14 
15 if (empty($output)) {
16  $output = elgg_view($item->getView(), $vars, 'default');
17 }
18 
19 $rss_item = <<<__ITEM
20 <item>
21  $output
22 </item>
23 __ITEM;
24 
if(empty($output)) $rss_item
Definition: item.php:19
if(!$item instanceof ElggRiverItem) $output
Definition: item.php:13
$item
Definition: item.php:12
elgg echo
Translates a string.
Definition: languages.js:43
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:1131
$vars['type']
Definition: save.php:11
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
Definition: views.php:246