-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
41 lines (27 loc) · 1.02 KB
/
index.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
<?php get_header(); // Loads the header.php template. ?>
<?php
$layout = get_theme_mod('theme_layout');
$col_class = 'large-8';
if($layout === '1c') {
$col_class = 'large-12';
}
?>
<div id="content" class="hfeed column <?php echo $col_class; ?>">
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', ( post_type_supports( get_post_type(), 'post-formats' ) ? get_post_format() : get_post_type() ) ); ?>
<?php if ( is_singular() ) {
if( !function_exists( 'is_account_page') ) {
comments_template();
} else if ( !is_account_page() && !is_checkout() && !is_cart() ) {
comments_template();
}
}
?>
<?php endwhile; ?>
<?php else : ?>
<?php get_template_part( 'loop-error' ); // Loads the loop-error.php template. ?>
<?php endif; ?>
<?php get_template_part( 'loop-nav' ); // Loads the loop-nav.php template. ?>
</div><!-- #content -->
<?php get_footer(); // Loads the footer.php template. ?>