evolve_woocommerce_after_single_product_summary

The evolve evolve woocommerce after single product summary function.

Description

evolve_woocommerce_after_single_product_summary(); 

Usage

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

Defined (1)

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

/library/woo-config.php  
  1. function evolve_woocommerce_after_single_product_summary() { 
  2.  
  3. $woocommerce_social_links = evolve_get_option('evl_woocommerce_social_links', '1'); 
  4. $nofollow_social_links = evolve_get_option('evl_nofollow_social_links', '0'); 
  5. $social = ''; 
  6. $nofollow = ''; 
  7. if ($nofollow_social_links) { 
  8. $nofollow = ' rel="nofollow"'; 
  9. if ($woocommerce_social_links): 
  10.  
  11. $social .= '<ul class="social-share"> 
  12. <li class="facebook"> 
  13. <a target="_blank" class="tipsytext" title="' . __('Share On', 'evolve') . ' Facebook" href="http://www.facebook.com/sharer.php?m2w&s=100&p[url]=' . get_permalink() . '&p[title]=' . wp_strip_all_tags(get_the_title(), true) . '" target="_blank"' . $nofollow . '> 
  14. <i class="t4p-icon-social-facebook"></i>  
  15. </a> 
  16. </li> 
  17. <li class="twitter"> 
  18. <a target="_blank" class="tipsytext" title="' . __('Share On', 'evolve') . ' Twitter" href="https://twitter.com/share?text=' . wp_strip_all_tags(get_the_title(), true) . ' ' . get_permalink() . '" target="_blank"' . $nofollow . '> 
  19. <i class="t4p-icon-social-twitter"></i>  
  20. </a> 
  21. </li> 
  22. <li class="pinterest">'; 
  23. $full_image = wp_get_attachment_image_src(get_post_thumbnail_id(), 'full'); 
  24. $social .= '<a target="_blank" class="tipsytext" title="' . __('Pin to', 'evolve') . ' Pinterest" href="http://pinterest.com/pin/create/button/?url=' . urlencode(wp_strip_all_tags(get_the_title(), true)) . '&description=' . urlencode(get_the_title()) . '&media=' . urlencode($full_image[0]) . '" target="_blank"' . $nofollow . '> 
  25. <i class="t4p-icon-social-pinterest"></i>  
  26. </a> 
  27. </li> 
  28. <li class="email"> 
  29. <a target="_blank" class="tipsytext" title="' . __('Email to a Friend', 'evolve') . '" href="mailto:?subject=' . wp_strip_all_tags(get_the_title(), true) . '&body=' . get_permalink() . '"> 
  30. <i class="t4p-icon-social-envelope-o"></i>  
  31. </a> 
  32. </li> 
  33. </ul>'; 
  34. endif; 
  35. $social .= '<div style="clear:both;"></div>'; 
  36.  
  37. echo $social;