Elgg  Version 6.1
Variables
item.php File Reference

Go to the source code of this file.

Variables

 $content = (string) 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($item instanceof\ElggRelationship) elseif (is_callable([$item, 'getType']))
 

Variable Documentation

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

View a item to use in a list.

$vars['item'] ElggEntity, ElggAnnotation, ElggRiverItem or ElggRelationship 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')
$vars
Definition: theme.php:5
elgg_extract_class(array $array, array|string $existing=[], string $extract_key= 'class')
Extract class names from an array, optionally merging into a preexisting set.
Definition: elgglib.php:279

Definition at line 13 of file item.php.

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