Skip to content

Instantly share code, notes, and snippets.

@jdcauley
Created January 22, 2014 17:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdcauley/8562589 to your computer and use it in GitHub Desktop.
Save jdcauley/8562589 to your computer and use it in GitHub Desktop.
<?php get_template_part('templates/head'); ?>
<body <?php body_class(); ?>>
<!--[if lt IE 8]>
<div class="alert alert-warning">
<?php _e('You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.', 'roots'); ?>
</div>
<![endif]-->
<?php
do_action('get_header');
// Use Bootstrap's navbar if enabled in config.php
if (current_theme_supports('bootstrap-top-navbar')) {
get_template_part('templates/header-top-navbar');
} else {
get_template_part('templates/header');
}
?>
<div class="wrap container bg-white" role="document">
<div class="content row">
<main class="main <?php echo roots_main_class(); ?>" role="main">
<?php if (is_category() | (is_home()) ) : ?>
<div class="row">
<?php endif; ?>
<?php include roots_template_path(); ?>
<?php if (is_category() | (is_home()) ) : ?>
</div>
<?php endif; ?>
</main><!-- /.main -->
<?php if (roots_display_sidebar()) : ?>
<aside class="sidebar <?php echo roots_sidebar_class(); ?>" role="complementary">
<div class="sidebar-border">
<?php include roots_sidebar_path(); ?>
</div>
</aside><!-- /.sidebar -->
<?php endif; ?>
</div><!-- /.content -->
</div><!-- /.wrap -->
<?php get_template_part('templates/footer'); ?>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment