diff options
author | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-02-23 08:50:42 +0000 |
---|---|---|
committer | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-02-23 08:50:42 +0000 |
commit | 1249826286c8aeab6af334973a62b1294ad5b173 (patch) | |
tree | 895e3d64fd96a1bad085fbf39434ef1a7554043e /mod/groups/views/default | |
parent | de382a941d30b9f06e8fe440dc40549305badc84 (diff) | |
download | elgg-1249826286c8aeab6af334973a62b1294ad5b173.tar.gz elgg-1249826286c8aeab6af334973a62b1294ad5b173.tar.bz2 |
topic starting included in river
git-svn-id: https://code.elgg.org/elgg/trunk@2881 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/groups/views/default')
-rw-r--r-- | mod/groups/views/default/river/forum/topic/create.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/mod/groups/views/default/river/forum/topic/create.php b/mod/groups/views/default/river/forum/topic/create.php new file mode 100644 index 000000000..2ccd72ef1 --- /dev/null +++ b/mod/groups/views/default/river/forum/topic/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();
+ $forumtopic = $object->guid;
+ $group_guid = $object->container_guid;
+
+ $url = $vars['url'] . "mod/groups/topicposts.php?topic=" . $forumtopic . "&group_guid=" . $group_guid;
+
+ $url_user = "<a href=\"{$performed_by->getURL()}\">{$performed_by->name}</a>";
+ $string = sprintf(elgg_echo("groupforum:river:postedtopic"),$url_user) . ": ";
+ $string .= "<a href=\"" . $url . "\">" . $object->title . "</a>";
+
+?>
+
+<?php echo $string; ?>
\ No newline at end of file |