| ×', 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(); $has_strong = true; break; case 'variable': $button_class = ''; $button_text = __( 'Select Options', 'botiga' ); $button_url = $_product->add_to_cart_url(); $has_strong = true; break; case 'external': $button_class = ''; $button_text = $_product->get_button_text(); $button_url = $_product->get_product_url(); $has_strong = true; break; default: $button_class = 'yes' === get_option( 'woocommerce_enable_ajax_add_to_cart' ) ? 'button add_to_cart_button ajax_add_to_cart' : 'add_to_cart_button'; $button_text = __( 'Add to Cart', 'botiga' ); $button_url = $_product->add_to_cart_url(); $has_strong = false; break; } // @codingStandardsIgnoreEnd WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound printf( '', esc_url( $button_url ), $has_strong ? esc_attr( $button_class ) . ' strong' : esc_attr( $button_class ), absint( $product_id ), esc_attr__( 'Loading...', 'botiga' ), esc_attr__( 'Added!', 'botiga' ), esc_attr( wp_create_nonce( 'botiga-custom-addtocart-nonce' ) ), esc_html( $button_text ), ); ?> |