aboutsummaryrefslogtreecommitdiff
path: root/mod/thewire/views/default/river/object
diff options
context:
space:
mode:
Diffstat (limited to 'mod/thewire/views/default/river/object')
-rw-r--r--mod/thewire/views/default/river/object/thewire/create.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/mod/thewire/views/default/river/object/thewire/create.php b/mod/thewire/views/default/river/object/thewire/create.php
new file mode 100644
index 000000000..9984e99e7
--- /dev/null
+++ b/mod/thewire/views/default/river/object/thewire/create.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();
+
+ $string = "<a href=\"{$performed_by->getURL()}\">{$performed_by->name}:</a> ";
+ $desc .= $object->description;
+ $desc = preg_replace('/\@([A-Za-z0-9\_\.\-]*)/i','@<a href="' . $vars['url'] . 'pg/thewire/$1">$1</a>',$desc);
+ $string .= parse_urls($desc);
+
+ $string .= " <span class=\"river_item_time\"><a href=\"{$vars['url']}mod/thewire/add.php?wire_username={$object->getOwnerEntity()->username}\" class=\"reply\">" . elgg_echo('thewire:reply') . "</a></span>";
+?>
+
+<?php
+ echo $string;
+?> \ No newline at end of file