Elgg  Version 1.9
Variables
comments.php File Reference

Go to the source code of this file.

Variables

 $show_add_form = elgg_extract('show_add_form', $vars, true)
 List comments with optional add form. More...
 
 $full_view = elgg_extract('full_view', $vars, true)
 
 $limit = elgg_extract('limit', $vars, get_input('limit', 25))
 
 $id = ''
 
if(isset($vars['id'])) $class = 'elgg-comments'
 
 $html
 
if($htmlif ($show_add_form)
 

Variable Documentation

if (isset($vars['id'])) $class = 'elgg-comments'

Definition at line 24 of file comments.php.

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

Definition at line 16 of file comments.php.

$html
Initial value:
'type' => 'object',
'subtype' => 'comment',
'container_guid' => $vars['entity']->getGUID(),
'reverse_order_by' => true,
'full_view' => true,
'limit' => $limit,
))
$limit
Definition: comments.php:17
elgg_list_entities(array $options=array(), $getter= 'elgg_get_entities', $viewer= 'elgg_view_entity_list')
Returns a string of rendered entities.
Definition: entities.php:1343
if(file_exists($welcome)) $vars
Definition: upgrade.php:93

Definition at line 34 of file comments.php.

$id = ''

Definition at line 19 of file comments.php.

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

Definition at line 17 of file comments.php.

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

List comments with optional add form.

$vars['entity'] ElggEntity $vars['show_add_form'] Display add form or not $vars['id'] Optional id for the div $vars['class'] Optional additional class for the div $vars['limit'] Optional limit value (default is 25)

Definition at line 15 of file comments.php.

if ($html) if($show_add_form)

Definition at line 48 of file comments.php.