Elgg  Version 5.1
comments_block.php File Reference

Go to the source code of this file.


 Display the latest related comments. More...
 $owner_guid = elgg_extract('owner_guid', $vars)
 $container_guid = elgg_extract('container_guid', $vars)
 $subtypes = elgg_extract('subtypes', $vars)
if($owner_guid) if($container_guid) if($subtypes) $title = elgg_echo('generic_comments:latest')
 $comments = elgg_get_entities($options)
if($comments) else

Variable Documentation

$comments = elgg_get_entities($options)

Definition at line 55 of file comments_block.php.

Definition at line 24 of file comments_block.php.

Initial value:
= [
'type' => 'object'

Display the latest related comments.

Generally used in a sidebar.

$vars['subtypes'] Object subtype string or array of subtypes $vars['owner_guid'] The owner of the content being commented on $vars['container_guid'] The container of the content being commented on $vars['limit'] The number of comments to display

Definition at line 13 of file comments_block.php.

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

Definition at line 23 of file comments_block.php.

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

Definition at line 25 of file comments_block.php.

if ($owner_guid) if ($container_guid) if ($subtypes) $title = elgg_echo('generic_comments:latest')

Definition at line 54 of file comments_block.php.

if ($comments) else
Initial value:
$body = '<p>' . elgg_echo('generic_comment:none') . '</p>'
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Definition: languages.php:17
Definition: useradd.php:55

Definition at line 63 of file comments_block.php.