Elgg  Version master
Variables
gallery.php File Reference

Go to the source code of this file.

Variables

 $items = elgg_extract('items', $vars)
 Gallery view. More...
 
 $pagination = elgg_extract('pagination', $vars, true)
 
 $position = elgg_extract('position', $vars, 'after')
 
 $list_classes = elgg_extract_class($vars, 'elgg-gallery', 'gallery_class')
 
 $item_classes = elgg_extract_class($vars, 'elgg-item', '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)) else
 
 $limit = elgg_extract('limit', $vars)
 

Variable Documentation

$index = 0

Definition at line 40 of file gallery.php.

$item_classes = elgg_extract_class($vars, 'elgg-item', 'item_class')

Definition at line 36 of file gallery.php.

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

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

Definition at line 19 of file gallery.php.

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

Definition at line 79 of file gallery.php.

$list_classes = elgg_extract_class($vars, 'elgg-gallery', 'gallery_class')

Definition at line 34 of file gallery.php.

$list_items = ''

Definition at line 41 of file gallery.php.

$nav = ($pagination) ? elgg_view('navigation/pagination', $vars) : ''

Definition at line 38 of file gallery.php.

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

Definition at line 20 of file gallery.php.

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

Definition at line 21 of file gallery.php.

foreach ($items as $item) if ($position== 'before'||$position== 'both') if (empty($list_items)) else
Initial value:
{
echo elgg_format_element('ul', ['class' => $list_classes], $list_items)
elgg_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.
Definition: output.php:145
$list_items
Definition: gallery.php:41
$list_classes
Definition: gallery.php:34

Definition at line 69 of file gallery.php.