2016-01-08 00:43:09 +01:00
|
|
|
<div class="subhead"><?php echo $Language->get('Post') ?></div>
|
2015-03-08 18:02:59 +01:00
|
|
|
|
|
|
|
<section class="post">
|
2015-07-07 06:24:51 +02:00
|
|
|
|
2015-08-07 04:13:55 +02:00
|
|
|
<!-- Plugins Post Begin -->
|
|
|
|
<?php Theme::plugins('postBegin') ?>
|
|
|
|
|
2015-07-07 06:24:51 +02:00
|
|
|
<!-- Post header -->
|
2015-03-08 18:02:59 +01:00
|
|
|
<header class="post-header">
|
2015-07-07 06:24:51 +02:00
|
|
|
|
|
|
|
<!-- Post title -->
|
2016-01-08 00:43:09 +01:00
|
|
|
<h1 class="post-title">
|
2015-07-07 06:24:51 +02:00
|
|
|
<a href="<?php echo $Post->permalink() ?>"><?php echo $Post->title() ?></a>
|
2016-01-08 00:43:09 +01:00
|
|
|
</h1>
|
2015-03-08 18:02:59 +01:00
|
|
|
|
2015-07-07 06:24:51 +02:00
|
|
|
<!-- Post date and author -->
|
|
|
|
<div class="post-meta">
|
2015-08-26 05:42:32 +02:00
|
|
|
<span class="date"><?php echo $Post->date() ?></span>
|
2015-07-07 06:24:51 +02:00
|
|
|
<span class="author">
|
|
|
|
<?php
|
|
|
|
echo $Language->get('Posted By').' ';
|
|
|
|
|
2016-01-17 01:45:16 +01:00
|
|
|
if( Text::isNotEmpty($Post->user('firstName')) || Text::isNotEmpty($Post->user('lastName')) ) {
|
|
|
|
echo $Post->user('firstName').' '.$Post->user('lastName');
|
2015-07-07 06:24:51 +02:00
|
|
|
}
|
|
|
|
else {
|
2016-01-17 01:45:16 +01:00
|
|
|
echo $Post->user('username');
|
2015-07-07 06:24:51 +02:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
|
2015-03-08 18:02:59 +01:00
|
|
|
</header>
|
|
|
|
|
2015-07-07 06:24:51 +02:00
|
|
|
<!-- Post content -->
|
|
|
|
<div class="post-content">
|
2016-01-21 03:42:15 +01:00
|
|
|
<?php
|
|
|
|
// Cover Image
|
|
|
|
if($Post->coverImage()) {
|
|
|
|
echo '<img class="cover-image" src="'.$Post->coverImage().'" alt="Cover Image">';
|
|
|
|
}
|
|
|
|
|
|
|
|
// Call the method with FALSE to get the first part of the post
|
|
|
|
echo $Post->content(false)
|
|
|
|
?>
|
2015-03-08 18:02:59 +01:00
|
|
|
</div>
|
2015-07-07 06:24:51 +02:00
|
|
|
|
2015-08-07 04:13:55 +02:00
|
|
|
<!-- Plugins Post End -->
|
|
|
|
<?php Theme::plugins('postEnd') ?>
|
|
|
|
|
2015-11-28 15:47:03 +01:00
|
|
|
</section>
|