Call Hooks for post & page template
This commit is contained in:
parent
faf9bff6bf
commit
96ce07dfbb
5
themes/pure/php/page.php
Normal file → Executable file
5
themes/pure/php/page.php
Normal file → Executable file
@ -12,9 +12,12 @@
|
||||
|
||||
</header>
|
||||
|
||||
<?php Theme::plugins('beforePagesLoad'); // Plugin ?>
|
||||
|
||||
<!-- page content -->
|
||||
<div class="page-content">
|
||||
<?php echo $Page->content() ?>
|
||||
</div>
|
||||
|
||||
|
||||
<?php Theme::plugins('afterPagesLoad'); // Plugin ?>
|
||||
</section>
|
4
themes/pure/php/post.php
Normal file → Executable file
4
themes/pure/php/post.php
Normal file → Executable file
@ -10,6 +10,8 @@
|
||||
<a href="<?php echo $Post->permalink() ?>"><?php echo $Post->title() ?></a>
|
||||
</h2>
|
||||
|
||||
<?php Theme::plugins('beforePostsLoad'); // Plugin ?>
|
||||
|
||||
<!-- Post date and author -->
|
||||
<div class="post-meta">
|
||||
<span class="date"><?php echo $Post->dateCreated() ?></span>
|
||||
@ -34,4 +36,6 @@
|
||||
<?php echo $Post->content() ?>
|
||||
</div>
|
||||
|
||||
<?php Theme::plugins('afterPostsLoad'); // Plugin ?>
|
||||
|
||||
</section>
|
Loading…
x
Reference in New Issue
Block a user