diff options
Diffstat (limited to 'mod/file/pages/file/world.php')
-rw-r--r-- | mod/file/pages/file/world.php | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/mod/file/pages/file/world.php b/mod/file/pages/file/world.php new file mode 100644 index 000000000..a55dcb452 --- /dev/null +++ b/mod/file/pages/file/world.php @@ -0,0 +1,32 @@ +<?php +/** + * All files + * + * @package ElggFile + */ + +elgg_push_breadcrumb(elgg_echo('file')); + +$limit = get_input("limit", 10); + +$title = elgg_echo('file:all'); + +elgg_push_context('search'); +$content = elgg_list_entities(array( + 'types' => 'object', + 'subtypes' => 'file', + 'limit' => $limit, + 'full_view' => FALSE +)); +elgg_pop_context(); + +$sidebar = file_get_type_cloud(); + +$body = elgg_view_layout('content', array( + 'filter_context' => 'all', + 'content' => $content, + 'title' => $title, + 'sidebar' => $sidebar, +)); + +echo elgg_view_page($title, $body); |