Elgg  Version 5.1
Variables
comments.php File Reference

Go to the source code of this file.

Variables

 $entity = elgg_extract('entity', $vars)
 
if(!$entity instanceof\ElggEntity) $show_add_form = elgg_extract('show_add_form', $vars, true)
 
 $latest_first = elgg_comments_are_latest_first($entity)
 
 $limit = elgg_extract('limit', $vars, get_input('limit'))
 
if(!isset($limit)) $module_vars
 
if(!isset($limit)) $options
 
if(!isset($limit)) $module_title = ''
 
if(!$entity instanceof\ElggComment) else
 
 $options ['limit'] = false
 
 $options ['offset'] = 0
 
 $options ['pagination'] = false
 
 $options ['count'] = count($comments)
 
 $module_vars ['header'] = false
 
 $comments_list = elgg_view_entity_list($comments, $options)
 
 $content = $comments_list
 
 $form = ''
 
 $show_login_form = $comments_list ? $show_add_form : false
 
 if (empty($content))
 

Variable Documentation

$comments_list = elgg_view_entity_list($comments, $options)

Definition at line 96 of file comments.php.

$content = $comments_list

Definition at line 98 of file comments.php.

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

Definition at line 16 of file comments.php.

$form = ''

Definition at line 99 of file comments.php.

$latest_first = elgg_comments_are_latest_first($entity)

Definition at line 23 of file comments.php.

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

Definition at line 25 of file comments.php.

if (!isset($limit)) $module_title = ''

Definition at line 50 of file comments.php.

if (!isset($limit)) $module_vars
Initial value:
= [
'id' => elgg_extract('id', $vars, 'comments')
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:254
$vars
Definition: theme.php:5

Definition at line 30 of file comments.php.

$module_vars['header'] = false

Definition at line 93 of file comments.php.

if (!isset($limit)) $options
Initial value:
= [
'type' => 'object'

Definition at line 35 of file comments.php.

$options['limit'] = false

Definition at line 88 of file comments.php.

$options['offset'] = 0

Definition at line 89 of file comments.php.

$options['pagination'] = false

Definition at line 90 of file comments.php.

$options['count'] = count($comments)

Definition at line 91 of file comments.php.

if (!$entity instanceof\ElggEntity) $show_add_form = elgg_extract('show_add_form', $vars, true)

Definition at line 21 of file comments.php.

$show_login_form = $comments_list ? $show_add_form : false

Definition at line 101 of file comments.php.

if ($show_add_form &&$entity->canComment()) elseif (!elgg_is_logged_in()&&$show_login_form) if ($latest_first||$entity instanceof\ElggComment) else
Initial value:
{
$comments = elgg()->thread_preloader->getChildren($entity->guid)
$comments
$entity
Definition: comments.php:16
var elgg
Definition: elgglib.js:4

Definition at line 84 of file comments.php.

if(empty($content))

Definition at line 166 of file comments.php.