bludit/bl-themes/blogx/php/page.php

24 lines
617 B
PHP
Raw Normal View History

2018-02-01 22:43:46 +01:00
<!-- Post -->
<div class="card my-5 border-0">
2018-02-01 00:34:16 +01:00
2018-02-01 22:43:46 +01:00
<!-- Cover image -->
<?php if ($page->coverImage()): ?>
<img class="card-img-top mb-3 rounded-0" alt="Cover Image" src="<?php echo $page->coverImage(); ?>"/>
<?php endif ?>
2018-02-01 00:34:16 +01:00
2018-02-01 22:43:46 +01:00
<div class="card-body p-0">
<!-- Title -->
<a class="text-dark" href="<?php echo $page->permalink(); ?>">
<h2><?php echo $page->title(); ?></h2>
</a>
2018-02-01 00:34:16 +01:00
2018-02-01 22:56:55 +01:00
<?php if (!$page->isStatic()): ?>
2018-02-01 22:43:46 +01:00
<!-- Creation date -->
<h6 class="card-subtitle mb-2 text-muted"><?php echo $page->date(); ?></h6>
2018-02-01 22:55:26 +01:00
<?php endif ?>
2018-02-01 00:34:16 +01:00
2018-02-01 22:43:46 +01:00
<!-- Full content -->
<?php echo $page->content(); ?>
2018-02-01 00:34:16 +01:00
</div>
2018-02-01 22:43:46 +01:00
</div>