Elgg  Version 6.2
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 \ElggRelationshipelseif (is_callable([ $item, 'getType']))
 

Variable Documentation

◆ $content

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

View a item to use in a list.

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

Definition at line 10 of file item.php.

◆ $item

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

Definition at line 11 of file item.php.

◆ $li_attrs

$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.

◆ elseif

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