| @@ -1,33 +1,33 @@ | ||
| 1 | -<?php | |
| 2 | -/** | |
| 3 | - * Template for displaying payment form for checkout page. | |
| 4 | - * | |
| 5 | - * This template can be overridden by copying it to yourtheme/learnpress/checkout/term-conditions.php. | |
| 6 | - * | |
| 7 | - * @author ThimPress | |
| 8 | - * @package Learnpress/Templates | |
| 9 | - * @version 4.0.0 | |
| 10 | - */ | |
| 11 | - | |
| 12 | -defined( 'ABSPATH' ) || exit(); | |
| 13 | - | |
| 14 | -$term_link = learn_press_get_page_link( 'term_conditions' ); | |
| 15 | -$term_text = learn_press_get_page_title( 'term_conditions' ); | |
| 16 | - | |
| 17 | -if ( ! $term_link ) { | |
| 18 | - return; | |
| 19 | -} | |
| 20 | - | |
| 21 | -if ( ! $term_text ) { | |
| 22 | - $term_text = esc_html__( 'Terms of Service', 'learnpress' ); | |
| 23 | -} | |
| 24 | -?> | |
| 25 | - | |
| 26 | -<p class="lp-terms-and-conditions"> | |
| 27 | - <?php | |
| 28 | - echo apply_filters( | |
| 29 | - 'learn_press_content_item_protected_message', | |
| 30 | - sprintf( __( 'By completing your purchase you agree to those <a href="%1$s" target="_blank">%2$s</a>.', 'learnpress' ), $term_link, $term_text ) | |
| 31 | - ); | |
| 32 | - ?> | |
| 33 | -</p> | |
| 1 | +<?php | |
| 2 | +/** | |
| 3 | + * Template for displaying payment form for checkout page. | |
| 4 | + * | |
| 5 | + * This template can be overridden by copying it to yourtheme/learnpress/checkout/term-conditions.php. | |
| 6 | + * | |
| 7 | + * @author ThimPress | |
| 8 | + * @package Learnpress/Templates | |
| 9 | + * @version 4.0.0 | |
| 10 | + */ | |
| 11 | + | |
| 12 | +defined( 'ABSPATH' ) || exit(); | |
| 13 | + | |
| 14 | +$term_link = learn_press_get_page_link( 'term_conditions' ); | |
| 15 | +$term_text = learn_press_get_page_title( 'term_conditions' ); | |
| 16 | + | |
| 17 | +if ( ! $term_link ) { | |
| 18 | + return; | |
| 19 | +} | |
| 20 | + | |
| 21 | +if ( ! $term_text ) { | |
| 22 | + $term_text = esc_html__( 'Terms of Service', 'learnpress' ); | |
| 23 | +} | |
| 24 | +?> | |
| 25 | + | |
| 26 | +<p class="lp-terms-and-conditions"> | |
| 27 | + <?php | |
| 28 | + echo apply_filters( | |
| 29 | + 'learn_press_content_item_protected_message', | |
| 30 | + sprintf( __( 'By completing your purchase you agree to those <a href="%1$s" target="_blank">%2$s</a>.', 'learnpress' ), $term_link, $term_text ) | |
| 31 | + ); | |
| 32 | + ?> | |
| 33 | +</p> | |