diff options
author | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-21 17:55:00 +0000 |
---|---|---|
committer | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-21 17:55:00 +0000 |
commit | 37658c5be7fa91fefeb7f49591692b91efc89298 (patch) | |
tree | 8205d4e2964c9faf2ef8f769a0a87e0356ea9d70 /mod/riverdashboard/views/default/river/item/wrapper.php | |
parent | d7d2da2c7c4a6f24b6ef4389e4878d475ade6220 (diff) | |
download | elgg-37658c5be7fa91fefeb7f49591692b91efc89298.tar.gz elgg-37658c5be7fa91fefeb7f49591692b91efc89298.tar.bz2 |
the beginnings of a mechanism to comment on river objects
git-svn-id: http://code.elgg.org/elgg/trunk@5463 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/riverdashboard/views/default/river/item/wrapper.php')
-rw-r--r-- | mod/riverdashboard/views/default/river/item/wrapper.php | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/mod/riverdashboard/views/default/river/item/wrapper.php b/mod/riverdashboard/views/default/river/item/wrapper.php index ab0f7a9a2..0dba70e5c 100644 --- a/mod/riverdashboard/views/default/river/item/wrapper.php +++ b/mod/riverdashboard/views/default/river/item/wrapper.php @@ -105,9 +105,16 @@ else } //display the comment link if($vars['item']->type != 'user'){ - //for now don't display the comment link on bookmarks and wire messages - if($vars['item']->subtype != 'thewire' && $vars['item']->subtype != 'conversations' && $vars['item']->subtype != 'bookmarks' && $vars['item']->subtype != '') - echo "<a class='comment_link' href=\"{$object_url}\">Comment</a>"; + //for now don't display the comment link on wire and conversations for now + if($vars['item']->subtype != 'thewire' && $vars['item']->subtype != 'conversations' && $vars['item']->subtype != '') + //don't display the comment option on group discussions atm + if($vars['item']->subtype == 'groupforumtopic'){ + echo "<a class='comment_link' href=\"{$object_url}\">Visit discussion</a>"; + }else{ + echo "<div class='river_post_comment'>"; + echo elgg_make_river_comment($object); + echo "</div>"; + } } ?> </div>
\ No newline at end of file |