1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-08-02 19:27:52 +02:00

Blog Plugin as a part of Monstra CMS #188

This commit is contained in:
Awilum
2014-01-20 00:25:00 +02:00
parent 390c5a1354
commit ad5c1802d0
2 changed files with 54 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
<?php Chunk::get('header'); ?>
<div class="container">
<div class="row">
<div class="col-xs-12">
<?php Action::run('theme_pre_content'); ?>
</div>
</div>
<div class="row">
<div class="col-xs-12">
<h3 class="monstra-blog-title"><?php echo Blog::getPostTitle(); ?></h3>
<small class="monstra-blog-date"><?php echo Blog::getPostDate('d M Y'); ?> / <?php echo Blog::getPostAuthor(); ?></small>
<div class="monstra-blog-post">
<?php echo Blog::getPost(); ?>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-12">
<?php Action::run('theme_post_content'); ?>
</div>
</div>
<hr>
<?php Chunk::get('footer'); ?>

View File

@@ -0,0 +1,27 @@
<?php Chunk::get('header'); ?>
<div class="container">
<div class="row">
<div class="col-xs-12">
<?php Action::run('theme_pre_content'); ?>
</div>
</div>
<div class="row">
<div class="col-xs-8">
<?php echo Blog::getPosts(3); ?>
</div>
<div class="col-xs-4">
<h3>Tags</h3>
<?php echo Blog::getTags(); ?>
</div>
</div>
<div class="row">
<div class="col-xs-12">
<?php Action::run('theme_post_content'); ?>
</div>
</div>
<hr>
<?php Chunk::get('footer'); ?>