41 lines
923 B
PHP
41 lines
923 B
PHP
<article class="post">
|
|
|
|
<!-- Plugins Post Begin -->
|
|
<?php Theme::plugins('postBegin') ?>
|
|
|
|
<header>
|
|
<div class="title">
|
|
<h2><a href="<?php echo $Post->permalink() ?>"><?php echo $Post->title() ?></a></h2>
|
|
<p><?php echo $Post->description() ?></p>
|
|
</div>
|
|
</header>
|
|
|
|
<!-- Cover Image -->
|
|
<?php
|
|
if($Post->coverImage()) {
|
|
echo '<a href="'.$Post->permalink().'" class="image featured"><img src="'.$Post->coverImage().'" alt="Cover Image"></a>';
|
|
}
|
|
?>
|
|
|
|
<!-- Post's content, the first part if has pagebrake -->
|
|
<?php echo $Post->content() ?>
|
|
|
|
<!-- Post's footer -->
|
|
<footer>
|
|
|
|
<!-- Post's tags -->
|
|
<ul class="stats">
|
|
<?php
|
|
$tags = $Post->tags(true);
|
|
|
|
foreach($tags as $tagKey=>$tagName) {
|
|
echo '<li><a href="'.HTML_PATH_ROOT.$Url->filters('tag').'/'.$tagKey.'">'.$tagName.'</a></li>';
|
|
}
|
|
?>
|
|
</ul>
|
|
</footer>
|
|
|
|
<!-- Plugins Post End -->
|
|
<?php Theme::plugins('postEnd') ?>
|
|
|
|
</article>
|