aboutsummaryrefslogtreecommitdiff
path: root/mod/blog/views/default/object
diff options
context:
space:
mode:
Diffstat (limited to 'mod/blog/views/default/object')
-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