Elgg
Version 5.1
|
Go to the source code of this file.
Variables | |
$full_view = elgg_extract('full_view', $vars, true) | |
Elgg comment view. More... | |
$comment = elgg_extract('entity', $vars) | |
if(!$comment instanceof\ElggComment) | $entity = $comment->getContainerEntity() |
$commenter = $comment->getOwnerEntity() | |
if(!$entity||!$commenter) if($comment->canEdit()) if($full_view) | else |
$friendlytime = elgg_view_friendly_time($comment->time_created) | |
$commenter_link = elgg_view_entity_url($commenter) | |
$entity_link | |
$excerpt = elgg_get_excerpt((string) $comment->description, 80) | |
$posted = elgg_echo('generic_comment:on', [$commenter_link, $entity_link]) | |
$body | |
$body |
Definition at line 88 of file comment.php.
$comment = elgg_extract('entity', $vars) |
Definition at line 12 of file comment.php.
$commenter = $comment->getOwnerEntity() |
Definition at line 18 of file comment.php.
$commenter_link = elgg_view_entity_url($commenter) |
Definition at line 78 of file comment.php.
if (!$comment instanceof\ElggComment) $entity = $comment->getContainerEntity() |
Definition at line 17 of file comment.php.
$entity_link |
Definition at line 80 of file comment.php.
$excerpt = elgg_get_excerpt((string) $comment->description, 80) |
Definition at line 85 of file comment.php.
$friendlytime = elgg_view_friendly_time($comment->time_created) |
Definition at line 76 of file comment.php.
$full_view = elgg_extract('full_view', $vars, true) |
Elgg comment view.
$vars['entity'] ElggComment $vars['full_view'] Display full view or brief view $vars['show_excerpt'] Should the body text be an excerpt
Definition at line 10 of file comment.php.
$posted = elgg_echo('generic_comment:on', [$commenter_link, $entity_link]) |
Definition at line 86 of file comment.php.
Definition at line 72 of file comment.php.