26 if (
$owner instanceof \ElggEntity) {
30 $owner_text =
$owner->getDisplayName();
33 $parts[] =
elgg_echo(
'byline', [$owner_text]);
38 if (
$show_links && !$container_entity->isDeleted()) {
41 $group_text = $container_entity->getDisplayName();
44 $parts[] =
elgg_echo(
'byline:ingroup', [$group_text]);
54 echo
elgg_view(
'trash/elements/imprint/element', [
56 'class' =>
'elgg-listing-byline',
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
elgg_get_page_owner_guid()
Elgg page owner library.
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.
$entity
Displays information about the author and container of the post.
if(!$annotation instanceof ElggAnnotation) $show_links
elgg_view_entity_url(\ElggEntity $entity, array $options=[])
Helper function for outputting a link to an entity.