mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-04 12:17:42 +02:00
Blog Plugin as a part of Monstra CMS
This commit is contained in:
5
plugins/blog/views/frontend/index.view.php
Normal file
5
plugins/blog/views/frontend/index.view.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<?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 } ?>
|
Reference in New Issue
Block a user