| @@ -1,35 +1,35 @@ | ||
| 1 | -<?php | |
| 2 | -/** | |
| 3 | - * Template for displaying logged in form. | |
| 4 | - * | |
| 5 | - * This template can be overridden by copying it to yourtheme/learnpress/checkout/form-logged-in.php. | |
| 6 | - * | |
| 7 | - * @author ThimPress | |
| 8 | - * @package Learnpress/Templates | |
| 9 | - * @version 4.0.1 | |
| 10 | - */ | |
| 11 | - | |
| 12 | -defined( 'ABSPATH' ) || exit(); | |
| 13 | - | |
| 14 | -if ( ! is_user_logged_in() ) { | |
| 15 | - return; | |
| 16 | -} | |
| 17 | - | |
| 18 | -global $user_identity; | |
| 19 | -?> | |
| 20 | - | |
| 21 | -<div id="checkout-account-logged-in" class="lp-checkout-block left"> | |
| 22 | - <p> | |
| 23 | - <?php | |
| 24 | - printf( | |
| 25 | - __( 'Logged in as <a href="%1$s">%2$s</a>.', 'learnpress' ), | |
| 26 | - LP_Page_Controller::get_link_page( 'profile' ), | |
| 27 | - $user_identity | |
| 28 | - ); | |
| 29 | - ?> | |
| 30 | - | |
| 31 | - <a href="<?php echo esc_url_raw( wp_logout_url( get_permalink() ) ); ?>" title="<?php esc_attr_e( 'Log out of this account', 'learnpress' ); ?>"> | |
| 32 | - <?php esc_html_e( 'Log out »', 'learnpress' ); ?> | |
| 33 | - </a> | |
| 34 | - </p> | |
| 35 | -</div> | |
| 1 | +<?php | |
| 2 | +/** | |
| 3 | + * Template for displaying logged in form. | |
| 4 | + * | |
| 5 | + * This template can be overridden by copying it to yourtheme/learnpress/checkout/form-logged-in.php. | |
| 6 | + * | |
| 7 | + * @author ThimPress | |
| 8 | + * @package Learnpress/Templates | |
| 9 | + * @version 4.0.1 | |
| 10 | + */ | |
| 11 | + | |
| 12 | +defined( 'ABSPATH' ) || exit(); | |
| 13 | + | |
| 14 | +if ( ! is_user_logged_in() ) { | |
| 15 | + return; | |
| 16 | +} | |
| 17 | + | |
| 18 | +global $user_identity; | |
| 19 | +?> | |
| 20 | + | |
| 21 | +<div id="checkout-account-logged-in" class="lp-checkout-block left"> | |
| 22 | + <p> | |
| 23 | + <?php | |
| 24 | + printf( | |
| 25 | + __( 'Logged in as <a href="%1$s">%2$s</a>.', 'learnpress' ), | |
| 26 | + LP_Page_Controller::get_link_page( 'profile' ), | |
| 27 | + $user_identity | |
| 28 | + ); | |
| 29 | + ?> | |
| 30 | + | |
| 31 | + <a href="<?php echo esc_url_raw( wp_logout_url( get_permalink() ) ); ?>" title="<?php esc_attr_e( 'Log out of this account', 'learnpress' ); ?>"> | |
| 32 | + <?php esc_html_e( 'Log out »', 'learnpress' ); ?> | |
| 33 | + </a> | |
| 34 | + </p> | |
| 35 | +</div> | |