diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-03-15 15:04:14 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-03-15 15:04:14 -0300 |
commit | 66dd3f3f5f14bb0ba6d2c7ef83b5b612d5ee2e30 (patch) | |
tree | 6002cbd9db40b15b4e67a67d5669644f86e4dbde /pages/lightbox/world.php | |
download | elgg-66dd3f3f5f14bb0ba6d2c7ef83b5b612d5ee2e30.tar.gz elgg-66dd3f3f5f14bb0ba6d2c7ef83b5b612d5ee2e30.tar.bz2 |
Squashed 'mod/lightbox/' content from commit a83b8d8
git-subtree-dir: mod/lightbox
git-subtree-split: a83b8d89691c31b4568f47790fb40d0bc962aca5
Diffstat (limited to 'pages/lightbox/world.php')
-rw-r--r-- | pages/lightbox/world.php | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pages/lightbox/world.php b/pages/lightbox/world.php new file mode 100644 index 000000000..6262faa1e --- /dev/null +++ b/pages/lightbox/world.php @@ -0,0 +1,33 @@ +<?php +/** + * All albums + * + * @package ElggLightbox + */ + +elgg_push_breadcrumb(elgg_echo('lightbox')); + +elgg_register_title_button(); + +$limit = get_input("limit", 10); + +$title = elgg_echo('lightbox:all'); + +$content = elgg_list_entities(array( + 'types' => 'object', + 'subtypes' => 'album', + 'limit' => $limit, + 'full_view' => FALSE, +)); +if (!$content) { + $content = elgg_echo('lightbox:none'); +} + +$body = elgg_view_layout('content', array( + 'filter_context' => 'all', + 'content' => $content, + 'title' => $title, + 'sidebar' => elgg_view('lightbox/sidebar'), +)); + +echo elgg_view_page($title, $body); |