Elgg  Version 1.9
Variables
gallery.php File Reference

Go to the source code of this file.

Variables

 $items = $vars['items']
 Gallery view. More...
 
 $offset = $vars['offset']
 
 $limit = $vars['limit']
 
 $count = $vars['count']
 
 $pagination = elgg_extract('pagination', $vars, true)
 
 $offset_key = elgg_extract('offset_key', $vars, 'offset')
 
 $position = elgg_extract('position', $vars, 'after')
 
 $no_results = elgg_extract('no_results', $vars, '')
 
 $gallery_class = 'elgg-gallery'
 
if(isset($vars['gallery_class'])) $item_class = 'elgg-item'
 
if(isset($vars['item_class'])) $nav = ''
 
if($pagination && $count) if ( $position=='before'||$position=='both')
 

Variable Documentation

◆ $count

$count = $vars['count']

Definition at line 22 of file gallery.php.

◆ $gallery_class

$gallery_class = 'elgg-gallery'

Definition at line 39 of file gallery.php.

◆ $item_class

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

Definition at line 44 of file gallery.php.

◆ $items

$items = $vars['items']

Gallery view.

Implemented as an unorder list

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

@uses $vars['item_class'] Additional CSS class for the elements @uses $vars['no_results'] Message to display if no results

Definition at line 19 of file gallery.php.

◆ $limit

$limit = $vars['limit']

Definition at line 21 of file gallery.php.

◆ $nav

if (isset( $vars[ 'item_class'])) $nav = ''

Definition at line 49 of file gallery.php.

◆ $no_results

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

Definition at line 26 of file gallery.php.

◆ $offset

$offset = $vars['offset']

Definition at line 20 of file gallery.php.

◆ $offset_key

$offset_key = elgg_extract('offset_key', $vars, 'offset')

Definition at line 24 of file gallery.php.

◆ $pagination

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

Definition at line 23 of file gallery.php.

◆ $position

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

Definition at line 25 of file gallery.php.

◆ if

if ( $pagination &&$count) if($position=='before'|| $position=='both') (   $position = = 'before' || $position == 'both')

Definition at line 59 of file gallery.php.