Code Duplication    Length = 15-16 lines in 3 locations

index.php 1 location

@@ 29-44 (lines=16) @@
26
27
                    /* Start the Loop */
28
29
                    while (have_posts()) {
30
31
                        the_post();
32
33
/*
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
if (get_post_type() != 'post') {
39
    get_template_part('template-parts/content', get_post_type());
40
} else {
41
    get_template_part('template-parts/content-post', get_post_format());
42
}
43
44
}
45
46
if (function_exists('podium_pagination')) {
47

single.php 1 location

@@ 23-38 (lines=16) @@
20
21
      <?php
22
23
        while (have_posts()) {
24
25
        the_post();
26
27
        if (get_post_type() != 'post') {
28
            get_template_part('template-parts/content-single', get_post_type());
29
        } else {
30
            get_template_part('template-parts/content-single-post', get_post_format());
31
        }
32
33
        the_post_navigation();
34
35
        // If comments are open or we have at least one comment, load up the comment template.
36
        comments_template();
37
38
        }
39
40
// End of the loop. ?>
41

archive.php 1 location

@@ 34-48 (lines=15) @@
31
                    <?php /* Start the Loop */?>
32
                    <?php
33
34
                    while (have_posts()) {
35
                        the_post();
36
37
                        /*
38
                         * Include the Post-Format-specific template for the content.
39
                         * If you want to override this in a child theme, then include a file
40
                         * called content-___.php (where ___ is the Post Format name) and that will be used instead.
41
                         */
42
                        if (get_post_type() != 'post') {
43
                            get_template_part('template-parts/content', get_post_type());
44
                        } else {
45
                            get_template_part('template-parts/content-post', get_post_format());
46
                        }
47
                    }
48
49
                // End while
50
51
                    if (function_exists('podium_pagination')) {