Elgg  Version 3.0
Variables
item.php File Reference

Go to the source code of this file.

Variables

 $content = elgg_extract('content', $vars)
 View a item to use in a list. More...
 
 $item = elgg_extract('item', $vars)
 
 $li_attrs
 
if($item instanceof\ElggEntity) elseif($item instanceof\ElggRiverItem) elseif (is_callable([$item, 'getType']))
 

Variable Documentation

$content = elgg_extract('content', $vars)

View a item to use in a list.

$vars['item'] ElggEntity, ElggAnnotation or ElggRiverItem object $vars['item_class'] Additional CSS class for the elements $vars['content'] Content of the list item

Definition at line 10 of file item.php.

$item = elgg_extract('item', $vars)

Definition at line 11 of file item.php.

$li_attrs
Initial value:
= [
'class' => elgg_extract_class($vars, 'elgg-item', 'item_class')
elgg_extract_class(array $array, $existing=[], $extract_key= 'class')
Extract class names from an array, optionally merging into a preexisting set.
Definition: elgglib.php:1153
$vars['type']
Definition: save.php:11

Definition at line 13 of file item.php.

if ($item instanceof\ElggEntity) elseif ($item instanceof\ElggRiverItem) elseif(is_callable([$item, 'getType']))