show_label( 'on_image' );
}
return $html;
}
public static function betheme_woocommerce_placeholder_img( $image_html, $size, $dimensions ) {
if ( $size === 'shop_catalog' ) {
return $image_html . AWL_Label_Display::instance()->show_label( 'on_image' );
}
return $image_html;
}
public static function woocommerce_product_get_image( $image, $obj, $size ) {
global $wp_current_filter;
if ( in_array( 'woocommerce_before_shop_loop_item_title', $wp_current_filter ) ) {
if ( strpos( $image, '
' . $image . AWL_Label_Display::instance()->show_label( 'on_image' ) . '
';
}
}
return $image;
}
public static function before_loop_title( $title ) {
global $wp_current_filter;
if ( in_array( 'woocommerce_before_shop_loop_item_title', $wp_current_filter ) || in_array( 'woocommerce_shop_loop_item_title', $wp_current_filter ) || in_array( 'woocommerce_before_shop_loop_item', $wp_current_filter ) ) {
return AWL_Label_Display::instance()->show_label( 'before_title' ) . $title;
}
return $title;
}
public static function wrap_thumb_container_action() {
echo '' . AWL_Label_Display::instance()->show_label( 'on_image' ) . '
';
}
public static function return_empty_string( $text ) {
return '';
}
public static function xstore_single_image( $html ) {
if ( strpos( $html, 'thumbnail-item' ) === false ) {
$html = $html . AWL_Label_Display::instance()->show_label( 'on_image' );
}
return $html;
}
}
endif;