Created
February 15, 2017 06:47
-
-
Save ahmedeshaan/f7ace51357e45ee285dbac5fd4b845ad to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| Template name: WooCommerce - My Account | |
| This templates add My account to the sidebar. | |
| */ | |
| get_header(); ?> | |
| <?php do_action( 'flatsome_before_page' ); ?> | |
| <?php woocommerce_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 woocommerce_get_template('myaccount/account-user.php'); ?> | |
| <ul id="my-account-nav" class="account-nav nav nav-line nav-uppercase nav-vertical mt-half"> | |
| <?php //woocommerce_get_template('myaccount/account-links.php'); ?> | |
| <?php foreach ( wc_get_account_menu_items() as $endpoint => $label ) : ?> | |
| <li class="<?php echo wc_get_account_menu_item_classes( $endpoint ); ?>"> | |
| <a href="<?php echo esc_url( wc_get_account_endpoint_url( $endpoint ) ); ?>"><?php echo esc_html( $label ); ?></a> | |
| </li> | |
| <?php endforeach; ?> | |
| </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(); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment