Elgg
Version master
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
page
components
column
unvalidated_menu.php
Go to the documentation of this file.
1
<?php
10
$item
=
elgg_extract
(
'item'
,
$vars
);
11
if
(!
$item
instanceof \
ElggUser
) {
12
return
;
13
}
14
15
echo
elgg_view_menu
(
'user:unvalidated'
, [
16
'entity'
=>
$item
,
17
'prepare_dropdown'
=>
true
,
18
'class'
=>
'elgg-menu-entity'
,
// for the dropdown elipsis styling
19
]);
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
elgg_view_menu
elgg_view_menu($menu, array $vars=[])
Render a menu.
Definition:
views.php:441
$item
$item
Render an unvalidated menu element.
Definition:
unvalidated_menu.php:10
$vars
$vars
Definition:
theme.php:5
ElggUser
Definition:
ElggUser.php:28
Generated on Sat Dec 21 2024 00:02:54 for Elgg by
1.8.11