aboutsummaryrefslogtreecommitdiff
path: root/mod/blog/everyone.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/blog/everyone.php')
-rw-r--r--mod/blog/everyone.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/mod/blog/everyone.php b/mod/blog/everyone.php
new file mode 100644
index 000000000..a97733c46
--- /dev/null
+++ b/mod/blog/everyone.php
@@ -0,0 +1,23 @@
+<?php
+
+ /**
+ * Elgg view all blog posts from all users page
+ *
+ * @package ElggBlog
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Ben Werdmuller <ben@curverider.co.uk>
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.com/
+ */
+
+ // Load Elgg engine
+ require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php");
+
+ if ($blogposts = get_entities('object','blog')) {
+ $body = elgg_view("blog/view",array('posts' => $blogposts));
+ }
+
+ // Display page
+ page_draw(elgg_echo('blog:everyone'),$body);
+
+?> \ No newline at end of file