| 1 |
<?php |
| 2 |
/** |
| 3 |
* Displayed when user is trying to register but they're already logged in |
| 4 |
* |
| 5 |
* Override this template by copying it to yourtheme/propertyhive/account/already-logged-in.php. |
| 6 |
* |
| 7 |
* @author PropertyHive |
| 8 |
* @package PropertyHive/Templates |
| 9 |
* @version 1.0.0 |
| 10 |
*/ |
| 11 |
|
| 12 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly |
| 13 |
?> |
| 14 |
<p><?php |
| 15 |
esc_html_e( 'It looks like you\'re already logged in.', 'propertyhive' ); |
| 16 |
?></p> |
| 17 |
|
| 18 |
<?php |
| 19 |
if ( get_option( 'propertyhive_my_account_page_id', '' ) != '' ) |
| 20 |
{ |
| 21 |
// Login/registration is enabled. Show link to 'My Account' |
| 22 |
|
| 23 |
echo '<p>'; |
| 24 |
|
| 25 |
echo '<a href="' . esc_url(get_permalink( ph_get_page_id( 'my_account' ) )) . '">' . esc_html(__( 'Go To My Account', 'propertyhive' )) . '</a>'; |
| 26 |
|
| 27 |
echo '</p>'; |
| 28 |
} |
| 29 |
?> |