39 'text' =>
elgg_echo(
'generic_comments:add'),
40 'href' =>
"#elgg-form-comment-save-{$comment->guid}",
41 'data-load-comment' =>
$comment->guid,
42 'class' => [
'elgg-subtext',
'elgg-toggle-comment'],
52 'show_summary' =>
true,
53 'tag_name' =>
'article',
60 if (!empty(
elgg()->thread_preloader->getChildren(
$comment->guid))) {
61 $params[
'class'][] =
'with-children';
64 if (
$comment->isCreatedByContentOwner()) {
65 $params[
'class'][] =
'elgg-comment-by-owner';
68 'icon_name' =>
'user-edit',
69 'content' =>
elgg_echo(
'generic_comment:by_owner'),
$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($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_import_esm(string $name)
Helper functions for external files like css/js.
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_extract_class(array $array, array|string $existing=[], string $extract_key= 'class')
Extract class names from an array, optionally merging into a preexisting set.
elgg_view_entity_url(\ElggEntity $entity, array $options=[])
Helper function for outputting a link to an entity.