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 = elgg_extract('count', $vars)

Definition at line 23 of file list.php.

$index = 0

Definition at line 49 of file list.php.

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

Definition at line 42 of file list.php.

$items = $vars['items']

Definition at line 22 of file list.php.

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 = ''

Definition at line 50 of file list.php.

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

Definition at line 47 of file list.php.

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

Definition at line 26 of file list.php.

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

Definition at line 24 of file list.php.

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

Definition at line 25 of file list.php.

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

Definition at line 89 of file list.php.