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.
get_user($guid)
Get a user object from a GUID.
elgg_echo($message_key, array $args=[], $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_view_entity_icon(\ElggEntity $entity, $size= 'medium', $vars=[])
View the icon of an entity.
elgg_view_image_block($image, $body, $vars=[])
Wrapper function for the image block display pattern.
elgg_format_element($tag_name, array $attributes=[], $text= '', array $options=[])
Format an HTML element.
elgg_require_js($name)
Request that Elgg load an AMD module onto the page.
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
elgg_view_friendly_time($time, $time_updated=null)
Displays a UNIX timestamp in a friendly way.
elgg_get_excerpt($text, $num_chars=250)
Returns an excerpt.
elgg echo
Translates a string.
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
getURL()
Gets the URL for this entity.
elgg_view_entity_url(\ElggEntity $entity, array $options=[])
Helper function for outputting a link to an entity.
get_entity($guid)
Loads and returns an entity object from a guid.