aboutsummaryrefslogtreecommitdiff
path: root/mod/blog/everyone.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-04 15:10:54 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-04 15:10:54 +0000
commite1fb557e88e9cb763f9f1006b80bf52756d62386 (patch)
tree6ed0b78fa51113a881c1d8ef35a297f4102c21be /mod/blog/everyone.php
parent8d001be6fbce495a541175e5c430813fc5f7ccbb (diff)
downloadelgg-e1fb557e88e9cb763f9f1006b80bf52756d62386.tar.gz
elgg-e1fb557e88e9cb763f9f1006b80bf52756d62386.tar.bz2
Introducing the all blog posts page.
git-svn-id: https://code.elgg.org/elgg/trunk@404 36083f99-b078-4883-b0ff-0f9b5a30f544
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