diff options
author | Evan Winslow <evan@elgg.org> | 2011-06-08 02:31:30 -0700 |
---|---|---|
committer | Evan Winslow <evan@elgg.org> | 2011-06-08 02:31:30 -0700 |
commit | 1fd8bd6e296e2b1fc960fde1dd204b6c4e3e8aec (patch) | |
tree | 36da4522942dd749e82e9f33c0213cbedbb3d5f2 /mod/file/views/default | |
parent | 8ddeb1f6e37dc1647e9bee4f3cfe35adcb2ca004 (diff) | |
download | elgg-1fd8bd6e296e2b1fc960fde1dd204b6c4e3e8aec.tar.gz elgg-1fd8bd6e296e2b1fc960fde1dd204b6c4e3e8aec.tar.bz2 |
River revamp for 1.8
Diffstat (limited to 'mod/file/views/default')
-rw-r--r-- | mod/file/views/default/river/object/file/create.php | 30 |
1 files changed, 4 insertions, 26 deletions
diff --git a/mod/file/views/default/river/object/file/create.php b/mod/file/views/default/river/object/file/create.php index 620d1d18c..dad629120 100644 --- a/mod/file/views/default/river/object/file/create.php +++ b/mod/file/views/default/river/object/file/create.php @@ -7,29 +7,7 @@ $object = $vars['item']->getObjectEntity(); $excerpt = strip_tags($object->description); $excerpt = elgg_get_excerpt($excerpt); -$params = array( - 'href' => $object->getURL(), - 'text' => $object->title, -); -$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('file:river:create'); - -echo " $link $group_string"; - -if ($excerpt) { - echo '<div class="elgg-river-content">'; - echo $excerpt; - echo '</div>'; -} +echo elgg_view('river/item', array( + 'item' => $vars['item'], + 'message' => $excerpt, +));
\ No newline at end of file |