-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathpage-my-account.php
52 lines (33 loc) · 1.13 KB
/
page-my-account.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
46
47
48
49
50
51
52
<?php
/*
Template name: WooCommerce - My Account
This templates add My account to the sidebar.
*/
get_header(); ?>
<?php do_action( 'flatsome_before_page' ); ?>
<?php wc_get_template('myaccount/header.php'); ?>
<div class="page-wrapper my-account mb">
<div class="container" role="main">
<?php if(is_user_logged_in()){?>
<div class="row vertical-tabs">
<div class="large-3 col col-border">
<?php wc_get_template('myaccount/account-user.php'); ?>
<ul id="my-account-nav" class="account-nav nav nav-line nav-uppercase nav-vertical mt-half">
<?php wc_get_template('myaccount/account-links.php'); ?>
</ul><!-- .account-nav -->
</div><!-- .large-3 -->
<div class="large-9 col">
<?php while ( have_posts() ) : the_post(); ?>
<?php the_content(); ?>
<?php endwhile; // end of the loop. ?>
</div><!-- .large-9 -->
</div><!-- .row .vertical-tabs -->
<?php } else { ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php the_content(); ?>
<?php endwhile; // end of the loop. ?>
<?php } ?>
</div><!-- .container -->
</div><!-- .page-wrapper.my-account -->
<?php do_action( 'flatsome_after_page' ); ?>
<?php get_footer(); ?>