Elgg
Version 6.0
|
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 instanceof\ElggEntity||!$commenter instanceof\ElggEntity) if($comment->canEdit()) if($full_view) | else |
$excerpt = elgg_get_excerpt((string) $comment->description, 80) | |
$posted = elgg_echo('generic_comment:on', [elgg_view_entity_url($commenter), elgg_view_entity_url($entity)]) | |
$body = elgg_format_element('span', ['class' => 'elgg-subtext'], "{$posted} ({$friendlytime}): {$excerpt}") | |
$body = elgg_format_element('span', ['class' => 'elgg-subtext'], "{$posted} ({$friendlytime}): {$excerpt}") |
Definition at line 79 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.
if (!$comment instanceof\ElggComment) $entity = $comment->getContainerEntity() |
Definition at line 17 of file comment.php.
$excerpt = elgg_get_excerpt((string) $comment->description, 80) |
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', [elgg_view_entity_url($commenter), elgg_view_entity_url($entity)]) |
Definition at line 77 of file comment.php.
if (!$entity instanceof\ElggEntity||!$commenter instanceof\ElggEntity) if ($comment->canEdit()) if ($full_view) else |
Definition at line 74 of file comment.php.