bludit/bl-themes/docsx/index.php

77 lines
1.7 KiB
PHP
Raw Normal View History

2018-02-06 23:11:50 +01:00
<!DOCTYPE html>
<html>
<head>
<?php include(THEME_DIR_PHP.'head.php'); ?>
</head>
<body>
<!-- Load Bludit Plugins: Site Body Begin -->
<?php Theme::plugins('siteBodyBegin'); ?>
2018-02-17 11:32:05 +01:00
<!-- Navbar -->
<div>
<?php include(THEME_DIR_PHP.'navbar.php'); ?>
</div>
2018-02-06 23:11:50 +01:00
<!-- Content -->
2018-02-17 11:32:05 +01:00
<div class="container">
2018-02-06 23:11:50 +01:00
<div class="row">
2018-02-17 11:32:05 +01:00
<div class="col-md-3 side-nav-col">
2018-02-06 23:11:50 +01:00
<?php
2018-02-17 11:32:05 +01:00
include(THEME_DIR_PHP.'sidebar.php');
2018-02-06 23:11:50 +01:00
?>
2018-02-17 11:32:05 +01:00
</div>
<div class="col-md-9 doc-content">
<div class="main">
<?php
if ($WHERE_AM_I == 'page') {
include(THEME_DIR_PHP.'page.php');
} else {
include(THEME_DIR_PHP.'home.php');
}
?>
</div>
</div>
2018-02-06 23:11:50 +01:00
</div>
2018-02-17 11:32:05 +01:00
<footer>
2018-02-18 20:30:46 +01:00
<p class="m-0 text-right text-black text-uppercase"><?php echo $site->footer(); ?><span class="ml-3 text-warning">Powered by <a target="_blank" class="text-warning" href="https://www.bludit.com">Bludit</a></span></p>
2018-02-17 11:32:05 +01:00
</footer>
</div>
2018-02-06 23:11:50 +01:00
<!-- Javascript -->
<?php
echo Theme::js('js/jquery.min.js');
echo Theme::js('js/bootstrap.min.js');
2018-02-17 11:32:05 +01:00
echo Theme::js('js/highlight.min.js');
2018-02-06 23:11:50 +01:00
?>
2018-02-17 11:32:05 +01:00
<!-- Init Highlight -->
<script>
hljs.initHighlighting();
</script>
<!-- TOC generator -->
<script>
$(document).ready(function() {
2018-02-18 20:30:46 +01:00
var enableToc = false;
2018-02-17 11:32:05 +01:00
if ($('#page-content > h2').length > 1) {
$('#page-content > h2').each(function() {
2018-02-18 20:30:46 +01:00
if ($(this).attr('id')) {
enableToc = true;
$('#toc-content').append('<li><a href="#' + $(this).attr('id') + '">' + $(this).text() + '</a></li>');
}
2018-02-17 11:32:05 +01:00
});
2018-02-18 20:30:46 +01:00
}
if (enableToc) {
$('#toc').show();
2018-02-17 11:32:05 +01:00
}
});
</script>
2018-02-06 23:11:50 +01:00
<!-- Load Bludit Plugins: Site Body End -->
<?php Theme::plugins('siteBodyEnd'); ?>
</body>
</html>