diff options
Diffstat (limited to 'views/default/annotation/annotate.php')
-rw-r--r-- | views/default/annotation/annotate.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/views/default/annotation/annotate.php b/views/default/annotation/annotate.php new file mode 100644 index 000000000..03dd097d8 --- /dev/null +++ b/views/default/annotation/annotate.php @@ -0,0 +1,17 @@ +<?php
+
+ $performed_by = get_entity($vars['item']->subject_guid); // $statement->getSubject();
+ $object = get_entity($vars['item']->object_guid);
+ $url = $object->getURL();
+ $subtype = get_subtype_from_id($object->subtype);
+ $title = $object->title;
+ if (!$title)
+ $title = elgg_echo('untitled');
+
+ $url = "<a href=\"{$performed_by->getURL()}\">{$performed_by->name}</a>";
+ $string = sprintf(elgg_echo("river:posted:generic"),$url) . " ";
+ $string .= elgg_echo("{$subtype}:river:annotate") . " <a href=\"" . $object->getURL() . "\">" . $title . "</a>";
+
+?>
+
+<?php echo $string; ?>
\ No newline at end of file |