diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-19 14:58:46 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-19 14:58:46 +0000 |
commit | ee47fbf70fc7f67efde6926237e13fc20a664a72 (patch) | |
tree | f1c5430539b3acf9dfb708595f42f29f57aa17de /mod/file/pages/file/world.php | |
parent | 52f127f23c21675ff7e0d35f1a94741c77e3ed52 (diff) | |
download | elgg-ee47fbf70fc7f67efde6926237e13fc20a664a72.tar.gz elgg-ee47fbf70fc7f67efde6926237e13fc20a664a72.tar.bz2 |
Refs #3158 namespace file plugin's page scripts
git-svn-id: http://code.elgg.org/elgg/trunk@8766 36083f99-b078-4883-b0ff-0f9b5a30f544
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); |