Docs X theme

This commit is contained in:
Diego Najar 2018-02-18 20:46:48 +01:00
parent 27455f29e0
commit 7183a4cab2
3 changed files with 11 additions and 5 deletions

7
bl-themes/docsx/init.php Normal file
View File

@ -0,0 +1,7 @@
<?php
$GITHUB_BASE_URL = '__GITHUB_BASE_URL__';
if (!$Site->homepage()) {
echo 'This theme need a home page defined, please select one page on <b>Admin panel->Settings->Advanced->Home page</b>';
exit;
}

View File

@ -1,5 +0,0 @@
<?php
?>

View File

@ -4,4 +4,8 @@
</div>
<div id="page-content">
<?php echo $page->content(); ?>
</div>
<div class="text-right mt-5">
<a class="btn btn-primary" href="<?php echo $GITHUB_BASE_URL.$page->key().'/'.FILENAME ?>">Collaborate with us and edit this page</a>
</div>