forked from BoldGrid/prime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
base.php
52 lines (51 loc) · 1.85 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
<?php
/**
* Base Template
*
* This file contains the base structure of a BoldGrid Theme.
*
* @since 2.0
* @package Prime
*/
global $boldgrid_theme_framework;
$configs = $boldgrid_theme_framework->get_configs();
?>
<!doctype html>
<!-- BoldGrid Theme Framework Version: <?php echo $configs['framework-version']; ?> -->
<html <?php language_attributes(); ?>>
<?php get_template_part( 'templates/head' ); ?>
<body <?php body_class(); ?>>
<?php do_action( 'boldgrid_header_before' ); ?>
<div class="site-header">
<?php do_action( 'get_header' ); ?>
<?php get_template_part( 'templates/header/header', $configs['template']['header'] ); ?>
</div><!-- /.header -->
<?php do_action( 'boldgrid_header_after' ); ?>
<?php do_action( 'boldgrid_content_before' ); ?>
<?php $column_class = method_exists( 'BoldGrid', 'is_blog' ) && BoldGrid::is_blog() ? 'col-md-12' : ''; ?>
<div id="content" class="site-content" role="document">
<main class="main <?php echo BoldGrid::print_container_class( 'blog' ); ?>">
<div class="row">
<div class="<?php echo ! BoldGrid::display_sidebar( ) ? $column_class : 'col-md-9'; ?>">
<?php include Boldgrid_Framework_Wrapper::boldgrid_template_path(); ?>
</div>
<?php if ( BoldGrid::display_sidebar( ) ) : ?>
<div class="col-md-3">
<aside class="sidebar">
<?php include BoldGrid::boldgrid_sidebar_path(); ?>
</aside><!-- /.sidebar -->
</div>
<?php endif; ?>
</div>
</main><!-- /.main -->
</div><!-- /.content -->
<?php do_action( 'boldgrid_content_after' ); ?>
<?php do_action( 'boldgrid_footer_before' ); ?>
<div class="site-footer">
<?php do_action( 'get_footer' ); ?>
<?php get_template_part( 'templates/footer/footer', $configs['template']['footer'] ); ?>
<?php wp_footer(); ?>
</div>
<?php do_action( 'boldgrid_footer_after' ); ?>
</body>
</html>