Cover image on themes
This commit is contained in:
parent
741e9c3935
commit
e07e241527
|
@ -29,6 +29,13 @@
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</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 -->
|
<!-- Post's content, the first part if has pagebrake -->
|
||||||
<?php echo $Post->content(false) ?>
|
<?php echo $Post->content(false) ?>
|
||||||
|
|
||||||
|
|
|
@ -11,10 +11,17 @@
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
<!-- Cover Image -->
|
||||||
|
<?php
|
||||||
|
if($Page->coverImage()) {
|
||||||
|
echo '<a href="'.$Page->permalink().'" class="image featured"><img src="'.$Page->coverImage().'" alt="Cover Image"></a>';
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
<!-- Post's content, the first part if has pagebrake -->
|
<!-- Post's content, the first part if has pagebrake -->
|
||||||
<?php echo $Page->content() ?>
|
<?php echo $Page->content() ?>
|
||||||
|
|
||||||
<!-- Plugins Page End -->
|
<!-- Plugins Page End -->
|
||||||
<?php Theme::plugins('pageEnd') ?>
|
<?php Theme::plugins('pageEnd') ?>
|
||||||
|
|
||||||
</article>
|
</article>
|
|
@ -27,6 +27,13 @@
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</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 -->
|
<!-- Post's content, the first part if has pagebrake -->
|
||||||
<?php echo $Post->content() ?>
|
<?php echo $Post->content() ?>
|
||||||
|
|
||||||
|
@ -48,4 +55,4 @@
|
||||||
<!-- Plugins Post End -->
|
<!-- Plugins Post End -->
|
||||||
<?php Theme::plugins('postEnd') ?>
|
<?php Theme::plugins('postEnd') ?>
|
||||||
|
|
||||||
</article>
|
</article>
|
|
@ -37,6 +37,11 @@
|
||||||
<!-- Post content -->
|
<!-- Post content -->
|
||||||
<div class="post-content">
|
<div class="post-content">
|
||||||
<?php
|
<?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
|
// Call the method with FALSE to get the first part of the post
|
||||||
echo $Post->content(false)
|
echo $Post->content(false)
|
||||||
?>
|
?>
|
||||||
|
@ -56,4 +61,4 @@
|
||||||
<!-- Paginator for posts -->
|
<!-- Paginator for posts -->
|
||||||
<?php
|
<?php
|
||||||
echo Paginator::html();
|
echo Paginator::html();
|
||||||
?>
|
?>
|
|
@ -17,10 +17,18 @@
|
||||||
|
|
||||||
<!-- page content -->
|
<!-- page content -->
|
||||||
<div class="page-content">
|
<div class="page-content">
|
||||||
<?php echo $Page->content() ?>
|
<?php
|
||||||
|
// Cover Image
|
||||||
|
if($Page->coverImage()) {
|
||||||
|
echo '<img class="cover-image" src="'.$Page->coverImage().'" alt="Cover Image">';
|
||||||
|
}
|
||||||
|
|
||||||
|
// Page content
|
||||||
|
echo $Page->content()
|
||||||
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Plugins Page Begin -->
|
<!-- Plugins Page Begin -->
|
||||||
<?php Theme::plugins('pageEnd') ?>
|
<?php Theme::plugins('pageEnd') ?>
|
||||||
|
|
||||||
</section>
|
</section>
|
|
@ -34,7 +34,15 @@
|
||||||
|
|
||||||
<!-- Post content -->
|
<!-- Post content -->
|
||||||
<div class="post-content">
|
<div class="post-content">
|
||||||
<?php echo $Post->content() ?>
|
<?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)
|
||||||
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Plugins Post End -->
|
<!-- Plugins Post End -->
|
||||||
|
|
Loading…
Reference in New Issue