Elgg  Version 3.0
Variables
default.php File Reference

Go to the source code of this file.

Variables

 $annotation = elgg_extract('annotation', $vars)
 Elgg default annotation view. More...
 
 $owner = get_entity($annotation->owner_guid)
 
if(!$owner) $icon = elgg_view_entity_icon($owner, 'tiny')
 
 $owner_link
 
 $menu
 
 $text = elgg_view("output/longtext", ["value" => $annotation->value])
 
 $friendlytime = elgg_view_friendly_time($annotation->time_created)
 
 $body
 

Variable Documentation

$annotation = elgg_extract('annotation', $vars)

Elgg default annotation view.

Note
To add or remove from the annotation menu, register handlers for the menu:annotation hook.

$vars['annotation']

Examples:
/root/Elgg/engine/lib/views.php.

Definition at line 10 of file default.php.

$body
Initial value:
= <<<HTML
<div class="mbn">
<span class="elgg-subtext">
</span>
</div>
HTML
$friendlytime
Definition: default.php:30
$owner_link
Definition: default.php:17
$text
Definition: default.php:28
$menu
Definition: default.php:23

Definition at line 32 of file default.php.

$friendlytime = elgg_view_friendly_time($annotation->time_created)

Definition at line 30 of file default.php.

if (!$owner) $icon = elgg_view_entity_icon($owner, 'tiny')

Definition at line 16 of file default.php.

$menu
Initial value:
= elgg_view_menu('annotation', [
'annotation' => $annotation,
'class' => 'elgg-menu-hz float-alt',
])
$annotation
Elgg default annotation view.
Definition: default.php:10
elgg_view_menu($menu, array $vars=[])
Render a menu.
Definition: views.php:755

Definition at line 23 of file default.php.

$owner = get_entity($annotation->owner_guid)

Definition at line 12 of file default.php.

$owner_link
Initial value:
= elgg_view('output/url', [
'text' => $owner->getDisplayName(),
'href' => $owner->getURL(),
'is_trusted' => true,
])
$owner
Definition: default.php:12
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
Definition: views.php:246

Definition at line 17 of file default.php.

$text = elgg_view("output/longtext", ["value" => $annotation->value])
Examples:
/root/Elgg/engine/lib/output.php.

Definition at line 28 of file default.php.