Passed
Push — master ( 7aa3c1...048399 )
by SILENT
03:08
created

single-comic.php (2 issues)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
/**
3
 *  The Template for displaying all single comics
4
 *
5
 * @package WordPress
6
 * @subpackage Strip
7
 */
8
9
if ( post_type_exists( $post_type )  && is_single() ) {
10
	get_header( 'lite' );
11
} else {
12
	get_header();
13
}
14
	?>
15
16
	<section id="primary">
17
		<main id="content" role="main">
18
19
	<?php
20
	// Start the loop.
21
	while ( have_posts() ) :
0 ignored issues
show
Please always use braces to surround the code block of WHILE statements.
Loading history...
22
		the_post();
23
		if ( 'comic' === get_post_type() ) : ?>
0 ignored issues
show
Please always use braces to surround the code block of IF statements.
Loading history...
24
25
			<div class="entry-comic">
26
27
				<?php get_template_part( 'content-comic' ); ?>
28
29
				<?php strip_content_nav( 'nav-below' );
30
				set_transient( 'story', $post_type );?>
31
32
			</div><!-- #entry-comic -->
33
34
			<?php                                                                                                                                                                                                                      endif;
35
		wp_reset_postdata(); ?>
36
37
				<?php
38
					// If comments are open or we have at least one comment, load up the comment template.
39
				if ( comments_open() || '0' !== get_comments_number() ) {
40
					comments_template();
41
				}
42
				?>
43
44
		<?php  endwhile; // end of the loop. ?>
45
46
		</main><!-- #content -->
47
	</section><!-- #primary -->
48
49
<?php get_footer( 'lite' ); ?>
50