-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive.php
45 lines (42 loc) · 946 Bytes
/
archive.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
<?php
/**
* The Archive Template File
*
* This displays all archives (tags, categories, etc.)
*
* @package BC Douglas Fir Theme
*/
get_header(); ?>
<?php
/**
* Load Variables
*/
$bc_douglas_fir_options = bc_douglas_fir_get_options();
$current_layout = $bc_douglas_fir_options['default_layout'];
?>
<?php if ( bc_douglas_fir_has_active_sidebar() ) : ?>
<div class="col-md-9 order-1
<?php
if ( 'sidebar-content' !== $current_layout ) {
?>
order-md-0<?php } ?>">
<?php else : // Full Width Container. ?>
<div class="col-md-12">
<?php endif; ?>
<main role="main">
<?php
/**
* Get Archive Template Part
*
* Check for post type. Look within 'parts/' directory.
*/
get_template_part( 'parts/archive', get_post_type() );
?>
</main>
</div>
<?php if ( bc_douglas_fir_has_active_sidebar() ) : ?>
<?php
get_sidebar();
endif;
?>
<?php get_footer(); ?>