| 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.0 |
| 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 printf( __( 'Logged in as <a href="%1$s">%2$s</a>.', 'learnpress' ), get_edit_user_link(), $user_identity ); ?> |
| 24 |
|
| 25 |
<a href="<?php echo esc_url_raw( wp_logout_url( get_permalink() ) ); ?>" title="<?php esc_attr_e( 'Log out of this account', 'learnpress' ); ?>"> |
| 26 |
<?php esc_html_e( 'Log out »', 'learnpress' ); ?> |
| 27 |
</a> |
| 28 |
</p> |
| 29 |
</div> |
| 30 |
|