' : '';
$classes = get_option( 'yith_wcwl_use_button' ) == 'yes' ? 'class="add_to_wishlist single_add_to_wishlist button alt"' : 'class="add_to_wishlist"';
$html = '
';
$html .= apply_filters( 'yith_wcwl_socials_share_title', '
' . __( 'Share on:', 'yith-woocommerce-wishlist' ) . '' );
$html .= '
';
if( get_option( 'yith_wcwl_share_fb' ) == 'yes' )
{ $html .= ' '; }
if( get_option( 'yith_wcwl_share_twitter' ) == 'yes' )
{ $html .= ''; }
if( get_option( 'yith_wcwl_share_pinterest' ) == 'yes' )
{ $html .= ' '; }
if( get_option( 'yith_wcwl_share_googleplus' ) == 'yes' )
{ $html .= ' '; }
if( get_option( 'yith_wcwl_share_email' ) == 'yes' )
{ $html .= ' '; }
$html .= '
';
$html .= '
';
return $html;
}
/**
* Adds classes to add-to-cart button
*
* @param $button_html string
* @param $product \WC_Product
* @return string
* @static
* @since 2.0.0
*/
public static function alter_add_to_cart_button( $button_html, $product ){
// retrieve options
$label_option = get_option( 'yith_wcwl_add_to_cart_text' );
$label = $product->is_type( 'variable' ) ? apply_filters( 'variable_add_to_cart_text', __('Select options', 'yith-woocommerce-wishlist') ) : apply_filters( 'yith_wcwl_add_to_cart_label', $label_option );
$icon = '';
if( get_option( 'yith_wcwl_frontend_css' ) != 'yes' && get_option( 'yith_wcwl_use_button' ) == 'yes' && get_option( 'yith_wcwl_add_to_cart_icon' ) != 'none' ) {
$icon = '