aboutsummaryrefslogtreecommitdiff
path: root/mod/pages/pages/pages/world.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-19 15:19:02 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-19 15:19:02 +0000
commitb5e2dbf292cddd56a8171b4c9cf1d9cf0fb45582 (patch)
treeaa7f916fba9fc61869f71492266d537f34e4d736 /mod/pages/pages/pages/world.php
parente603c947a5ae2869164b11fee827d4c595e4a3f8 (diff)
downloadelgg-b5e2dbf292cddd56a8171b4c9cf1d9cf0fb45582.tar.gz
elgg-b5e2dbf292cddd56a8171b4c9cf1d9cf0fb45582.tar.bz2
Fixes #3158 updated search and pages plugins for page handler scripts
git-svn-id: http://code.elgg.org/elgg/trunk@8769 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/pages/pages/pages/world.php')
-rw-r--r--mod/pages/pages/pages/world.php28
1 files changed, 28 insertions, 0 deletions
diff --git a/mod/pages/pages/pages/world.php b/mod/pages/pages/pages/world.php
new file mode 100644
index 000000000..668100ad2
--- /dev/null
+++ b/mod/pages/pages/pages/world.php
@@ -0,0 +1,28 @@
+<?php
+/**
+ * List all pages
+ *
+ * @package ElggPages
+ */
+
+$title = elgg_echo('pages:all');
+
+elgg_pop_breadcrumb();
+elgg_push_breadcrumb(elgg_echo('pages'));
+
+$content = elgg_list_entities(array(
+ 'types' => 'object',
+ 'subtypes' => 'page_top',
+ 'full_view' => false,
+));
+if (!$content) {
+ $content = '<p>' . elgg_echo('pages:none') . '</p>';
+}
+
+$body = elgg_view_layout('content', array(
+ 'filter_context' => 'all',
+ 'content' => $content,
+ 'title' => $title,
+));
+
+echo elgg_view_page($title, $body);