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
53
54
55
56
57
58
59
|
<?php /* Template name: My Account This templates add Account menu to the sidebar. */
get_header();
do_action('woocommerce_before_main_content'); ?>
<div class="page-wrapper my-account"> <div class="row"> <div id="content" class="large-12 columns"> <?php if (NASA_CORE_USER_LOGGED) : ?> <div class="nasa-my-acc-content"> <h4 class="heading-title hidden-tag"> <?php echo get_the_title(); ?> </h4>
<?php if (shortcode_exists('woocommerce_my_account')): global $post; echo !isset($post->post_content) || !has_shortcode($post->post_content, 'woocommerce_my_account') ? do_shortcode('[woocommerce_my_account]') . '<div class="nasa-clear-both"></div>' : ''; endif;
while (have_posts()) : the_post(); the_content(); endwhile; // end of the loop. ?> </div> <?php else : ?> <h1 class="nasa-title-my-account-page margin-top-20 text-center"> <?php echo esc_html__('Login/Register', 'elessi-theme'); ?> </h1> <?php if (shortcode_exists('woocommerce_my_account')): global $post; echo !isset($post->post_content) || !has_shortcode($post->post_content, 'woocommerce_my_account') ? do_shortcode('[woocommerce_my_account]') . '<div class="nasa-clear-both"></div>' : ''; endif; while (have_posts()) : the_post(); the_content(); endwhile; // end of the loop. ?> <?php endif; ?>
</div><!-- end #content large-12 --> </div><!-- end row --> </div><!-- end page-right-sidebar container -->
<?php do_action('nasa_after_page_wrapper');
wp_reset_postdata(); get_footer();
|