Elgg  Version 1.11
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', 0))
 
if(!$limit) $id = ''
 
if(isset($vars['id'])) else
 
 $class = 'elgg-comments'
 
 $html
 
 if ($show_add_form)
 

Variable Documentation

Definition at line 29 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,
'preload_owners' => true,
'distinct' => false,
))
$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:586
if(file_exists($welcome)) $vars
Definition: upgrade.php:93

Definition at line 39 of file comments.php.

if (!$limit) $id = ''

Definition at line 22 of file comments.php.

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

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 (isset($vars['id'])) else
Initial value:
{
$id = "id=\"comments\""
if(!$limit) $id
Definition: comments.php:22

Definition at line 25 of file comments.php.

if($show_add_form)

Definition at line 52 of file comments.php.