Code Duplication    Length = 22-22 lines in 4 locations

archive.php 1 location

@@ 30-51 (lines=22) @@
27
28
		<?php lsx_content_top(); ?>
29
30
		<?php if ( have_posts() ) : ?>	
31
32
			<?php /* Start the Loop */ ?>
33
			<?php while ( have_posts() ) : the_post(); ?>
34
35
				<?php
36
					/* Include the Post-Format-specific template for the content.
37
					 * If you want to override this in a child theme, then include a file
38
					 * called content-___.php (where ___ is the Post Format name) and that will be used instead.
39
					 */
40
					get_template_part( 'content', get_post_format() );
41
				?>
42
43
			<?php endwhile; ?>
44
			
45
			<?php lsx_paging_nav(); ?>
46
47
		<?php else : ?>
48
49
			<?php get_template_part( 'content', 'none' ); ?>
50
51
		<?php endif; ?>
52
53
		<?php lsx_content_bottom(); ?>
54

author.php 1 location

@@ 30-51 (lines=22) @@
27
28
		<?php lsx_content_top(); ?>
29
30
		<?php if ( have_posts() ) : ?>
31
32
			<?php /* Start the Loop */ ?>
33
			<?php while ( have_posts() ) : the_post(); ?>
34
35
				<?php
36
					/* Include the Post-Format-specific template for the content.
37
					 * If you want to override this in a child theme, then include a file
38
					 * called content-___.php (where ___ is the Post Format name) and that will be used instead.
39
					 */
40
					get_template_part( 'content', get_post_format() );
41
				?>
42
43
			<?php endwhile; ?>
44
			
45
			<?php lsx_paging_nav(); ?>
46
47
		<?php else : ?>
48
49
			<?php get_template_part( 'content', 'none' ); ?>
50
51
		<?php endif; ?>
52
53
		<?php lsx_content_bottom(); ?>
54

index.php 1 location

@@ 26-47 (lines=22) @@
23
		
24
		<?php lsx_content_top(); ?>
25
26
		<?php if ( have_posts() ) : ?>
27
28
			<?php /* Start the Loop */ ?>
29
			<?php while ( have_posts() ) : the_post(); ?>
30
31
				<?php
32
					/* Include the Post-Format-specific template for the content.
33
					 * If you want to override this in a child theme, then include a file
34
					 * called content-___.php (where ___ is the Post Format name) and that will be used instead.
35
					 */
36
					get_template_part( 'content', get_post_format() );
37
				?>
38
39
			<?php endwhile; ?>
40
			
41
			<?php lsx_paging_nav(); ?>
42
			
43
		<?php else : ?>
44
45
			<?php get_template_part( 'content', 'none' ); ?>
46
47
		<?php endif; ?>
48
49
		<?php lsx_content_bottom(); ?>
50

search.php 1 location

@@ 28-49 (lines=22) @@
25
26
		<?php lsx_content_top(); ?>
27
28
		<?php if ( have_posts() ) : global $lsx_archive; $lsx_archive = 1; ?>
29
30
			<?php /* Start the Loop */ ?>
31
			<?php while ( have_posts() ) : the_post(); ?>
32
33
				<?php
34
					/* Include the Post-Format-specific template for the content.
35
					 * If you want to override this in a child theme, then include a file
36
					 * called content-___.php (where ___ is the Post Format name) and that will be used instead.
37
					 */
38
					get_template_part( 'content', get_post_format() );
39
				?>
40
41
			<?php endwhile; ?>
42
43
			<?php lsx_paging_nav(); ?>
44
45
		<?php else : ?>
46
47
			<?php get_template_part( 'content', 'none' ); ?>
48
49
		<?php endif; $lsx_archive = 0; ?>
50
51
		<?php lsx_content_bottom(); ?>
52