aboutsummaryrefslogtreecommitdiff
path: root/mod/tasks/pages/tasks/world.php
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-03-17 12:00:58 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-03-17 12:00:58 -0300
commit00af8cc93d689f61be48390713a6a070b7ed761f (patch)
treec1b954f4f9061629dbf868c3036f0400a5803b4a /mod/tasks/pages/tasks/world.php
parent815bb3bf5a5e8da9a7962a4a532c3129f09d5735 (diff)
parent228d3697bcd0218605be2e28131574cc85293a2e (diff)
downloadelgg-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.php41
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);