Passed
Push — master ( 1cfb85...cddbb8 )
by Warwick
46s queued 11s
created

page-templates/template-no-sidebar.php (1 issue)

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
 * No Sidebar Template.
4
 *
5
 * Template Name: No Sidebar
6
 *
7
 * @package    lsx
8
 * @subpackage template
9
 */
10
11
get_header(); ?>
12
13
<?php lsx_content_wrap_before(); ?>
14
15
<div id="primary" class="content-area col-sm-12">
16
17
	<?php lsx_content_before(); ?>
18
19
	<main id="main" class="site-main" role="main">
20
21
		<?php lsx_content_top(); ?>
22
23 View Code Duplication
		<?php if ( have_posts() ) : ?>
0 ignored issues
show
This code seems to be duplicated across your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
24
25
			<?php
26
			while ( have_posts() ) :
27
				the_post();
28
			?>
29
30
				<?php get_template_part( 'partials/content', 'page' ); ?>
31
32
			<?php endwhile; ?>
33
34
		<?php endif; ?>
35
36
		<?php lsx_content_bottom(); ?>
37
38
		<?php
39
		if ( comments_open() ) {
40
			comments_template();
41
		}
42
		?>
43
44
	</main><!-- #main -->
45
46
	<?php lsx_content_after(); ?>
47
48
</div><!-- #primary -->
49
50
<?php lsx_content_wrap_after(); ?>
51
52
<?php
53
get_footer();
54