Elgg  Version master
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 ]);
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
$item
Layout of a river item.
Definition: layout.php:8
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
Definition: views.php:156
$vars
Definition: theme.php:5