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

@ -5,3 +5,7 @@
<div id="page-content"> <div id="page-content">
<?php echo $page->content(); ?> <?php echo $page->content(); ?>
</div> </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>