From e1fb557e88e9cb763f9f1006b80bf52756d62386 Mon Sep 17 00:00:00 2001 From: ben Date: Fri, 4 Apr 2008 15:10:54 +0000 Subject: Introducing the all blog posts page. git-svn-id: https://code.elgg.org/elgg/trunk@404 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/blog/everyone.php | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 mod/blog/everyone.php (limited to 'mod/blog/everyone.php') 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 @@ + + * @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 -- cgit v1.2.3