Last active
December 22, 2016 19:55
-
-
Save Chriswilldo/cb62322ba3c9a827c02f42c2bf34a775 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 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; } | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="debug"><h4 id="bars><pre> | |
<?php print_r($page); ?> | |
</pre></h4></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you!!! the problem was on the index page. I left out