diff options
Diffstat (limited to 'mod/blog')
-rw-r--r-- | mod/blog/views/default/river/object/blog/create.php | 12 |
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">'; |