PluginProbe
Property Hive / trunk
Property Hive vtrunk
2.4.0 2.3.1 2.3.0 2.2.6 2.2.5 2.2.4 2.2.3 2.2.2 1.4.46 1.4.47 1.4.48 1.4.49 1.4.5 1.4.50 1.4.51 1.4.52 1.4.53 1.4.54 1.4.55 1.4.56 1.4.57 1.4.58 1.4.59 1.4.6 1.4.60 All 262 releases
propertyhive / templates / account / already-logged-in.php

already-logged-in.php in Property Hive trunk, at templates/account/already-logged-in.php

29 lines 761 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 ?>