| 1 |
<?php |
| 2 |
/** |
| 3 |
* Template for displaying content of page for processing checkout feature. |
| 4 |
* |
| 5 |
* @author ThimPress |
| 6 |
* @package LearnPress/Templates |
| 7 |
* @version 4.0.1 |
| 8 |
*/ |
| 9 |
|
| 10 |
defined( 'ABSPATH' ) or die; |
| 11 |
|
| 12 |
if ( empty( $is_block_theme ) ) { |
| 13 |
get_header(); |
| 14 |
} |
| 15 |
|
| 16 |
do_action( 'learn-press/before-main-content' ); |
| 17 |
do_action( 'learnpress/template/pages/checkout/before-content' ); |
| 18 |
?> |
| 19 |
|
| 20 |
<div id="learn-press-checkout" class="lp-content-wrap"> |
| 21 |
|
| 22 |
<h2><?php the_title(); ?></h2> |
| 23 |
|
| 24 |
<?php |
| 25 |
/** |
| 26 |
* LP Hook |
| 27 |
* |
| 28 |
* @since 4.0.0 |
| 29 |
*/ |
| 30 |
do_action( 'learn-press/before-checkout-page' ); |
| 31 |
|
| 32 |
// Shortcode for displaying checkout form |
| 33 |
echo do_shortcode( '[learn_press_checkout]' ); |
| 34 |
|
| 35 |
/** |
| 36 |
* LP Hook |
| 37 |
* |
| 38 |
* @since 4.0.0 |
| 39 |
*/ |
| 40 |
do_action( 'learn-press/after-checkout-page' ); |
| 41 |
?> |
| 42 |
|
| 43 |
</div> |
| 44 |
|
| 45 |
<?php |
| 46 |
do_action( 'learnpress/template/pages/checkout/after-content' ); |
| 47 |
do_action( 'learn-press/after-main-content' ); |
| 48 |
|
| 49 |
if ( empty( $is_block_theme ) ) { |
| 50 |
get_footer(); |
| 51 |
} |
| 52 |
|