| 1 |
<?php |
| 2 |
/** |
| 3 |
* Displays the logged in message. |
| 4 |
* |
| 5 |
* Override this template by copying it to yourtheme/charitable/shortcodes/logged-in.php |
| 6 |
* |
| 7 |
* @author Studio 164a |
| 8 |
* @package Charitable/Templates/Account |
| 9 |
* @since 1.0.0 |
| 10 |
* @version 1.5.0 |
| 11 |
*/ |
| 12 |
|
| 13 |
// Exit if accessed directly. |
| 14 |
if ( ! defined( 'ABSPATH' ) ) { exit; } |
| 15 |
|
| 16 |
$message = isset( $view_args['logged_in_message'] ) |
| 17 |
? $view_args['logged_in_message'] |
| 18 |
: __( 'You are already logged in!', 'charitable' ); |
| 19 |
|
| 20 |
echo wpautop( $message ); |
| 21 |
|
| 22 |
?> |
| 23 |
<a href="<?php echo wp_logout_url( charitable_get_current_url() ) ?>"><?php _e( 'Logout.', 'charitable' ) ?></a> |
| 24 |
|