diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-03-17 12:00:58 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-03-17 12:00:58 -0300 |
commit | 00af8cc93d689f61be48390713a6a070b7ed761f (patch) | |
tree | c1b954f4f9061629dbf868c3036f0400a5803b4a /mod/tasks/pages/tasks/world.php | |
parent | 815bb3bf5a5e8da9a7962a4a532c3129f09d5735 (diff) | |
parent | 228d3697bcd0218605be2e28131574cc85293a2e (diff) | |
download | elgg-00af8cc93d689f61be48390713a6a070b7ed761f.tar.gz elgg-00af8cc93d689f61be48390713a6a070b7ed761f.tar.bz2 |
Merge commit '228d3697bcd0218605be2e28131574cc85293a2e' as 'mod/tasks'
Diffstat (limited to 'mod/tasks/pages/tasks/world.php')
-rw-r--r-- | mod/tasks/pages/tasks/world.php | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/mod/tasks/pages/tasks/world.php b/mod/tasks/pages/tasks/world.php new file mode 100644 index 000000000..93dcb2762 --- /dev/null +++ b/mod/tasks/pages/tasks/world.php @@ -0,0 +1,41 @@ +<?php +/** + * List all tasks + * + * @package ElggTasks + */ + +$title = elgg_echo('tasks:all'); + +elgg_pop_breadcrumb(); +elgg_push_breadcrumb(elgg_echo('tasks')); + +$lists = elgg_get_entities_from_metadata(array( + 'type' => 'object', + 'subtype' => 'task', + 'count' => true, + 'metadata_name' => 'list_guid', + 'metadata_value' => 0, +)); + +elgg_register_title_button('tasks', 'add'); + +$content = elgg_list_entities_from_metadata(array( + 'type' => 'object', + 'subtype' => 'task', + 'full_view' => false, + 'metadata_name' => 'list_guid', + 'metadata_value' => 0, +)); +if (!$content) { + $content = '<p>' . elgg_echo('tasks:none') . '</p>'; +} + +$body = elgg_view_layout('content', array( + 'filter_context' => 'all', + 'content' => $content, + 'title' => $title, + 'sidebar' => elgg_view('tasks/sidebar'), +)); + +echo elgg_view_page($title, $body); |