aboutsummaryrefslogtreecommitdiff
path: root/mod/blog/views
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-17 12:23:35 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-17 12:23:35 +0000
commit152a6ae4f00f6e0407d9a7ba04ae0000a818c554 (patch)
tree313404e4f91a1328d8ebcbc9d9b8e41ecb968d53 /mod/blog/views
parent31867d1a44f87c775014c9f9c0b8fd546d7c4ba9 (diff)
downloadelgg-152a6ae4f00f6e0407d9a7ba04ae0000a818c554.tar.gz
elgg-152a6ae4f00f6e0407d9a7ba04ae0000a818c554.tar.bz2
supporting putting content in groups in for river views and added file river code
git-svn-id: http://code.elgg.org/elgg/trunk@7658 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/blog/views')
-rw-r--r--mod/blog/views/default/river/object/blog/create.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/mod/blog/views/default/river/object/blog/create.php b/mod/blog/views/default/river/object/blog/create.php
index 9dc0ffdac..bd2405d42 100644
--- a/mod/blog/views/default/river/object/blog/create.php
+++ b/mod/blog/views/default/river/object/blog/create.php
@@ -13,10 +13,20 @@ $params = array(
);
$link = elgg_view('output/url', $params);
+$group_string = '';
+$container = $object->getContainerEntity();
+if ($container instanceof ElggGroup) {
+ $params = array(
+ 'href' => $container->getURL(),
+ 'text' => $container->name,
+ );
+ $group_link = elgg_view('output/url', $params);
+ $group_string = elgg_echo('river:ingroup', array($group_link));
+}
echo elgg_echo('blog:river:create');
-echo " $link";
+echo " $link $group_string";
if ($excerpt) {
echo '<div class="elgg-river-content">';