aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/views/default/river/group/create.php
blob: aa9fef47a7e036a0642724932a0f310939ed400e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php

	$performed_by = get_entity($vars['item']->subject_guid); // $statement->getSubject();
	$object = get_entity($vars['item']->object_guid);
	$objecturl = $object->getURL();
	
	$url = "<a href=\"{$performed_by->getURL()}\">{$performed_by->name}</a>";
	$string = sprintf(elgg_echo("groups:river:create"), $url) . " ";
	$string .= " <a href=\"" . $object->getURL() . "\">" . $object->name . "</a>";
	$string .= " <span class='entity_subtext'>". elgg_view_friendly_time($object->time_created);
	if (isloggedin()) {
		$string .= elgg_view('likes/forms/link', array('entity' => $object));
	}
	$string .= "</span>";

echo $string;