evolve_woocommerce_account_dashboard

The evolve evolve woocommerce account dashboard function.

Description

evolve_woocommerce_account_dashboard(); 

Usage

  1. if ( !function_exists( 'evolve_woocommerce_account_dashboard' ) ) { 
  2. require_once '/library/woo-config.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = evolve_woocommerce_account_dashboard(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/library/woo-config.php  
  1. function evolve_woocommerce_account_dashboard() { 
  2.  
  3. global $woocommerce, $current_user; 
  4. $woo_acc_msg_1 = evolve_get_option('evl_woo_acc_msg_1', 'Call us - <i class="t4p-icon-phone"></i> 7438 882 764'); 
  5. $woo_acc_msg_2 = evolve_get_option('evl_woo_acc_msg_2', 'Email us - <i class="t4p-icon-envelope-o"></i> contact@example.com'); 
  6. ?> 
  7.  
  8. <p class="evolve_myaccount_user"> 
  9. <span class="myaccount_user_container"> 
  10. <span class="username"> 
  11. <?php 
  12. printf( 
  13. __('Hello, %s', 'evolve'), $current_user->display_name 
  14. ); 
  15. ?> 
  16. </span> 
  17. <?php if ($woo_acc_msg_1): ?> 
  18. <span class="msg"> 
  19. <?php echo $woo_acc_msg_1; ?> 
  20. </span> 
  21. <?php 
  22. endif; 
  23. if ($woo_acc_msg_2): 
  24. ?> 
  25. <span class="msg"> 
  26. <?php echo $woo_acc_msg_2; ?> 
  27. </span> 
  28. <?php endif; ?> 
  29. <span class="view-cart"> 
  30. <a class="button default medium submit t4p-button-default" href="<?php echo get_permalink(get_option('woocommerce_cart_page_id')); ?>"><?php _e('View Cart', 'evolve'); ?></a> 
  31. </span> 
  32. </span> 
  33. </p> 
  34. <div class="woocommerce-side-nav"> 
  35. <ul class="woocommerce-side-nav-ul evolve-myaccount-nav"> 
  36. <li <?php 
  37. if (isset($_SESSION['formvalue'])): 
  38. else: 
  39. echo 'class="active"'; 
  40. endif; 
  41. ?> 
  42. <a class="dashboard" href="#"> 
  43. <?php _e('Dashboard', 'evolve'); ?> 
  44. </a> 
  45. </li> 
  46.  
  47. <li> 
  48. <a class="downloads" href="#"> 
  49. <?php _e('View Downloads', 'evolve'); ?> 
  50. </a> 
  51. </li> 
  52.  
  53. <li> 
  54. <a class="orders" href="#"> 
  55. <?php _e('View Orders', 'evolve'); ?> 
  56. </a> 
  57. </li> 
  58.  
  59. <li <?php 
  60. if (isset($_SESSION['formvalue'])) { 
  61. echo 'class="active"'; 
  62. ?> 
  63. <a class="address" href="#"> 
  64. <?php _e('Change Address', 'evolve'); ?> 
  65. </a> 
  66. </li> 
  67.  
  68. <li> 
  69. <a class="account" href="#"> 
  70. <?php _e('Edit Account', 'evolve'); ?> 
  71. </a> 
  72. </li> 
  73.  
  74. </ul> 
  75. <ul class="woocommerce-side-nav-ul woocommerce-side-nav-logout"> 
  76. <li> 
  77. <a class="logout" href="<?php echo esc_url(wc_get_endpoint_url('customer-logout', '', wc_get_page_permalink('myaccount'))); ?>"> 
  78. <?php _e('Logout', 'evolve'); ?> 
  79. </a> 
  80. </li> 
  81. </ul> 
  82. </div> 
  83. <div class="woocommerce-content-box evolve-myaccount-data"> 
  84.  
  85. <?php