-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.php
More file actions
40 lines (30 loc) · 956 Bytes
/
index.php
File metadata and controls
40 lines (30 loc) · 956 Bytes
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
<?php get_header(); ?>
<?php
/**
* Conditional Primary Site Header
*/
if ( 'alternate' === Snowbird()->mod( 'loop_layout_type' ) ) {
get_template_part( 'template-parts/primary-site-header' );
} ?>
<main class="xf__main" itemprop="mainContentOfPage">
<?php if ( have_posts() ) : ?>
<div id="main" class="xf__posts" itemtype="http://schema.org/Blog" itemscope="itemscope">
<?php while ( have_posts() ) : the_post(); ?>
<?php
/**
* Post Contents
*/
if ( 'alternate' === Snowbird()->mod( 'loop_layout_type' ) ) :
get_template_part( 'template-parts/content-alternate', get_post_format() );
else :
get_template_part( 'template-parts/content', get_post_format() );
endif;
?>
<?php endwhile; ?>
</div>
<?php get_template_part( 'template-parts/loop-pagination' ); ?>
<?php else : ?>
<?php get_template_part( 'template-parts/content-none' ); ?>
<?php endif; ?>
</main>
<?php get_footer(); ?>