Elgg  Version 3.0
layout.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 echo elgg_view('page/components/image_block', [
14  'image' => elgg_view('river/elements/image', $vars),
15  'body' => elgg_view('river/elements/body', $vars),
16  'class' => 'elgg-river-item',
17 ]);
$item
Layout of a river item.
Definition: layout.php:8
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