-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsingle.php
50 lines (31 loc) · 985 Bytes
/
single.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
47
48
49
50
<?php
/**
* The template for displaying all single posts.
*
* @package whimsy-framework
*/
get_header(); ?>
<?php whimsy_content_before(); ?>
<div id="content" class="container row">
<div id="primary" class="c9">
<?php whimsy_main_before(); ?>
<main id="main" class="site-main" role="main">
<?php whimsy_main_inside_before(); ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php whimsy_post_before(); ?>
<?php get_template_part( 'content', 'single' ); ?>
<?php whimsy_post_nav(); ?>
<?php
// If comments are open or we have at least one comment, load up the comment template
if ( comments_open() || '0' != get_comments_number() ) :
comments_template();
endif;
?>
<?php whimsy_post_after(); ?>
<?php endwhile; // end of the loop. ?>
<?php whimsy_main_inside_after(); ?>
</main><!-- #main -->
<?php whimsy_main_after(); ?>
</div><!-- #primary -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>