Call Hooks for post & page template

This commit is contained in:
Frédéric K 2015-07-24 10:04:37 +02:00
parent faf9bff6bf
commit 96ce07dfbb
2 changed files with 8 additions and 1 deletions

5
themes/pure/php/page.php Normal file → Executable file
View File

@ -12,9 +12,12 @@
</header> </header>
<?php Theme::plugins('beforePagesLoad'); // Plugin ?>
<!-- page content --> <!-- page content -->
<div class="page-content"> <div class="page-content">
<?php echo $Page->content() ?> <?php echo $Page->content() ?>
</div> </div>
<?php Theme::plugins('afterPagesLoad'); // Plugin ?>
</section> </section>

4
themes/pure/php/post.php Normal file → Executable file
View File

@ -10,6 +10,8 @@
<a href="<?php echo $Post->permalink() ?>"><?php echo $Post->title() ?></a> <a href="<?php echo $Post->permalink() ?>"><?php echo $Post->title() ?></a>
</h2> </h2>
<?php Theme::plugins('beforePostsLoad'); // Plugin ?>
<!-- Post date and author --> <!-- Post date and author -->
<div class="post-meta"> <div class="post-meta">
<span class="date"><?php echo $Post->dateCreated() ?></span> <span class="date"><?php echo $Post->dateCreated() ?></span>
@ -34,4 +36,6 @@
<?php echo $Post->content() ?> <?php echo $Post->content() ?>
</div> </div>
<?php Theme::plugins('afterPostsLoad'); // Plugin ?>
</section> </section>