aboutsummaryrefslogtreecommitdiff
path: root/mod/blog/views/default/object/blog.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-03 09:18:04 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-03 09:18:04 +0000
commit1ea82fe304b680eb9f84c24b98eb718ca9d59316 (patch)
treeafce9a9a4a3ccd7518780361775bc3b485a92a8a /mod/blog/views/default/object/blog.php
parent5aa0d6b051f0cd644016a3a2eeb3fc6ada3dae0b (diff)
downloadelgg-1ea82fe304b680eb9f84c24b98eb718ca9d59316.tar.gz
elgg-1ea82fe304b680eb9f84c24b98eb718ca9d59316.tar.bz2
Blog update: you can post and view blog entries.
git-svn-id: https://code.elgg.org/elgg/trunk@381 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/blog/views/default/object/blog.php')
-rw-r--r--mod/blog/views/default/object/blog.php41
1 files changed, 41 insertions, 0 deletions
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 @@
+<?php
+
+ /**
+ * Elgg blog individual post view
+ *
+ * @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/
+ *
+ * @uses $vars['entity'] Optionally, the blog post to view
+ */
+
+ if (isset($vars['entity'])) {
+
+?>
+
+ <div class="blog-post">
+ <h3><?php echo $vars['entity']->title; ?></h3>
+ <p>
+ <?php
+
+ echo nl2br($vars['entity']->description);
+
+ ?>
+ </p>
+ <p>
+ <?php
+
+ echo $vars['entity']->tags;
+
+ ?>
+ </p>
+ </div>
+
+<?php
+
+ }
+
+?> \ No newline at end of file