aboutsummaryrefslogtreecommitdiff
path: root/views/default/river
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/river')
-rw-r--r--views/default/river/object/image/tag.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/views/default/river/object/image/tag.php b/views/default/river/object/image/tag.php
new file mode 100644
index 000000000..cfe01e444
--- /dev/null
+++ b/views/default/river/object/image/tag.php
@@ -0,0 +1,20 @@
+<?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";
+ }
+
+
+
+ $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;
+
+?> \ No newline at end of file