Skip to content

Instantly share code, notes, and snippets.

@Chriswilldo
Last active December 22, 2016 19:55
Show Gist options
  • Save Chriswilldo/cb62322ba3c9a827c02f42c2bf34a775 to your computer and use it in GitHub Desktop.
Save Chriswilldo/cb62322ba3c9a827c02f42c2bf34a775 to your computer and use it in GitHub Desktop.
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/smoothness/jquery-ui.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css">
<style>
html {
position: relative;
min-height: 100%;
}
body {
/* Margin bottom by footer height */
margin-bottom: 60px;
}
#footer {
position:absolute; bottom: 0;
width: 100%;
/* Set the fixed height of the footer here */
height: 60px; margin: 0 auto;
background-color: #f5f5f5;
}
#test { position: absolute; }
<div id="debug"><h4 id="bars><pre>
<?php print_r($page); ?>
</pre></h4></div>
<?php
include('config/setup.php');
?>
<!DOCTYPE html>
<html>
<head>
<title><?php echo $page['title'].' | '.$site_title; ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<?php include('config/css.php'); ?>
<?php include('config/js.js'); ?>
</head>
<body>
<div id="wrap">
<?php include(D_TEMPLATE.'/navigation.php'); ?>
<div class="container">
<h1><?php echo $page['header']; ?></h1>
<?php echo $page['body_formatted']; ?>
<?php if(isset($_GET['debug']) ==1) { ?>
<pre>
<?php print_r($page); ?>
</pre>
<?php } ?>
</div>
</div><!-- end wrap -->
<?php include('debug.php'); ?>
<div id="footer">
<?php include(D_TEMPLATE.'/footer.php'); ?>
</div>
</body>
</html>
<!-- jquery -->
<script
src="http://code.jquery.com/jquery-3.1.1.min.js"></script>
<!-- jqueryui -->
<script
src="http://code.jquery.com/ui/1.12.1/jquery-ui.min.js"></script>
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script>
$(document).ready(function() {
$("#test").click(function(){
$("h4").hide();
})
});
</script>
<nav class="navbar navbar-default" role="navigation">
<button id="test" class="btn btn-success">D-BUD</button>
<div class="container">
<ul class="nav navbar-nav">
<?php nav_main($dbc, $pageid) ?>
<li><a href="#">faq</a></li>
<li><a href="#">contact</a></li>
</ul></div>
</nav><!-- end nav -->
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<button id="btn-debug" class="btn btn-primary">
<i class="fa fa-bug"></i>
</button>
<div class="container">
<ul class="nav navbar-nav">
<?php nav_main($dbc, $pageid); ?>
<li><a href="#">FAQ</a></li>
<li><a href="#">Contact</a></li>
</ul>
</div>
</nav><!--END nav main nav-->
@Bronx-Cowboy
Copy link

Thank you!!! the problem was on the index page. I left out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment