-
Notifications
You must be signed in to change notification settings - Fork 0
/
user_dashboard_profile.php
45 lines (35 loc) · 1.17 KB
/
user_dashboard_profile.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
/**
* Template Name: User Dashboard Profile
* Created by PhpStorm.
* User: waqasriaz
* Date: 02/10/15
* Time: 4:22 PM
*/
/*-----------------------------------------------------------------------------------*/
// Social Logins
/*-----------------------------------------------------------------------------------*/
if( ( isset($_GET['code']) && isset($_GET['state']) ) ){
houzez_facebook_login($_GET);
} else if( isset( $_GET['openid_mode']) && $_GET['openid_mode'] == 'id_res' ) {
houzez_openid_login($_GET);
} else if (isset($_GET['code'])) {
houzez_google_oauth_login();
} else {
if ( !is_user_logged_in() ) {
wp_redirect( home_url() );
}
}
get_header();
if( isset( $_GET['agents'] ) && $_GET['agents'] == 'list' ) {
get_template_part('template-parts/dashboard/agents/main');
} elseif( isset( $_GET['agents'] ) && $_GET['agents'] == 'add_new' ) {
get_template_part('template-parts/dashboard/agents/add-agent');
} else {
get_template_part('template-parts/dashboard/profile/profile');
}
?>
<section class="dashboard-side-wrap">
<?php get_template_part('template-parts/dashboard/side-wrap'); ?>
</section>
<?php get_footer(); ?>