Elgg  Version 2.3
Namespaces | Variables
list.php File Reference

Go to the source code of this file.

Namespaces

 Elgg
 Save menu items.
 

Variables

 $items = $vars['items']
 
 $count = elgg_extract('count', $vars)
 
 $pagination = elgg_extract('pagination', $vars, true)
 
 $position = elgg_extract('position', $vars, 'after')
 
 $no_results = elgg_extract('no_results', $vars, '')
 
if(! $items && $no_results) if(!is_array($items)||count($items)==0) $list_classes = ['elgg-list']
 
if(isset($vars['list_class'])) $item_classes = ['elgg-item']
 
if(isset($vars['item_class'])) $nav = ($pagination) ? elgg_view('navigation/pagination', $vars) : ''
 
 $index = 0
 
 $list_items = ''
 
foreach($items as $item) if($position=='before'|| $position=='both') if(empty($list_items) && $no_results) else
 

Variable Documentation

◆ $count

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

Definition at line 23 of file list.php.

◆ $index

$index = 0

Definition at line 49 of file list.php.

◆ $item_classes

if (isset( $vars[ 'list_class'])) $item_classes = ['elgg-item']

Definition at line 42 of file list.php.

◆ $items

$items = $vars['items']

Definition at line 22 of file list.php.

◆ $list_classes

if (! $items &&$no_results) if (!is_array( $items)||count( $items)==0) $list_classes = ['elgg-list']

Definition at line 37 of file list.php.

◆ $list_items

$list_items = ''

Definition at line 50 of file list.php.

◆ $nav

if (isset( $vars[ 'item_class'])) $nav = ($pagination) ? elgg_view('navigation/pagination', $vars) : ''

Definition at line 47 of file list.php.

◆ $no_results

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

Definition at line 26 of file list.php.

◆ $pagination

$pagination = elgg_extract('pagination', $vars, true)

Definition at line 24 of file list.php.

◆ $position

$position = elgg_extract('position', $vars, 'after')

Definition at line 25 of file list.php.

◆ else

foreach ( $items as $item) if ( $position=='before'||$position=='both') if (empty( $list_items) &&$no_results) else
Initial value:
{
echo elgg_format_element('ul', ['class' => $list_classes], $list_items)
if(! $items && $no_results) if(!is_array($items)||count($items)==0) $list_classes
Definition: list.php:37
$list_items
Definition: list.php:50
elgg_format_element($tag_name, array $attributes=array(), $text='', array $options=array())
Format an HTML element.
Definition: output.php:208

Definition at line 89 of file list.php.