-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsingle.php
More file actions
42 lines (35 loc) · 886 Bytes
/
single.php
File metadata and controls
42 lines (35 loc) · 886 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
41
42
<?php get_header(); ?>
<?php
/**
* Conditional Primary Site Header
*/
if ( 'alternate' === Snowbird()->mod( 'post_layout_type' ) ) {
get_template_part( 'template-parts/primary-site-header' );
} ?>
<main class="xf__main" itemprop="mainContentOfPage">
<?php while ( have_posts() ) : the_post(); ?>
<div itemscope="itemscope" itemtype="http://schema.org/Blog">
<?php
/**
* Post Details
*/
if ( 'alternate' === Snowbird()->mod( 'post_layout_type' ) ) :
get_template_part( 'template-parts/content-single-alternate', get_post_format() );
else :
get_template_part( 'template-parts/content-single', get_post_format() );
endif;
?>
<?php
/**
* Related Posts
*/
snowbird_display_related_posts(); ?>
<?php
/**
* Comments and Form
*/
comments_template(); ?>
</div>
<?php endwhile; ?>
</main>
<?php get_footer(); ?>