Merge pull request #664 from anaggh/master

Add pageBegin and pageEnd hooks to blogx
This commit is contained in:
Edi 2018-03-11 00:15:58 +01:00 committed by GitHub
commit 2df30d12b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 1 deletions

View File

@ -3,6 +3,9 @@
<!-- Post -->
<div class="card my-5 border-0">
<!-- Load Bludit Plugins: Page Begin -->
<?php Theme::plugins('pageBegin'); ?>
<!-- Cover image -->
<?php if ($page->coverImage()): ?>
<img class="card-img-top mb-3 rounded-0" alt="Cover Image" src="<?php echo $page->coverImage(); ?>"/>
@ -24,8 +27,12 @@
<?php if ($page->readMore()): ?>
<a href="<?php echo $page->permalink(); ?>">Read more</a>
<?php endif ?>
</div>
<!-- Load Bludit Plugins: Page End -->
<?php Theme::plugins('pageEnd'); ?>
</div>
<hr>

View File

@ -1,6 +1,9 @@
<!-- Post -->
<div class="card my-5 border-0">
<!-- Load Bludit Plugins: Page Begin -->
<?php Theme::plugins('pageBegin'); ?>
<!-- Cover image -->
<?php if ($page->coverImage()): ?>
<img class="card-img-top mb-3 rounded-0" alt="Cover Image" src="<?php echo $page->coverImage(); ?>"/>
@ -19,6 +22,10 @@
<!-- Full content -->
<?php echo $page->content(); ?>
</div>
</div>
<!-- Load Bludit Plugins: Page End -->
<?php Theme::plugins('pageEnd'); ?>
</div>