39 'text' =>
elgg_echo(
'generic_comments:add'),
40 'href' =>
"#elgg-form-comment-save-{$comment->guid}",
41 'class' => [
'elgg-toggle',
'elgg-subtext'],
51 'show_summary' =>
true,
58 if (!empty(
elgg()->thread_preloader->getChildren(
$comment->guid))) {
59 $params[
'class'][] =
'with-children';
62 if (
$comment->isCreatedByContentOwner()) {
63 $params[
'class'][] =
'elgg-comment-by-owner';
66 'icon_name' =>
'user-edit',
67 'content' =>
elgg_echo(
'generic_comment:by_owner'),
89 'class' =>
'elgg-subtext',
90 ],
"$posted ($friendlytime): $excerpt");
$params
Saves global plugin settings.
elgg_view_image_block(string $image, string $body, array $vars=[])
Wrapper function for the image block display pattern.
elgg_get_excerpt(string $text, int $num_chars=250)
Returns an excerpt.
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
elgg_extract_class(array $array, $existing=[], $extract_key= 'class')
Extract class names from an array, optionally merging into a preexisting set.
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
elgg_view_entity_icon(\ElggEntity $entity, string $size= 'medium', array $vars=[])
View the icon of an entity.
elgg_view_friendly_time($time, $time_updated=null)
Displays a UNIX timestamp in a friendly way.
elgg_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.
elgg_require_js(string $name)
Request that Elgg load an AMD module onto the page.
getURL()
Gets the URL for this entity.
elgg_view_entity_url(\ElggEntity $entity, array $options=[])
Helper function for outputting a link to an entity.