Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. if ( ! function_exists( 'jas_claue_wc_my_account' ) ) {
  2. function jas_claue_wc_my_account() {
  3. $output = '';
  4.  
  5. if ( cs_get_option( 'header-my-account-icon' ) ) {
  6. $output .= '<div class="jas-my-account hidden-xs ts__05 pr">';
  7. $output .= '<a class="cb chp db" href="' . esc_url( get_permalink( get_option( 'woocommerce_myaccount_page_id' ) ) ) . '"><i class="pe-7s-user"></i></a>';
  8. $output .= '<ul class="pa tc">';
  9. if ( is_user_logged_in() ) {
  10. $output .= '<li><a class="db cg chp" href="' . esc_url( get_permalink( get_option( 'woocommerce_myaccount_page_id' ) ) ) . '">' . esc_html__( 'Dashboard', 'claue' ) . '</a></li>';
  11. $output .= '<li><a class="db cg chp" href="' . esc_url( home_url( '/orders-tracking/' ) ) . '">' . esc_html__( 'Order Tracking', 'claue' ) . '</a></li>';
  12. $output .= '<li><a class="db cg chp" href="' . esc_url( wp_logout_url() ) . '">' . esc_html__( 'Logout', 'claue' ) . '</a></li>';
  13. } else {
  14. $output .= '<li><a class="db cg chp" href="' . esc_url( get_permalink( get_option( 'woocommerce_myaccount_page_id' ) ) ) . '">' . esc_html__( 'Login', 'claue' ) . '</a></li>';
  15. }
  16. $output .= '</ul>';
  17. $output .= '</div>';
  18. }
  19.  
  20. return apply_filters( 'jas_claue_wc_my_account', $output );
  21. }
  22. }