Code Duplication    Length = 30-33 lines in 3 locations

archive.php 1 location

@@ 22-54 (lines=33) @@
19
20
		<?php lsx_content_top(); ?>
21
22
		<?php if ( have_posts() ) : ?>
23
			
24
			<?php 
25
			$layout = get_theme_mod('lsx_layout','2cr');
26
			$layout = apply_filters( 'lsx_layout', $layout );
27
			if('1c' === $layout && !is_post_type_archive('tribe_events')){
28
				lsx_breadcrumbs();
29
			}
30
			?>
31
			
32
			<?php 
33
			?>			
34
35
			<?php /* Start the Loop */ ?>
36
			<?php while ( have_posts() ) : the_post(); ?>
37
38
				<?php
39
					/* Include the Post-Format-specific template for the content.
40
					 * If you want to override this in a child theme, then include a file
41
					 * called content-___.php (where ___ is the Post Format name) and that will be used instead.
42
					 */
43
					get_template_part( 'content', get_post_format() );
44
				?>
45
46
			<?php endwhile; ?>
47
			
48
			<?php lsx_paging_nav(); ?>
49
50
		<?php else : ?>
51
52
			<?php get_template_part( 'content', 'none' ); ?>
53
54
		<?php endif; ?>
55
56
		<?php lsx_content_bottom(); ?>
57

author.php 1 location

@@ 22-51 (lines=30) @@
19
20
		<?php lsx_content_top(); ?>
21
22
		<?php if ( have_posts() ) : ?>
23
24
			<?php 
25
			$layout = get_theme_mod('lsx_layout','2cr');
26
			$layout = apply_filters( 'lsx_layout', $layout );
27
			if('1c' === $layout){
28
				lsx_breadcrumbs();
29
			}
30
			?>			
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

search.php 1 location

@@ 20-49 (lines=30) @@
17
18
		<?php lsx_content_top(); ?>	
19
20
		<?php if ( have_posts() ) : global $lsx_archive; $lsx_archive = 1; ?>
21
		
22
			<?php 
23
			$layout = get_theme_mod('lsx_layout','2cr');
24
			$layout = apply_filters( 'lsx_layout', $layout );
25
			if('1c' === $layout){
26
				lsx_breadcrumbs();
27
			}
28
			?>	
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