-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive.php
46 lines (40 loc) · 1.02 KB
/
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
46
<?php
/**
* The Archive Template File
*
* This displays all archives (tags, categories, etc.)
*
*/
get_header(); ?>
<?php
/**
* Load Variables
*
*/
global $mayflower_brand;
$mayflower_options = mayflower_get_options();
$current_layout = $mayflower_options['default_layout'];
?>
<div id="content" data-swiftype-index='true' <?php if ( $mayflower_brand == 'branded' ) {?> class="box-shadow"<?php } ?>>
<div class="row row-padding">
<?php if ( has_active_sidebar() ) : ?>
<div class="col-md-9 <?php if ( $current_layout == 'sidebar-content' ) { ?>col-md-push-3<?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 ( has_active_sidebar() ) : ?>
<?php get_sidebar();
endif; ?>
</div>
</div><!-- #content-->
<?php get_footer(); ?>