forked from codemonkey-jack/shoestrap-3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbase.php
64 lines (56 loc) · 3 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php get_template_part('templates/head'); ?>
<?php $layout = get_theme_mod( 'shoestrap_layout' ); ?>
<body <?php body_class(); ?>>
<!--[if lt IE 7]><div class="alert">Your browser is <em>ancient!</em> <a href="http://browsehappy.com/">Upgrade to a different browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">install Google Chrome Frame</a> to experience this site.</div><![endif]-->
<?php
// Use Bootstrap's navbar if enabled in config.php
if (current_theme_supports('bootstrap-top-navbar')) {
get_template_part('templates/header-top-navbar');
}
?>
<?php do_action('shoestrap_branding'); ?>
<?php do_action('shoestrap_hero'); ?>
<?php if ( get_theme_mod( 'shoestrap_navbar_secondary' ) == 1 ) {
get_template_part('templates/navbar');
} ?>
<?php dynamic_sidebar('hero-area'); ?>
<?php do_action('shoestrap_pre_wrap'); ?>
<div id="wrap" class="<?php shoestrap_fluid_body_classes( 'container' ); ?>" role="document">
<?php do_action('shoestrap_pre_content'); ?>
<div id="content" class="<?php shoestrap_fluid_body_classes( 'row' ); ?>">
<?php if ( in_array ( $layout, array ( 'mps', 'pms', 'smp', 'spm' ) ) && shoestrap_display_sidebar() && shoestrap_display_primary_sidebar() ) { ?>
<div class="m_p_wrap">
<?php } ?>
<?php do_action('shoestrap_pre_main'); ?>
<div id="main" class="<?php echo shoestrap_main_class(); ?>" role="main">
<?php include shoestrap_template_path(); ?>
</div>
<?php do_action('shoestrap_after_main'); ?>
<?php if (shoestrap_display_sidebar() && shoestrap_display_primary_sidebar()) : ?>
<?php if ( !in_array ( $layout, array ( 'm', 'ms', 'sm' ) ) ) { ?>
<aside id="sidebar" class="<?php echo shoestrap_sidebar_class(); ?>" role="complementary">
<?php do_action('shoestrap_pre_sidebar'); ?>
<?php get_template_part('templates/primary-sidebar'); ?>
<?php do_action('shoestrap_after_sidebar'); ?>
</aside>
<?php } ?>
<?php if ( in_array ( $layout, array ( 'mps', 'pms', 'smp', 'spm' ) ) && shoestrap_display_sidebar() && shoestrap_display_primary_sidebar() ) { ?>
</div>
<?php } ?>
<?php if ( !in_array ( $layout, array ( 'm', 'mp', 'pm' ) ) && shoestrap_display_sidebar() && shoestrap_display_secondary_sidebar() ) { ?>
<aside id="secondary" class="<?php echo shoestrap_sidebar_class( 'secondary' ); ?>" role="complementary">
<?php do_action('shoestrap_pre_sidebar'); ?>
<?php get_template_part('templates/secondary-sidebar'); ?>
<?php do_action('shoestrap_after_sidebar'); ?>
</aside>
<?php } ?>
<?php endif; ?>
</div><!-- /#content -->
<?php do_action('shoestrap_after_content'); ?>
</div><!-- /#wrap -->
<?php do_action('shoestrap_after_wrap'); ?>
<?php do_action('shoestrap_pre_footer'); ?>
<?php get_template_part('templates/footer'); ?>
<?php do_action('shoestrap_after_footer'); ?>
</body>
</html>