exists() ) { $product_permalink = $_product->is_visible() ? $_product->get_permalink() : ''; // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound ?>
     
×', esc_html__( 'Remove this item', 'botiga' ), esc_attr( $product_id ), esc_attr( $_product->get_sku() ), esc_attr( wp_create_nonce( 'botiga-wishlist-nonce' ) ) ) ); ?> get_image(); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound if ( ! $product_permalink ) { echo $thumbnail; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } else { printf( '%s', esc_url( $product_permalink ), $thumbnail ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } ?> get_name() . ' ' ); } else { echo wp_kses_post( sprintf( '%s', esc_url( $product_permalink ), $_product->get_name() ) ); } /** * Hook 'botiga_wishlist_after_item_name' * * @since 1.0.0 */ do_action( 'botiga_wishlist_after_item_name', $_product, $product_id ); ?> get_price() ) ); ?> is_in_stock() ) { /** * Hook 'botiga_wishlist_out_of_stock' * * @since 1.0.0 */ echo apply_filters( 'botiga_wishlist_out_of_stock', esc_html__( 'Out of Stock', 'botiga' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } else { /** * Hook 'botiga_wishlist_in_stock' * * @since 1.0.0 */ echo apply_filters( 'botiga_wishlist_in_stock', esc_html__( 'In Stock', 'botiga' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } ?> get_type() ) { // @codingStandardsIgnoreStart WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound case 'grouped': $button_class = ''; $button_text = __( 'View Products', 'botiga' ); $button_url = $_product->add_to_cart_url(); break; case 'variable': $button_class = ''; $button_text = __( 'Select Options', 'botiga' ); $button_url = $_product->add_to_cart_url(); break; case 'external': $button_class = ''; $button_text = $_product->get_button_text(); $button_url = $_product->get_product_url(); break; default: $button_class = 'botiga-custom-addtocart'; $button_text = __( 'Add to Cart', 'botiga' ); $button_url = $_product->add_to_cart_url(); break; } // @codingStandardsIgnoreEnd WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound echo ''. esc_html( $button_text ) .''; ?>