Elgg  Version 4.3
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_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:547
elgg echo
Translates a string.
Definition: deprecated.js:530
$vars['head']
Definition: html.php:24
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
Definition: views.php:179