evolve_woocommerce_view_dashboard

The evolve evolve woocommerce view dashboard function.

Description

evolve_woocommerce_view_dashboard( $args ); 

Parameters (1)

0. $args
The args.

Usage

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

Defined (1)

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

/library/woo-config.php  
  1. function evolve_woocommerce_view_dashboard($args) { 
  2. global $woocommerce, $current_user; 
  3. $woo_acc_msg_1 = evolve_get_option('evl_woo_acc_msg_1', 'Call us - <i class="t4p-icon-phone"></i> 7438 882 764'); 
  4. $woo_acc_msg_2 = evolve_get_option('evl_woo_acc_msg_2', 'Email us - <i class="t4p-icon-envelope-o"></i> contact@example.com'); 
  5. ?> 
  6. <div class="view_dashboard" <?php 
  7. if (isset($_SESSION['formvalue'])) { 
  8. echo 'style="display:none"'; 
  9. ?> > 
  10. <p> 
  11. <?php 
  12. echo sprintf(esc_attr__('Hello %s%s%s (not %2$s? %sSign out%s)', 'evolve'), '<strong>', esc_html($current_user->display_name), '</strong>', '<a href="' . esc_url(wc_get_endpoint_url('customer-logout', '', wc_get_page_permalink('myaccount'))) . '">', '</a>'); 
  13. ?> 
  14. </p> 
  15.  
  16. <p> 
  17. <?php 
  18. echo sprintf(esc_attr__('From your account dashboard you can view your %1$srecent orders%2$s, manage your %3$sshipping and billing addresses%2$s and %4$sedit your password and account details%2$s.', 'evolve'), '<a href="' . esc_url(wc_get_endpoint_url('orders')) . '">', '</a>', '<a href="' . esc_url(wc_get_endpoint_url('edit-address')) . '">', '<a href="' . esc_url(wc_get_endpoint_url('edit-account')) . '">'); 
  19. ?> 
  20. </p> 
  21. </div> 
  22. <?php