forked from roots/sage
-
Notifications
You must be signed in to change notification settings - Fork 2
/
base.php
41 lines (36 loc) · 1.46 KB
/
base.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php get_template_part('templates/head'); ?>
<body <?php body_class(); ?>>
<!--[if lt IE 7]><div class="alert"><?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');
}
?>
<?php tha_header_after(); ?>
<div class="wrap container" role="document">
<div class="content row">
<?php tha_content_before(); ?>
<div class="main <?php echo roots_main_class(); ?>" role="main">
<?php tha_content_top(); ?>
<?php include roots_template_path(); ?>
<?php tha_content_bottom(); ?>
</div><!-- /.main -->
<?php tha_content_after(); ?>
<?php if (roots_display_sidebar()) : ?>
<?php tha_sidebars_before(); ?>
<aside class="sidebar <?php echo roots_sidebar_class(); ?>" role="complementary">
<?php tha_sidebar_top(); ?>
<?php include roots_sidebar_path(); ?>
<?php tha_sidebar_bottom(); ?>
</aside><!-- /.sidebar -->
<?php tha_sidebars_after(); ?>
<?php endif; ?>
</div><!-- /.content -->
</div><!-- /.wrap -->
<?php get_template_part('templates/footer'); ?>
</body>
</html>