Elgg  Version 5.1
Variables
time.php File Reference

Go to the source code of this file.

Variables

 $entity = elgg_extract('entity', $vars)
 Displays information the time of the post. More...
 
if(!$entity instanceof ElggEntity$time = elgg_extract('time', $vars)
 
 $time_updated = null
 
if(!isset($time)) if(!$time) $content = elgg_view_friendly_time($time, $time_updated)
 
 $time_href = elgg_extract('time_href', $vars)
 
 if (!empty($time_href))
 

Variable Documentation

if (!isset($time)) if (!$time) $content = elgg_view_friendly_time($time, $time_updated)

Definition at line 31 of file time.php.

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

Displays information the time of the post.

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

Definition at line 15 of file time.php.

if (!$entity instanceof ElggEntity) $time = elgg_extract('time', $vars)

Definition at line 20 of file time.php.

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

Definition at line 32 of file time.php.

$time_updated = null
Examples:
/root/Elgg/engine/lib/views.php.

Definition at line 21 of file time.php.

if(!empty($time_href))

Definition at line 33 of file time.php.