31 'tag_name' =>
'article',
37 if (
$comment->isCreatedByContentOwner()) {
38 $params[
'class'][] =
'elgg-comment-by-owner';
41 'icon_name' =>
'user-edit',
42 'content' =>
elgg_echo(
'generic_comment:by_owner'),
55 'text' =>
elgg_echo(
'generic_comments:add'),
56 'href' =>
"#elgg-form-comment-save-{$comment->guid}",
57 'data-load-comment' =>
$comment->guid,
58 'class' => [
'elgg-subtext',
'elgg-toggle-comment'],
64 if (!empty(
elgg()->thread_preloader->getChildren(
$comment->guid))) {
65 $params[
'class'][] =
'with-children';
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_import_esm(string $name)
Helper functions for external files like css/js.
elgg_extract_class(array $array, array|string $existing=[], string $extract_key= 'class')
Extract class names from an array, optionally merging into a preexisting set.