Elgg  Version 1.11
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) : ''
 
 $list_items = ''
 
foreach($items as $itemif ( $position=='before'||$position=='both')
 

Variable Documentation

◆ $count

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

Definition at line 22 of file list.php.

◆ $item_classes

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

Definition at line 45 of file list.php.

◆ $items

$items = $vars['items']

Definition at line 21 of file list.php.

◆ $list_classes

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

Definition at line 40 of file list.php.

◆ $list_items

$list_items = ''

Definition at line 52 of file list.php.

◆ $nav

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

Definition at line 50 of file list.php.

◆ $no_results

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

Definition at line 25 of file list.php.

◆ $pagination

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

Definition at line 23 of file list.php.

◆ $position

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

Definition at line 24 of file list.php.

◆ if

foreach ( $items as $item) if($position=='before'|| $position=='both') (   $position = = 'before' || $position == 'both')

Definition at line 79 of file list.php.