aboutsummaryrefslogtreecommitdiff
path: root/views/default/river/object/image/tag.php
blob: 961761c99cb8791f5eb6b28afda6cfb79c3c2537 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php

$image = get_entity($vars['item']->subject_guid);
$person_tagged = get_entity($vars['item']->object_guid);
if ($image->title) {
	$title = $image->title;
} else {
	$title = "untitled";
}

// viewer may not have permission to view image
if (!$image) {
	return;
}


$image_url = "<a href=\"{$image->getURL()}\">{$title}</a>";
$person_url = "<a href=\"{$person_tagged->getURL()}\">{$person_tagged->name}</a>";

$string = $person_url . ' ' . elgg_echo('image:river:tagged') . ' ' . $image_url;

echo $string;