Code Duplication    Length = 6-6 lines in 2 locations

templates/globals/pagination-lesson.php 1 location

@@ 17-22 (lines=6) @@
14
$previous_lesson_id = absint( $nav_id_array['prev_lesson'] );
15
$next_lesson_id = absint( $nav_id_array['next_lesson'] );
16
// Output HTML
17
if ( ( 0 < $previous_lesson_id ) || ( 0 < $next_lesson_id ) ) { ?>
18
	<nav id="post-entries" class="post-entries fix">
19
        <?php if ( 0 < $previous_lesson_id ) { ?><div class="nav-prev fl"><a href="<?php echo esc_url( get_permalink( $previous_lesson_id ) ); ?>" rel="prev"><span class="meta-nav"></span> <?php echo get_the_title( $previous_lesson_id ); ?></a></div><?php } ?>
20
        <?php if ( 0 < $next_lesson_id ) { ?><div class="nav-next fr"><a href="<?php echo esc_url( get_permalink( $next_lesson_id ) ); ?>" rel="prev"><span class="meta-nav"></span> <?php echo get_the_title( $next_lesson_id ); ?></a></div><?php } ?>
21
    </nav><!-- #post-entries -->
22
<?php } ?>

templates/globals/pagination-quiz.php 1 location

@@ 17-22 (lines=6) @@
14
$previous_lesson_id = absint( $nav_id_array['prev_lesson'] );
15
$next_lesson_id = absint( $nav_id_array['next_lesson'] );
16
// Output HTML
17
if ( ( 0 < $previous_lesson_id ) || ( 0 < $next_lesson_id ) ) { ?>
18
    <nav id="post-entries" class="post-entries fix">
19
        <?php if ( 0 < $previous_lesson_id ) { ?><div class="nav-prev fl"><a href="<?php echo esc_url( get_permalink( $previous_lesson_id ) ); ?>" rel="prev"><span class="meta-nav"></span> <?php echo get_the_title( $previous_lesson_id ); ?></a></div><?php } ?>
20
        <?php if ( 0 < $next_lesson_id ) { ?><div class="nav-next fr"><a href="<?php echo esc_url( get_permalink( $next_lesson_id ) ); ?>" rel="prev"><span class="meta-nav"></span> <?php echo get_the_title( $next_lesson_id ); ?></a></div><?php } ?>
21
    </nav><!-- #post-entries -->
22
<?php } ?>