PATH:
home
/
ediuae
/
agrivaingredients.com
/
wp-content
/
plugins
/
woocommerce
/
src
/
Blocks
/
BlockTypes
<?php namespace Automattic\WooCommerce\Blocks\BlockTypes; use Automattic\WooCommerce\Admin\Features\Features; /** * FilledMiniCartContentsBlock class. */ class FilledMiniCartContentsBlock extends AbstractInnerBlock { /** * Block name. * * @var string */ protected $block_name = 'filled-mini-cart-contents-block'; /** * Render the markup for the Filled Mini-Cart Contents block. * * @param array $attributes Block attributes. * @param string $content Block content. * @param WP_Block $block Block instance. * @return string Rendered block type output. */ protected function render( $attributes, $content, $block ) { if ( Features::is_enabled( 'experimental-iapi-mini-cart' ) ) { return $this->render_experimental_filled_mini_cart_contents( $attributes, $content, $block ); } return $content; } /** * Render the experimental interactivity API powered Filled Mini-Cart Contents block. * * @param array $attributes Block attributes. * @param string $content Block content. * @param WP_Block $block Block instance. * @return string Rendered block type output. */ protected function render_experimental_filled_mini_cart_contents( $attributes, $content, $block ) { $context = wp_json_encode( array( 'notices' => array(), ), JSON_NUMERIC_CHECK | JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_QUOT | JSON_HEX_AMP ); $wrapper_attributes = get_block_wrapper_attributes( array( 'data-wp-interactive' => 'woocommerce/mini-cart', 'data-wp-context' => 'woocommerce/store-notices::' . $context, 'data-wp-bind--hidden' => 'state.cartIsEmpty', ) ); ob_start(); ?> <div <?php echo $wrapper_attributes; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>> <div class="wc-block-components-notices" data-wp-interactive="woocommerce/store-notices" ><template data-wp-each--notice="context.notices" data-wp-each-key="context.notice.id" > <div class="wc-block-components-notice-banner" data-wp-class--is-error="state.isError" data-wp-class--is-success ="state.isSuccess" data-wp-class--is-info="state.isInfo" data-wp-class--is-dismissible="context.notice.dismissible" data-wp-bind--role="state.role" > <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" aria-hidden="true" focusable="false"> <path data-wp-bind--d="state.iconPath"></path> </svg> <div class="wc-block-components-notice-banner__content"> <span data-wp-init="callbacks.renderNoticeContent"></span> </div> <button data-wp-bind--hidden="!context.notice.dismissible" class="wc-block-components-button wp-element-button wc-block-components-notice-banner__dismiss contained" aria-label="<?php esc_attr_e( 'Dismiss this notice', 'woocommerce' ); ?>" data-wp-on--click="actions.removeNotice" > <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"> <path d="M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z" /> </svg> </button> </div> </template></div> <?php // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped echo $content; ?> </div> <?php return ob_get_clean(); } }
[+]
..
[-] CartItemsBlock.php
[edit]
[-] AllReviews.php
[edit]
[-] ProductFilterClearButton.php
[edit]
[-] CartOrderSummaryFeeBlock.php
[edit]
[-] CartCrossSellsBlock.php
[edit]
[-] CheckoutBillingAddressBlock.php
[edit]
[-] CartOrderSummaryTaxesBlock.php
[edit]
[-] ProductTag.php
[edit]
[-] CartExpressPaymentBlock.php
[edit]
[-] AbstractProductGrid.php
[edit]
[-] ProductSummary.php
[edit]
[-] AbstractBlock.php
[edit]
[-] CheckoutActionsBlock.php
[edit]
[-] CheckoutExpressPaymentBlock.php
[edit]
[-] ReviewsByCategory.php
[edit]
[-] CheckoutOrderSummaryBlock.php
[edit]
[-] ProductGalleryThumbnails.php
[edit]
[-] MiniCartTitleLabelBlock.php
[edit]
[-] ComingSoon.php
[edit]
[-] ClassicTemplate.php
[edit]
[+]
Accordion
[-] FeaturedProduct.php
[edit]
[-] ProductSKU.php
[edit]
[-] PaymentMethodIcons.php
[edit]
[-] PriceFilter.php
[edit]
[-] CheckoutAdditionalInformationBlock.php
[edit]
[-] CheckoutContactInformationBlock.php
[edit]
[-] CartOrderSummaryHeadingBlock.php
[edit]
[-] FilledMiniCartContentsBlock.php
[edit]
[-] ProductCategory.php
[edit]
[-] CartLineItemsBlock.php
[edit]
[-] ProductResultsCount.php
[edit]
[-] ReviewsByProduct.php
[edit]
[+]
ProductCollection
[-] AtomicBlock.php
[edit]
[-] ActiveFilters.php
[edit]
[-] CheckoutOrderSummaryCouponFormBlock.php
[edit]
[-] EnableBlockJsonAssetsTrait.php
[edit]
[-] CartOrderSummaryTotalsBlock.php
[edit]
[-] CheckoutTermsBlock.php
[edit]
[-] ProductOnSale.php
[edit]
[-] PageContentWrapper.php
[edit]
[-] CartOrderSummarySubtotalBlock.php
[edit]
[-] ProductSaleBadge.php
[edit]
[-] CategoryTitle.php
[edit]
[-] ProductGalleryLargeImage.php
[edit]
[-] ProductTemplate.php
[edit]
[-] ProductFilterCheckboxList.php
[edit]
[-] MiniCartCheckoutButtonBlock.php
[edit]
[-] ProductsByAttribute.php
[edit]
[-] EmailContent.php
[edit]
[-] ProductQuery.php
[edit]
[-] CheckoutShippingMethodBlock.php
[edit]
[-] ProductFilterAttribute.php
[edit]
[-] ProductDescription.php
[edit]
[-] CheckoutOrderSummaryDiscountBlock.php
[edit]
[-] MiniCartContents.php
[edit]
[-] ProductFilterTaxonomy.php
[edit]
[-] CheckoutOrderSummarySubtotalBlock.php
[edit]
[-] CheckoutOrderSummaryTaxesBlock.php
[edit]
[-] CartOrderSummaryCouponFormBlock.php
[edit]
[-] FeaturedItem.php
[edit]
[-] CartLink.php
[edit]
[-] CustomerAccount.php
[edit]
[-] SingleProduct.php
[edit]
[-] FeaturedCategory.php
[edit]
[-] FilterWrapper.php
[edit]
[-] EmptyCartBlock.php
[edit]
[-] ProductFilterChips.php
[edit]
[-] ProductImageGallery.php
[edit]
[-] ProductTopRated.php
[edit]
[+]
Reviews
[-] CartOrderSummaryShippingBlock.php
[edit]
[+]
AddToCartWithOptions
[-] ProductAverageRating.php
[edit]
[-] CheckoutShippingAddressBlock.php
[edit]
[-] ProductFilterActive.php
[edit]
[-] ProductPrice.php
[edit]
[-] ProductStockIndicator.php
[edit]
[-] CheckoutTotalsBlock.php
[edit]
[-] MiniCartCartButtonBlock.php
[edit]
[-] CheckoutPickupOptionsBlock.php
[edit]
[-] CartAcceptedPaymentMethodsBlock.php
[edit]
[-] ProductSpecifications.php
[edit]
[-] CheckoutOrderNoteBlock.php
[edit]
[-] ProductFilterPrice.php
[edit]
[-] ProductButton.php
[edit]
[-] MiniCart.php
[edit]
[-] HandpickedProducts.php
[edit]
[-] AttributeFilter.php
[edit]
[-] ProductMeta.php
[edit]
[-] MiniCartShoppingButtonBlock.php
[edit]
[-] ProductImage.php
[edit]
[+]
OrderConfirmation
[-] CheckoutOrderSummaryFeeBlock.php
[edit]
[-] MiniCartItemsBlock.php
[edit]
[-] RatingFilter.php
[edit]
[-] StockFilter.php
[edit]
[-] ProductRating.php
[edit]
[-] MiniCartTitleItemsCounterBlock.php
[edit]
[-] CheckoutFieldsBlock.php
[edit]
[-] StoreNotices.php
[edit]
[-] Checkout.php
[edit]
[-] CartOrderSummaryBlock.php
[edit]
[-] MiniCartTitleBlock.php
[edit]
[-] MiniCartProductsTableBlock.php
[edit]
[-] ProductFilterStatus.php
[edit]
[-] ProductDetails.php
[edit]
[-] CartTotalsBlock.php
[edit]
[-] CartCrossSellsProductsBlock.php
[edit]
[-] EmptyMiniCartContentsBlock.php
[edit]
[-] ProductSearch.php
[edit]
[-] CheckoutOrderSummaryTotalsBlock.php
[edit]
[-] ProductBestSellers.php
[edit]
[-] AddToCartForm.php
[edit]
[-] ProductFilterPriceSlider.php
[edit]
[-] Cart.php
[edit]
[-] RelatedProducts.php
[edit]
[-] ClassicShortcode.php
[edit]
[-] ProductFilterRating.php
[edit]
[-] AbstractDynamicBlock.php
[edit]
[-] ProductTitle.php
[edit]
[-] CheckoutShippingMethodsBlock.php
[edit]
[-] CheckoutOrderSummaryShippingBlock.php
[edit]
[-] CheckoutOrderSummaryCartItemsBlock.php
[edit]
[-] CheckoutPaymentBlock.php
[edit]
[-] ProductRatingStars.php
[edit]
[-] ProductGallery.php
[edit]
[-] NextPreviousButtons.php
[edit]
[-] ProductFilters.php
[edit]
[-] ProductRatingCounter.php
[edit]
[-] ProductCategories.php
[edit]
[-] FilledCartBlock.php
[edit]
[-] CategoryDescription.php
[edit]
[-] CatalogSorting.php
[edit]
[-] AbstractInnerBlock.php
[edit]
[-] Breadcrumbs.php
[edit]
[-] ProductNew.php
[edit]
[-] MiniCartFooterBlock.php
[edit]
[-] ProductFilterRemovableChips.php
[edit]
[-] CartOrderSummaryDiscountBlock.php
[edit]
[-] ProceedToCheckoutBlock.php
[edit]
[-] AllProducts.php
[edit]