Skip to content

Instantly share code, notes, and snippets.

@tayhimself
Created March 7, 2012 17:44
Show Gist options
  • Save tayhimself/1994640 to your computer and use it in GitHub Desktop.
Save tayhimself/1994640 to your computer and use it in GitHub Desktop.
Twitter Bootstrap 2.0 sticky footer with Symfony 1.4 layout template
#
# The sticky header here didn't work for me but I suggest you try it first https://gist.github.com/1855032
# This current
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Partners Healthcare Sleep Screen Survey</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="Ha">
<!-- Le styles -->
<style>
body {
padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
}
</style>
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- Le fav and touch icons -->
<link rel="shortcut icon" href="images/favicon.ico">
<link rel="apple-touch-icon" href="images/apple-touch-icon.png">
<link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png">
<?php //include_title() ?>
<?php //include_metas() ?>
<?php include_http_metas() ?>
<?php include_stylesheets() ?>
</head>
<body>
<div id="wrapper">
<div id="sf">
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="#">Sleep Screen Survey</a>
<div class="nav-collapse">
<ul class="nav">
<li class="active"><a href="#">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
</div> <!-- navbar -->
<div class="container">
<?php echo $sf_content ?>
</div> <!-- /container -->
</div> <!-- /sf -->
</div> <!-- wrapper -->
<div class="push"><!--//--></div>
<?php include_partial('global/footer',array()) ?>
<!-- Le javascript ================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<?php include_javascripts() ?>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment