Elgg  Version 6.2
Variables
time.php File Reference

Go to the source code of this file.

Variables

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

Variable Documentation

◆ $content

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

Definition at line 25 of file time.php.

◆ $relationship

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

Displays information about the time of the relationship.

@uses $vars['relationship'] ElggRelationship @uses $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 @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.

◆ $time

if (! $relationship instanceof ElggRelationship) $time = elgg_extract('time', $vars, $relationship->time_created)

Definition at line 20 of file time.php.

◆ $time_href

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

Definition at line 27 of file time.php.

◆ if

if(!empty($time_href)) ( empty $time_href)

Definition at line 28 of file time.php.