Elgg  Version 1.11
Variables
gallery.php File Reference

Go to the source code of this file.

Variables

 $items = $vars['items']
 Gallery view. More...
 
 $count = elgg_extract('count', $vars)
 
 $pagination = elgg_extract('pagination', $vars, true)
 
 $position = elgg_extract('position', $vars, 'after')
 
 $no_results = elgg_extract('no_results', $vars, '')
 
 $list_classes = ['elgg-gallery']
 
if(isset($vars['gallery_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 = elgg_extract('count', $vars)

Definition at line 21 of file gallery.php.

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

Definition at line 46 of file gallery.php.

$items = $vars['items']

Gallery view.

Implemented as an unorder list

$vars['items'] Array of ElggEntity, ElggAnnotation or ElggRiverItem objects $vars['offset'] Index of the first list item in complete list $vars['limit'] Number of items per page $vars['count'] Number of items in the complete list $vars['pagination'] Show pagination? (default: true) $vars['position'] Position of the pagination: before, after, or both $vars['full_view'] Show the full view of the items (default: false) $vars['gallery_class'] Additional CSS class for the

$vars['item_class'] Additional CSS class for the elements $vars['item_view'] Alternative view to render list items $vars['no_results'] Message to display if no results (string|Closure)

Definition at line 20 of file gallery.php.

$list_classes = ['elgg-gallery']

Definition at line 41 of file gallery.php.

$list_items = ''

Definition at line 53 of file gallery.php.

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

Definition at line 51 of file gallery.php.

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

Definition at line 24 of file gallery.php.

$pagination = elgg_extract('pagination', $vars, true)
Examples:
/root/Elgg/engine/lib/views.php.

Definition at line 22 of file gallery.php.

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

Definition at line 23 of file gallery.php.

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

Definition at line 71 of file gallery.php.