Guest User

Untitled

a guest
Aug 30th, 2017
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. function jas_claue_wc_my_account() {
  2. return;
  3. }
  4.  
  5. if ( ! function_exists( 'jas_claue_child_wc_my_account' ) ) {
  6. function jas_claue_child_wc_my_account() {
  7. $output = '';
  8.  
  9. if ( cs_get_option( 'header-my-account-icon' ) ) {
  10. $output .= '<div class="jas-my-account hidden-xs ts__05 pr">';
  11. $output .= '<a class="cb chp db" href="' . esc_url( get_permalink( get_option( 'woocommerce_myaccount_page_id' ) ) ) . '"><i class="pe-7s-user"></i></a>';
  12. $output .= '<ul class="pa tc">';
  13. if ( is_user_logged_in() ) {
  14. $output .= '<li><a class="db cg chp" href="' . esc_url( get_permalink( get_option( 'woocommerce_myaccount_page_id' ) ) ) . '">' . esc_html__( 'Dashboard', 'claue' ) . '</a></li>';
  15. $output .= '<li><a class="db cg chp" href="' . esc_url( home_url( '/orders-tracking/' ) ) . '">' . esc_html__( 'Order Tracking', 'claue' ) . '</a></li>';
  16. $output .= '<li><a class="db cg chp" href="' . esc_url( wp_logout_url() ) . '">' . esc_html__( 'Logout', 'claue' ) . '</a></li>';
  17. } else {
  18. $output .= '<li><a class="db cg chp" href="' . esc_url( get_permalink( get_option( 'woocommerce_myaccount_page_id' ) ) ) . '">' . esc_html__( 'Login / Register', 'claue' ) . '</a></li>';
  19. }
  20. $output .= '</ul>';
  21. $output .= '</div>';
  22. }
  23.  
  24. return apply_filters( 'jas_claue_child_wc_my_account', $output );
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment