Code Duplication    Length = 14-16 lines in 2 locations

includes/class-sensei-wc.php 1 location

@@ 395-408 (lines=14) @@
392
393
        global $post;
394
395
        if( self::is_course_in_cart( $post->ID ) ){ ?>
396
397
            <div class="sensei-message info">
398
                <?php
399
400
                $cart_link =  '<a class="cart-complete" href="' . WC()->cart->get_checkout_url()
401
                              . '" title="' . __('complete purchase', 'woothemes-sensei') . '">'
402
                              . __('complete the purchase', 'woothemes-sensei') . '</a>';
403
404
                echo sprintf(  __('You have already added this Course to your cart. Please %1$s to access the course.', 'woothemes-sensei'), $cart_link );
405
406
                ?>
407
            </div>
408
        <?php }
409
410
    } // End sensei_woocommerce_in_cart_message()
411

includes/class-sensei-lesson.php 1 location

@@ 3526-3541 (lines=16) @@
3523
3524
                            </div>
3525
3526
                    <?php } else { ?>
3527
3528
                        <div class="sensei-message info">
3529
3530
                            <?php
3531
                            $course_link = '<a href="' . esc_url( get_permalink( $course_id ) )
3532
                                            . '"title="' . __( 'Sign Up', 'woothemes-sensei' )
3533
                                            . '">' . __( 'course', 'woothemes-sensei' )
3534
                                            . '</a>';
3535
3536
                            echo  sprintf( __( 'Please purchase the %1$s before starting the lesson.', 'woothemes-sensei' ), $course_link );
3537
3538
                            ?>
3539
3540
                        </div>
3541
                    <?php } ?>
3542
3543
                <?php } else { ?>
3544