forked from roots/sage
-
Notifications
You must be signed in to change notification settings - Fork 103
/
base.php
executable file
·71 lines (52 loc) · 2.56 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
65
66
67
68
69
70
71
<?php ss_get_template_part( 'templates/head' ); ?>
<body <?php body_class(); ?>>
<a href="#content" class="sr-only"><?php _e( 'Skip to main content', 'shoestrap' ); ?></a>
<?php global $ss_framework; ?>
<!--[if lt IE 8]>
<?php echo $ss_framework->alert( 'warning', __(' You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.', 'shoestrap' ) ); ?>
<![endif]-->
<?php do_action( 'get_header' ); ?>
<?php do_action( 'shoestrap_pre_top_bar' ); ?>
<?php ss_get_template_part( apply_filters( 'shoestrap_top_bar_template', 'templates/top-bar' ) ); ?>
<?php do_action( 'shoestrap_pre_wrap' ); ?>
<?php echo $ss_framework->open_container( 'div', 'wrap-main-section', 'wrap main-section' ); ?>
<?php do_action( 'shoestrap_pre_content' ); ?>
<div id="content" class="content">
<?php echo $ss_framework->open_row( 'div', null, 'bg' ); ?>
<?php do_action( 'shoestrap_pre_main' ); ?>
<main class="main <?php echo apply_filters( 'shoestrap_section_class_main', 'col-md-7' ); ?>" <?php if (is_home()){ echo 'id="home-blog"';} ?> role="main">
<?php include shoestrap_template_path(); ?>
</main><!-- /.main -->
<?php do_action( 'shoestrap_after_main' ); ?>
<?php if ( shoestrap_display_primary_sidebar() && is_active_sidebar('sidebar-primary')) : ?>
<aside id="sidebar-primary" class="sidebar <?php shoestrap_section_class( 'primary', true ); ?>" role="complementary">
<?php if ( ! has_action( 'shoestrap_sidebar_override' ) ) {
include shoestrap_sidebar_path();
} else {
do_action( 'shoestrap_sidebar_override' );
} ?>
</aside><!-- /.sidebar -->
<?php endif; ?>
<?php do_action( 'shoestrap_post_main' ); ?>
<?php if ( shoestrap_display_secondary_sidebar() ) : ?>
<aside id="sidebar-secondary" class="sidebar secondary <?php shoestrap_section_class( 'secondary', true ); ?>" role="complementary">
<?php dynamic_sidebar( 'sidebar-secondary' ); ?>
</aside><!-- /.sidebar -->
<?php endif; ?>
<?php echo $ss_framework->clearfix(); ?>
<?php echo $ss_framework->close_row( 'div' ); ?>
</div><!-- /.content -->
<?php do_action( 'shoestrap_after_content' ); ?>
<?php echo $ss_framework->close_container( 'div' ); ?><!-- /.wrap -->
<?php
do_action( 'shoestrap_pre_footer' );
if ( ! has_action( 'shoestrap_footer_override' ) ) {
ss_get_template_part( 'templates/footer' );
} else {
do_action( 'shoestrap_footer_override' );
}
do_action( 'shoestrap_after_footer' );
wp_footer();
?>
</body>
</html>