Elgg
Version 6.1
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
page
components
column
item.php
Go to the documentation of this file.
1
<?php
10
$item
=
elgg_extract
(
'item'
,
$vars
);
11
if
(!
$item
instanceof \
ElggEntity
) {
12
return
;
13
}
14
15
if
(
elgg_extract
(
'type'
,
$vars
)) {
16
// recognized type
17
echo
elgg_view_list_item
(
$item
, (array)
elgg_extract
(
'item_vars'
,
$vars
));
18
}
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:256
elgg_view_list_item
elgg_view_list_item($item, array $vars=[])
View an item in a list.
Definition:
views.php:1232
$item
$item
A single element of a menu.
Definition:
item.php:9
$vars
$vars
Definition:
theme.php:5
ElggEntity
Definition:
ElggEntity.php:52
Generated on Wed Dec 4 2024 00:00:23 for Elgg by
1.8.11