Elgg  Version 2.3
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

$annotation = $vars['annotation']

Elgg default annotation view.

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

@uses $vars['annotation']

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

Definition at line 10 of file default.php.

◆ $body

$body =

Definition at line 29 of file default.php.

◆ $friendlytime

$friendlytime = elgg_view_friendly_time($annotation->time_created)

Definition at line 27 of file default.php.

◆ $icon

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

Definition at line 16 of file default.php.

◆ $menu

$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, array $vars=array())
Render a menu.
Definition: views.php:775
Examples
/root/Elgg/engine/lib/views.php.

Definition at line 19 of file default.php.

◆ $owner

Definition at line 12 of file default.php.

◆ $owner_link

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

Definition at line 17 of file default.php.

◆ $text

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