Advertisement
Guest User

Untitled

a guest
Jan 7th, 2019
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. if ( ! function_exists( 'jas_claue_wc_shopping_cart' ) ) {
  2. function jas_claue_wc_shopping_cart() {
  3. global $woocommerce;
  4.  
  5. // Catalog mode
  6. $catalog_mode = cs_get_option( 'wc-catalog' );
  7.  
  8. if ( $catalog_mode ) return;
  9.  
  10. $output = '';
  11. $output .= '<div class="jas-cart pr">';
  12. $output .= '<a class="cart-contents pr cb chp db" href="'. WC()->cart->get_cart_url().'" title="' . esc_html( 'View your shopping cart', 'claue' ) . '">';
  13. $output .= '<i class="pe-7s-shopbag"></i>';
  14. $output .= '<span class="pa count bgb br__50 cw tc">' . esc_html( $woocommerce->cart->get_cart_contents_count() ) . '</span>';
  15. $output .= '</a>';
  16. $output .= '</div>';
  17. return apply_filters( 'jas_claue_wc_shopping_cart', $output );
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement