1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-07-31 02:10:37 +02:00

Blog Plugin as a part of Monstra CMS #188

This commit is contained in:
Awilum
2014-01-09 20:30:20 +02:00
parent df745f597c
commit 6721c7829f

View File

@@ -1,5 +1,7 @@
<?php foreach($posts as $post) { ?>
<a href="<?php echo Option::get('siteurl'); ?>/<?php echo Blog::$parent_page_name; ?>/<?php echo $post['slug'] ?>"><?php echo $post['title']; ?></a> <small class="monstra-blog-date"><?php echo Date::format($post['date'], 'd M Y'); ?></small><br>
<?php echo $post['content']; ?>
<br><br>
<?php } ?>
<h3 class="monstra-blog-title"><a href="<?php echo Option::get('siteurl'); ?>/<?php echo Blog::$parent_page_name; ?>/<?php echo $post['slug'] ?>"><?php echo $post['title']; ?></a></h3>
<small class="monstra-blog-date"><?php echo Date::format($post['date'], 'd M Y'); ?></small>
<div class="monstra-blog-post">
<?php echo $post['content']; ?>
</div>
<?php } ?>