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

32 lines
891 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
<!-- Load Bludit Plugins: Page Begin -->
<?php Theme::plugins('pageBegin'); ?>
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(); ?>">
2018-02-24 22:39:39 +01:00
<h1 class="title"><?php echo $page->title(); ?></h1>
2018-02-01 22:43:46 +01:00
</a>
2018-02-01 00:34:16 +01:00
<?php if (!$page->isStatic() && !$url->notFound()): ?>
2018-02-01 22:43:46 +01:00
<!-- Creation date -->
2018-02-24 22:39:39 +01:00
<h6 class="card-subtitle mb-3 text-muted"><?php echo $page->date(); ?> - <?php echo $Language->get('Reading time') . ': ' . $page->readingTime() ?></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
<!-- Load Bludit Plugins: Page End -->
<?php Theme::plugins('pageEnd'); ?>
</div>