Elgg
Version 6.0
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
river
elements
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
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
$item
Layout of a river item.
Definition:
layout.php:8
elgg_view
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
Definition:
views.php:156
$vars
$vars
Definition:
theme.php:5
ElggRiverItem
Definition:
ElggRiverItem.php:18
Generated on Sat Sep 7 2024 00:00:23 for Elgg by
1.8.11