diff options
Diffstat (limited to 'views/default/object/file/river.php')
-rw-r--r-- | views/default/object/file/river.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/views/default/object/file/river.php b/views/default/object/file/river.php new file mode 100644 index 000000000..e767567d5 --- /dev/null +++ b/views/default/object/file/river.php @@ -0,0 +1,17 @@ +<?php + +$file = $vars['entity']; + +$title = elgg_view('output/url', array( + 'text' => $file->title, + 'href' => $file->getURL(), + 'encode_text' => true, +)); + +$description = elgg_get_excerpt($file->description, 350); + +echo elgg_view('river/elements/attachment', array( + 'image' => elgg_view_entity_icon($file, 'small'), + 'title' => $title, + 'description' => $description, +));
\ No newline at end of file |