bludit/bl-themes/docs/php/page.php

29 lines
604 B
PHP
Raw Normal View History

2017-07-11 23:53:53 +02:00
<h1 class="subhead">
<?php
echo $pagesByParent[PARENT][$page->parentKey()]->title();
echo ' -> ';
echo $page->title();
?>
</h1>
2017-07-09 22:59:54 +02:00
<section class="page">
2017-07-11 23:53:53 +02:00
<?php Theme::plugins('pageBegin') ?>
2017-07-09 22:59:54 +02:00
2017-07-11 23:53:53 +02:00
<header class="page-header">
<h2 class="page-title">
<a href="<?php echo $Page->permalink() ?>"><?php echo $Page->title() ?></a>
</h2>
</header>
2017-07-09 22:59:54 +02:00
2017-07-11 23:53:53 +02:00
<div class="page-content">
<?php echo $Page->content() ?>
</div>
2017-07-09 22:59:54 +02:00
2017-07-11 23:53:53 +02:00
<div class="edit-this-page">
<?php
echo '<a href="'.$GITHUB_BASE_URL.$Page->key().'/'.FILENAME.'">Edit this page</a>';
?>
</div>
2017-07-09 22:59:54 +02:00
2017-07-11 23:53:53 +02:00
<?php Theme::plugins('pageEnd') ?>
2017-07-09 22:59:54 +02:00
</section>