Elgg  Version 1.11
Variables
default.php File Reference

Go to the source code of this file.

Variables

 $annotation = $vars['annotation']
 Elgg default annotation view. More...
 
 $owner = get_entity($annotation->owner_guid)
 
if(!$owner) $icon = elgg_view_entity_icon($owner, 'tiny')
 
 $owner_link = "<a href=\"{$owner->getURL()}\">$owner->name</a>"
 
 $menu
 
 $text = elgg_view("output/longtext", array("value" => $annotation->value))
 
 $friendlytime = elgg_view_friendly_time($annotation->time_created)
 
 $body
 

Variable Documentation

$annotation = $vars['annotation']

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
fieldset div
Definition: admin.php:470
$friendlytime
Definition: default.php:27
$owner_link
Definition: default.php:17
$text
Definition: default.php:25
ui datepicker td span
Definition: admin.php:634
$menu
Definition: default.php:19

Definition at line 29 of file default.php.

$friendlytime = elgg_view_friendly_time($annotation->time_created)

Definition at line 27 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', array(
'annotation' => $annotation,
'sort_by' => 'priority',
'class' => 'elgg-menu-hz float-alt',
))
$annotation
Elgg default annotation view.
Definition: default.php:10
elgg_view_menu($menu_name, array $vars=array())
Render a menu.
Definition: views.php:692
Examples:
/root/Elgg/engine/lib/views.php.

Definition at line 19 of file default.php.

Definition at line 12 of file default.php.

$owner_link = "<a href=\"{$owner->getURL()}\">$owner->name</a>"

Definition at line 17 of file default.php.

$text = elgg_view("output/longtext", array("value" => $annotation->value))