koblog/bl-themes/alternative/php/page.php

47 lines
1.5 KiB
PHP
Raw Normal View History

2018-02-01 00:34:16 +01:00
<section class="page">
<div class="container">
2018-01-27 20:34:26 +01:00
<div class="row">
<div class="col-lg-8 mx-auto">
2018-01-28 23:33:50 +01:00
<!-- Load Bludit Plugins: Page Begin -->
<?php Theme::plugins('pageBegin'); ?>
2018-01-27 20:34:26 +01:00
<!-- Page title -->
2018-03-05 23:46:52 +01:00
<h1 class="title"><?php echo $page->title(); ?></h1>
2023-07-15 15:58:33 +02:00
<?php if (!$page->isStatic() && !$url->notFound() && $themePlugin->showPostInformation()) : ?>
<div class="form-text mb-2">
<!-- Page creation time -->
<span class="pr-3"><i class="bi bi-calendar"></i><?php echo $page->date() ?></span>
<!-- Page reading time -->
<span class="pr-3"><i class="bi bi-clock"></i><?php echo $page->readingTime() . ' ' . $L->get('minutes') . ' ' . $L->g('read') ?></span>
<!-- Page author -->
<span><i class="bi bi-person"></i><?php echo $page->user('nickname') ?></span>
</div>
<?php endif ?>
2019-06-02 20:10:55 +02:00
<!-- Page description -->
2023-07-15 15:58:33 +02:00
<?php if ($page->description()) : ?>
<p class="page-description"><?php echo $page->description(); ?></p>
2018-01-27 20:34:26 +01:00
<?php endif ?>
2018-01-27 20:34:26 +01:00
<!-- Page cover image -->
2023-07-15 15:58:33 +02:00
<?php if ($page->coverImage()) : ?>
<div class="page-cover-image py-6 mb-4" style="background-image: url('<?php echo $page->coverImage(); ?>');">
<div style="height: 300px;"></div>
</div>
2018-01-27 20:34:26 +01:00
<?php endif ?>
2018-01-27 20:34:26 +01:00
<!-- Page content -->
<div class="page-content">
2023-07-15 15:58:33 +02:00
<?php echo $page->content(); ?>
2018-01-27 20:34:26 +01:00
</div>
2018-01-28 23:33:50 +01:00
<!-- Load Bludit Plugins: Page End -->
<?php Theme::plugins('pageEnd'); ?>
2018-01-27 20:34:26 +01:00
</div>
</div>
</div>
2018-03-05 23:46:52 +01:00
</section>