Elgg  Version 6.2
Variables
time.php File Reference

Go to the source code of this file.

Variables

 $annotation = elgg_extract('annotation', $vars)
 Displays information the time of the annotation. More...
 
if(! $annotation instanceof ElggAnnotation$time = elgg_extract('time', $vars, $annotation->time_created)
 
if(empty($time)) $content = elgg_view_friendly_time($time)
 
 $time_href = elgg_extract('time_href', $vars)
 
if(!empty($time_href)) if (elgg_is_empty( $content))
 

Variable Documentation

◆ $annotation

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

Displays information the time of the annotation.

@uses $vars['annotation'] The annotation to show the time for @uses $vars['time'] Time of the annotation If not set, will display the time when the annotation was created (time_created attribute) If set to false, time string will not be rendered @uses $vars['time_icon'] Icon name to be used with time info Set to false to not render an icon Default is 'history' @uses $vars['time_href'] Optional link to set on the friendly time text

Definition at line 15 of file time.php.

◆ $content

if (empty( $time)) $content = elgg_view_friendly_time($time)

Definition at line 25 of file time.php.

◆ $time

if (! $annotation instanceof ElggAnnotation) $time = elgg_extract('time', $vars, $annotation->time_created)

◆ $time_href

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

Definition at line 27 of file time.php.

◆ if

if (!empty( $time_href)) if(elgg_is_empty($content)) ( elgg_is_empty( $content)  )

Definition at line 32 of file time.php.