Elgg
Version 2.3
|
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 |
$count = elgg_extract('count', $vars) |
if (isset( $vars[ 'item_class'])) $nav = ($pagination) ? elgg_view('navigation/pagination', $vars) : '' |
$no_results = elgg_extract('no_results', $vars, '') |
$pagination = elgg_extract('pagination', $vars, true) |
$position = elgg_extract('position', $vars, 'after') |
foreach ( $items as $item) if ( $position=='before'||$position=='both') if (empty( $list_items) &&$no_results) else |