Completed
Push — master ( 8652fb...5f173e )
by Md. Mozahidur
02:27
created

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 pages.
4
 *
5
 * This is the template that displays all pages by default.
6
 * Please note that this is the WordPress construct of pages
7
 * and that other 'pages' on your WordPress site may use a
8
 * different template.
9
 *
10
 * @link https://codex.wordpress.org/Template_Hierarchy
11
 *
12
 * @package Lighthouse
13
 */
14
15
get_header(); ?>
16
17
	<div id="primary" class="content-area">
18
		<main id="main" class="site-main" role="main">
19
20
			<?php
21 View Code Duplication
			while ( have_posts() ) : the_post();
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...
22
23
				get_template_part( 'template-parts/content', 'page' );
24
25
				// If comments are open or we have at least one comment, load up the comment template.
26
				if ( comments_open() || get_comments_number() ) :
27
					comments_template();
28
				endif;
29
30
			endwhile; // End of the loop.
31
			?>
32
33
		</main><!-- #main -->
34
	</div><!-- #primary -->
35
36
<?php
37
get_sidebar();
38
get_footer();
39