Elgg
Version 1.9
|
Go to the source code of this file.
Variables | |
$full_view = elgg_extract('full_view', $vars, true) | |
Elgg comment view. More... | |
$comment = $vars['entity'] | |
$entity = get_entity($comment->container_guid) | |
$commenter = get_user($comment->owner_guid) | |
if(!$entity||!$commenter) | $friendlytime = elgg_view_friendly_time($comment->time_created) |
$commenter_icon = elgg_view_entity_icon($commenter, 'tiny') | |
$commenter_link = "<a href=\"{$commenter->getURL()}\">$commenter->name</a>" | |
$entity_title = $entity->title ? $entity->title : elgg_echo('untitled') | |
$entity_link = "<a href=\"{$entity->getURL()}\">$entity_title</a>" | |
if($full_view) | else |
$posted = elgg_echo('generic_comment:on', array($commenter_link, $entity_link)) | |
$body | |
$body |
Definition at line 63 of file comment.php.
$comment = $vars['entity'] |
Definition at line 11 of file comment.php.
$commenter = get_user($comment->owner_guid) |
Definition at line 14 of file comment.php.
$commenter_icon = elgg_view_entity_icon($commenter, 'tiny') |
Definition at line 21 of file comment.php.
$commenter_link = "<a href=\"{$commenter->getURL()}\">$commenter->name</a>" |
Definition at line 22 of file comment.php.
$entity = get_entity($comment->container_guid) |
Definition at line 13 of file comment.php.
$entity_link = "<a href=\"{$entity->getURL()}\">$entity_title</a>" |
Definition at line 25 of file comment.php.
Definition at line 24 of file comment.php.
if (!$entity||!$commenter) $friendlytime = elgg_view_friendly_time($comment->time_created) |
Definition at line 19 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
Definition at line 9 of file comment.php.
$posted = elgg_echo('generic_comment:on', array($commenter_link, $entity_link)) |
Definition at line 61 of file comment.php.
if ($full_view) else |
Definition at line 57 of file comment.php.