2014-02-16 14:12:58 +01:00
|
|
|
<!DOCTYPE html>
|
2014-02-27 18:30:40 +01:00
|
|
|
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
|
|
|
|
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]-->
|
|
|
|
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]-->
|
|
|
|
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
|
2014-02-12 11:42:33 +01:00
|
|
|
<head>
|
|
|
|
<title><?php echo $options['title']; ?></title>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
|
|
<meta name="description" content="<?php echo $options['tagline'];?>" />
|
|
|
|
<meta name="author" content="<?php echo $options['title']; ?>">
|
|
|
|
<?php if ($options['colors']) { ?>
|
2014-02-27 18:30:40 +01:00
|
|
|
<link rel="icon" href="<?php echo $relative_base; ?>img/favicon.png" type="image/x-icon">
|
2014-02-12 11:42:33 +01:00
|
|
|
<?php } else { ?>
|
2014-02-27 18:30:40 +01:00
|
|
|
<link rel="icon" href="<?php echo $relative_base; ?>img/favicon-<?php echo $options['theme'];?>.png" type="image/x-icon">
|
2014-02-12 11:42:33 +01:00
|
|
|
<?php } ?>
|
|
|
|
<!-- Mobile -->
|
|
|
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
|
|
|
|
<!-- Font -->
|
|
|
|
<link href='http://fonts.googleapis.com/css?family=Roboto+Slab:400,700,300,100' rel='stylesheet' type='text/css'>
|
|
|
|
|
|
|
|
<!-- LESS -->
|
|
|
|
<?php if ($options['colors']) { ?>
|
|
|
|
<style type="text/less">
|
2014-02-27 18:30:40 +01:00
|
|
|
@import "<?php echo $relative_base; ?>less/import/daux-base.less";
|
2014-02-12 11:42:33 +01:00
|
|
|
<?php foreach($options['colors'] as $k => $v) { ?>
|
|
|
|
@<?php echo $k;?>: <?php echo $v;?>;
|
|
|
|
<?php } ?>
|
|
|
|
</style>
|
2014-02-27 18:30:40 +01:00
|
|
|
<script src="<?php echo $relative_base; ?>js/less.min.js"></script>
|
2014-02-12 11:42:33 +01:00
|
|
|
<?php } else { ?>
|
2014-02-27 18:30:40 +01:00
|
|
|
<link rel="stylesheet" href="<?php echo $relative_base; ?>css/daux-<?php echo $options['theme'];?>.min.css">
|
2014-02-12 11:42:33 +01:00
|
|
|
<?php } ?>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<?php if ($homepage) { ?>
|
2014-02-27 18:30:40 +01:00
|
|
|
<!-- Homepage -->
|
2014-03-14 19:17:28 +01:00
|
|
|
<div class="navbar navbar-fixed-top hidden-print">
|
2014-02-12 11:42:33 +01:00
|
|
|
<div class="container">
|
2014-02-27 18:30:40 +01:00
|
|
|
<a class="brand navbar-brand pull-left" href="<?php echo get_url('index'); ?>"><?php echo $options['title']; ?></a>
|
2014-02-12 11:42:33 +01:00
|
|
|
<p class="navbar-text pull-right">
|
|
|
|
Generated by <a href="http://daux.io">Daux.io</a>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="homepage-hero well container-fluid">
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
2014-02-16 14:12:58 +01:00
|
|
|
<div class="text-center col-sm-12">
|
2014-02-12 11:42:33 +01:00
|
|
|
<?php if ($options['tagline']) { ?>
|
|
|
|
<h2><?php echo $options['tagline'];?></h2>
|
|
|
|
<?php } ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
2014-02-16 14:12:58 +01:00
|
|
|
<div class="col-sm-10 col-sm-offset-1">
|
2014-02-12 11:42:33 +01:00
|
|
|
<?php if ($options['image']) { ?>
|
2014-02-27 18:30:40 +01:00
|
|
|
<img class="homepage-image img-responsive" src="<?php echo $options['image'];?>" alt="<?php echo $options['title'];?>">
|
2014-02-12 11:42:33 +01:00
|
|
|
<?php } ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="hero-buttons container-fluid">
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
2014-02-16 14:12:58 +01:00
|
|
|
<div class="text-center col-sm-12">
|
2014-02-12 11:42:33 +01:00
|
|
|
<?php if ($options['repo']) { ?>
|
|
|
|
<a href="https://github.com/<?php echo $options['repo']; ?>" class="btn btn-secondary btn-hero">
|
|
|
|
View On GitHub
|
|
|
|
</a>
|
|
|
|
<?php } ?>
|
|
|
|
<?php if (count($options['languages']) > 0) { ?>
|
|
|
|
<?php foreach ($options['languages'] as $language_key => $language_name) { ?>
|
2014-02-27 18:30:40 +01:00
|
|
|
<a href="<?php echo get_url($base_doc[$language_key]); ?>" class="btn btn-primary btn-hero">
|
2014-02-12 11:42:33 +01:00
|
|
|
<?php echo $language_name; ?>
|
|
|
|
</a>
|
|
|
|
<?php } ?>
|
|
|
|
<?php } else { ?>
|
2014-02-27 18:30:40 +01:00
|
|
|
<a href="<?php echo get_url($base_doc);?>" class="btn btn-primary btn-hero">
|
2014-02-12 11:42:33 +01:00
|
|
|
View Documentation
|
|
|
|
</a>
|
|
|
|
<?php } ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="homepage-content container-fluid">
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
2014-02-16 14:12:58 +01:00
|
|
|
<div class="col-sm-10 col-sm-offset-1">
|
2014-02-27 18:30:40 +01:00
|
|
|
<?php echo $page['content'];?>
|
2014-02-12 11:42:33 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="homepage-footer well container-fluid">
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
2014-02-16 14:12:58 +01:00
|
|
|
<div class="col-sm-5 col-sm-offset-1">
|
2014-02-12 11:42:33 +01:00
|
|
|
<?php if (!empty($options['links'])) { ?>
|
|
|
|
<ul class="footer-nav">
|
|
|
|
<?php foreach($options['links'] as $name => $url) { ?>
|
|
|
|
<li><a href="<?php echo $url;?>" target="_blank"><?php echo $name;?></a></li>
|
|
|
|
<?php } ?>
|
|
|
|
</ul>
|
|
|
|
<?php } ?>
|
|
|
|
</div>
|
2014-02-16 14:12:58 +01:00
|
|
|
<div class="col-sm-5">
|
2014-02-12 11:42:33 +01:00
|
|
|
<div class="pull-right">
|
|
|
|
<?php if (!empty($options['twitter'])) { ?>
|
|
|
|
<?php foreach($options['twitter'] as $handle) { ?>
|
|
|
|
<div class="twitter">
|
|
|
|
<iframe allowtransparency="true" frameborder="0" scrolling="no" style="width:162px; height:20px;" src="https://platform.twitter.com/widgets/follow_button.html?screen_name=<?php echo $handle;?>&show_count=false"></iframe>
|
|
|
|
</div>
|
|
|
|
<?php } ?>
|
|
|
|
<?php } ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<?php } else { ?>
|
|
|
|
<!-- Docs -->
|
|
|
|
<?php if ($options['repo']) { ?>
|
2014-03-14 19:17:28 +01:00
|
|
|
<a href="https://github.com/<?php echo $options['repo']; ?>" target="_blank" id="github-ribbon" class="hidden-print"><img src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub"></a>
|
2014-02-12 11:42:33 +01:00
|
|
|
<?php } ?>
|
|
|
|
<div class="container-fluid fluid-height wrapper">
|
2014-03-14 19:17:28 +01:00
|
|
|
<div class="navbar navbar-fixed-top hidden-print">
|
2014-02-16 14:12:58 +01:00
|
|
|
<div class="container-fluid">
|
2014-02-27 18:30:40 +01:00
|
|
|
<a class="brand navbar-brand pull-left" href="<?php echo get_url('index'); ?>"><?php echo $options['title']; ?></a>
|
2014-02-12 11:42:33 +01:00
|
|
|
<p class="navbar-text pull-right">
|
|
|
|
Generated by <a href="http://daux.io">Daux.io</a>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2014-02-16 14:12:58 +01:00
|
|
|
<div class="row columns content">
|
2014-03-14 19:17:28 +01:00
|
|
|
<div class="left-column article-tree col-sm-3 hidden-print">
|
2014-02-12 11:42:33 +01:00
|
|
|
<!-- For Mobile -->
|
|
|
|
<div class="responsive-collapse">
|
|
|
|
<button type="button" class="btn btn-sidebar" id="menu-spinner-button">
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div id="sub-nav-collapse" class="sub-nav-collapse">
|
|
|
|
<!-- Navigation -->
|
2014-02-27 18:30:40 +01:00
|
|
|
<?php echo get_navigation($file); ?>
|
2014-03-13 19:33:31 +01:00
|
|
|
<?php if (!empty($options['links']) || !empty($options['twitter'])) { ?>
|
2014-02-12 11:42:33 +01:00
|
|
|
<div class="well well-sidebar">
|
|
|
|
<!-- Links -->
|
|
|
|
<?php foreach($options['links'] as $name => $url) { ?>
|
|
|
|
<a href="<?php echo $url;?>" target="_blank"><?php echo $name;?></a><br>
|
|
|
|
<?php } ?>
|
2014-02-13 13:21:27 +01:00
|
|
|
<?php if ($options['toggle_code']) { ?>
|
|
|
|
<a href="#" id="toggleCodeBlockBtn" onclick="toggleCodeBlocks();">Show Code Blocks Inline</a><br>
|
|
|
|
<?php } ?>
|
2014-02-12 11:42:33 +01:00
|
|
|
<!-- Twitter -->
|
|
|
|
<?php foreach($options['twitter'] as $handle) { ?>
|
|
|
|
<div class="twitter">
|
|
|
|
<hr/>
|
|
|
|
<iframe allowtransparency="true" frameborder="0" scrolling="no" style="width:162px; height:20px;" src="https://platform.twitter.com/widgets/follow_button.html?screen_name=<?php echo $handle;?>&show_count=false"></iframe>
|
|
|
|
</div>
|
|
|
|
<?php } ?>
|
|
|
|
</div>
|
|
|
|
<?php } ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-02-16 14:12:58 +01:00
|
|
|
<div class="right-column <?php echo ($options['float']?'float-view':''); ?> content-area col-sm-9">
|
2014-02-12 11:42:33 +01:00
|
|
|
<div class="content-page">
|
|
|
|
<article>
|
|
|
|
<?php if($options['date_modified'] && isset($page['modified'])) { ?>
|
|
|
|
<div class="page-header sub-header clearfix">
|
|
|
|
<h1><?php echo $page['title'];?>
|
2014-02-27 18:30:40 +01:00
|
|
|
<?php if ($mode === 'Live' && $options["file_editor"]) { ?>
|
2014-02-12 11:42:33 +01:00
|
|
|
<a href="javascript:;" id="editThis" class="btn">Edit this page</a>
|
|
|
|
<?php } ?>
|
|
|
|
</h1>
|
|
|
|
<span style="float: left; font-size: 10px; color: gray;">
|
|
|
|
<?php echo date("l, F j, Y", $page['modified']);?>
|
|
|
|
</span>
|
|
|
|
<span style="float: right; font-size: 10px; color: gray;">
|
|
|
|
<?php echo date ("g:i A", $page['modified']);?>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<?php } else { ?>
|
|
|
|
<div class="page-header">
|
|
|
|
<h1><?php echo (isset($page['title']))?$page['title']:$options['title'];?></h1>
|
2014-02-27 18:30:40 +01:00
|
|
|
<?php if ($mode === 'Live' && $options["file_editor"]) { ?>
|
2014-02-12 11:42:33 +01:00
|
|
|
<a href="javascript:;" id="editThis" class="btn">Edit this page</a>
|
|
|
|
<?php } ?>
|
|
|
|
</h1>
|
|
|
|
</div>
|
|
|
|
<?php } ?>
|
2014-02-27 18:30:40 +01:00
|
|
|
<?php echo $page['content']; ?>
|
|
|
|
<?php if ($mode === 'Live' && $options["file_editor"]) { ?>
|
2014-02-12 11:42:33 +01:00
|
|
|
<div class="editor <?php if(!$options['date_modified']) { ?>paddingTop<?php } ?>">
|
|
|
|
<h3>You are editing <?php echo $page['path']; ?> <a href="javascript:;" class="closeEditor btn btn-warning">Close</a></h3>
|
|
|
|
<div class="navbar navbar-inverse navbar-default navbar-fixed-bottom" role="navigation">
|
|
|
|
<div class="navbar-inner">
|
|
|
|
<a href="javascript:;" class="save_editor btn btn-primary navbar-btn pull-right">Save file</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<textarea id="markdown_editor"><?php echo $page['markdown'];?></textarea>
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
</div>
|
|
|
|
<?php } ?>
|
|
|
|
</article>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<?php } ?>
|
|
|
|
|
|
|
|
<?php if ($options['google_analytics']) { ?>
|
|
|
|
<script>
|
2014-02-27 18:30:40 +01:00
|
|
|
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
|
|
|
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
|
|
|
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
|
|
|
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
2014-02-12 11:42:33 +01:00
|
|
|
|
2014-02-27 18:30:40 +01:00
|
|
|
ga('create', '<?php echo $options['google_analytics'];?>', '<?php echo (isset($_SERVER['HTTP_HOST']))?$_SERVER['HTTP_HOST']:''; ?>');
|
|
|
|
ga('send', 'pageview');
|
2014-02-12 11:42:33 +01:00
|
|
|
|
|
|
|
</script>
|
|
|
|
<?php } ?>
|
|
|
|
<?php if ($options['piwik_analytics']) { ?>
|
|
|
|
<script type="text/javascript">
|
2014-02-27 18:30:40 +01:00
|
|
|
var _paq = _paq || [];
|
|
|
|
_paq.push(["trackPageView"]);
|
|
|
|
_paq.push(["enableLinkTracking"]);
|
2014-02-12 11:42:33 +01:00
|
|
|
|
2014-02-27 18:30:40 +01:00
|
|
|
(function() {
|
2014-02-12 11:42:33 +01:00
|
|
|
var u=(("https:" == document.location.protocol) ? "https" : "http") + "://<?php echo $options['piwik_analytics'];?>/";
|
|
|
|
_paq.push(["setTrackerUrl", u+"piwik.php"]);
|
|
|
|
_paq.push(["setSiteId", <?php echo $options['piwik_analytics_id'];?>]);
|
|
|
|
var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript";
|
|
|
|
g.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s);
|
2014-02-27 18:30:40 +01:00
|
|
|
})();
|
2014-02-12 11:42:33 +01:00
|
|
|
</script>
|
|
|
|
<?php } ?>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- hightlight.js -->
|
2014-02-27 18:30:40 +01:00
|
|
|
<script src="<?php echo $relative_base; ?>js/highlight.min.js"></script>
|
2014-02-12 11:42:33 +01:00
|
|
|
<script>hljs.initHighlightingOnLoad();</script>
|
|
|
|
|
|
|
|
<!-- Navigation -->
|
2014-02-16 12:48:47 +01:00
|
|
|
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
|
2014-02-12 11:42:33 +01:00
|
|
|
<script>
|
2014-02-27 18:30:40 +01:00
|
|
|
if (typeof jQuery == 'undefined')
|
|
|
|
document.write(unescape("%3Cscript src='<?php echo $relative_base; ?>js/jquery-1.11.0.min.js' type='text/javascript'%3E%3C/script%3E"));
|
2014-02-12 11:42:33 +01:00
|
|
|
</script>
|
2014-02-27 18:30:40 +01:00
|
|
|
<?php if ($mode === 'Live' && $options["file_editor"]) { ?>
|
|
|
|
<!-- Front end file editor -->
|
|
|
|
<script src="<?php echo $relative_base; ?>js/editor.js"></script>
|
|
|
|
<?php } ?>
|
|
|
|
<script src="<?php echo $relative_base; ?>js/bootstrap.min.js"></script>
|
|
|
|
<script src="<?php echo $relative_base; ?>js/custom.js"></script>
|
2014-02-12 11:42:33 +01:00
|
|
|
<!--[if lt IE 9]>
|
2014-02-27 18:30:40 +01:00
|
|
|
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
2014-02-12 11:42:33 +01:00
|
|
|
<![endif]-->
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|