-
Notifications
You must be signed in to change notification settings - Fork 0
/
base.php
executable file
·80 lines (59 loc) · 2.71 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
72
73
74
75
76
77
78
79
80
<?php ss_get_template_part( 'templates/head' ); ?>
<body <?php body_class(); ?>>
<a href="#content" class="sr-only"><?php _e( 'Skip to main content', 'smallermobs' ); ?></a>
<?php global $ss_framework; ?>
<?php global $ss_settings; ?>
<!--[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.', 'smallermobs' ) ); ?>
<![endif]-->
<?php do_action( 'get_header' ); ?>
<?php do_action( 'smallermobs_pre_top_bar' ); ?>
<?php ss_get_template_part( apply_filters( 'smallermobs_top_bar_template', 'templates/top-bar' ) ); ?>
<?php do_action( 'smallermobs_pre_wrap' ); ?>
<?php
if ( $ss_settings['title_section_style'] == 'featured' ) {
do_action( 'smallermobs_page_feature' );
};
?>
<!--breadcrumbs-->
<?php echo $ss_framework->open_container( 'div', 'wrap-main-section', 'wrap main-section' ); ?>
<?php do_action( 'smallermobs_pre_content' ); ?>
<div id="content" class="content">
<?php echo $ss_framework->open_row( 'div', null, 'bg' ); ?>
<?php do_action( 'smallermobs_pre_main' ); ?>
<main class="main <?php smallermobs_section_class( 'main', true ); ?>" <?php if ( is_home() ) { echo 'id="home-blog"'; } ?> role="main">
<?php include smallermobs_template_path(); ?>
</main><!-- /.main -->
<?php do_action( 'smallermobs_after_main' ); ?>
<?php if ( smallermobs_display_primary_sidebar() ) : ?>
<aside id="sidebar-primary" class="sidebar <?php smallermobs_section_class( 'primary', true ); ?>" role="complementary">
<?php if ( ! has_action( 'smallermobs_sidebar_override' ) ) {
include smallermobs_sidebar_path();
} else {
do_action( 'smallermobs_sidebar_override' );
} ?>
</aside><!-- /.sidebar -->
<?php endif; ?>
<?php do_action( 'smallermobs_post_main' ); ?>
<?php if ( smallermobs_display_secondary_sidebar() ) : ?>
<aside id="sidebar-secondary" class="sidebar secondary <?php smallermobs_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( 'smallermobs_after_content' ); ?>
<?php echo $ss_framework->close_container( 'div' ); ?><!-- /.wrap -->
<?php
do_action( 'smallermobs_pre_footer' );
if ( ! has_action( 'smallermobs_footer_override' ) ) {
ss_get_template_part( 'templates/footer' );
} else {
do_action( 'smallermobs_footer_override' );
}
do_action( 'smallermobs_after_footer' );
wp_footer();
?>
</body>
</html>