| @@ -1,26 +1,26 @@ | ||
| 1 | -<?php | |
| 2 | -/** | |
| 3 | - * @author ThimPress | |
| 4 | - * @package LearnPress/Templates | |
| 5 | - * @version 4.0.0 | |
| 6 | - * @deprecated 4.2.6.4 | |
| 7 | - */ | |
| 8 | -return; | |
| 9 | - | |
| 10 | -defined( 'ABSPATH' ) || exit(); | |
| 11 | - | |
| 12 | -if ( ! isset( $order ) ) { | |
| 13 | - return; | |
| 14 | -} | |
| 15 | - | |
| 16 | -$profile = LP_Profile::instance(); | |
| 17 | -?> | |
| 18 | - | |
| 19 | -<?php if ( $order->get_user_id() != get_current_user_id() ) : ?> | |
| 20 | - <p><?php printf( __( 'This order is paid for %s', 'learnpress' ), $order->get_user_email() ); ?></p> | |
| 21 | -<?php else : ?> | |
| 22 | - <?php $checkout_email = $order->get_checkout_email(); ?> | |
| 23 | - <?php if ( $checkout_email && $checkout_email != $profile->get_user()->get_email() ) : ?> | |
| 24 | - <p><?php printf( __( 'This order is paid by %s', 'learnpress' ), $order->get_checkout_email() ); ?></p> | |
| 25 | - <?php endif; ?> | |
| 26 | -<?php endif; ?> | |
| 1 | +<?php | |
| 2 | +/** | |
| 3 | + * @author ThimPress | |
| 4 | + * @package LearnPress/Templates | |
| 5 | + * @version 4.0.0 | |
| 6 | + * @deprecated 4.2.6.4 | |
| 7 | + */ | |
| 8 | +return; | |
| 9 | + | |
| 10 | +defined( 'ABSPATH' ) || exit(); | |
| 11 | + | |
| 12 | +if ( ! isset( $order ) ) { | |
| 13 | + return; | |
| 14 | +} | |
| 15 | + | |
| 16 | +$profile = LP_Profile::instance(); | |
| 17 | +?> | |
| 18 | + | |
| 19 | +<?php if ( $order->get_user_id() != get_current_user_id() ) : ?> | |
| 20 | + <p><?php printf( __( 'This order is paid for %s', 'learnpress' ), $order->get_user_email() ); ?></p> | |
| 21 | +<?php else : ?> | |
| 22 | + <?php $checkout_email = $order->get_checkout_email(); ?> | |
| 23 | + <?php if ( $checkout_email && $checkout_email != $profile->get_user()->get_email() ) : ?> | |
| 24 | + <p><?php printf( __( 'This order is paid by %s', 'learnpress' ), $order->get_checkout_email() ); ?></p> | |
| 25 | + <?php endif; ?> | |
| 26 | +<?php endif; ?> | |