Skip to content

Commit

Permalink
added initial post layout
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Sep 12, 2016
1 parent b5cd3be commit 6e843bf
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/views/layouts/post.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php

?>
<?php $this->beginContent('//layouts/main') ?>

<h1><?= $this->title ?></h1>

<?php if (!empty($this->params['date'])) : ?>
<h3><?= Yii::$app->formatter->asDate($this->params['date']) ?></h3>
<?php endif ?>

<?= $content ?>

<br/><br/>
<?php if (!empty($this->params['relatedPosts'])) : ?>
<h3>Related posts:</h3>
<?php endif ?>

<?php $this->endContent() ?>

0 comments on commit 6e843bf

Please sign in to comment.