From 1ea82fe304b680eb9f84c24b98eb718ca9d59316 Mon Sep 17 00:00:00 2001 From: ben Date: Thu, 3 Apr 2008 09:18:04 +0000 Subject: Blog update: you can post and view blog entries. git-svn-id: https://code.elgg.org/elgg/trunk@381 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/blog/views/default/blog/view.php | 26 +++++++++++++++++++++ mod/blog/views/default/object/blog.php | 41 ++++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 mod/blog/views/default/blog/view.php create mode 100644 mod/blog/views/default/object/blog.php (limited to 'mod/blog/views/default') diff --git a/mod/blog/views/default/blog/view.php b/mod/blog/views/default/blog/view.php new file mode 100644 index 000000000..24d0bde7d --- /dev/null +++ b/mod/blog/views/default/blog/view.php @@ -0,0 +1,26 @@ + + * @copyright Curverider Ltd 2008 + * @link http://elgg.com/ + * + * @uses $vars['posts'] An array of posts to view + */ + + // If there are any posts to view, view them + if (is_array($vars['posts']) && sizeof($vars['posts']) > 0) { + + foreach($vars['posts'] as $post) { + + echo elgg_view_entity($post); + + } + + } + +?> \ No newline at end of file diff --git a/mod/blog/views/default/object/blog.php b/mod/blog/views/default/object/blog.php new file mode 100644 index 000000000..74b3b7c01 --- /dev/null +++ b/mod/blog/views/default/object/blog.php @@ -0,0 +1,41 @@ + + * @copyright Curverider Ltd 2008 + * @link http://elgg.com/ + * + * @uses $vars['entity'] Optionally, the blog post to view + */ + + if (isset($vars['entity'])) { + +?> + +
+

title; ?>

+

+ description); + + ?> +

+

+ tags; + + ?> +

+
+ + \ No newline at end of file -- cgit v1.2.3