banner.php
2 years ago
coming-soon-entire-site.php
1 year ago
coming-soon-store-only.php
2 years ago
coming-soon.php
2 years ago
discount-banner-with-image.php
2 years ago
discount-banner.php
2 years ago
featured-category-cover-image.php
2 years ago
featured-category-focus.php
2 years ago
featured-category-triple.php
2 years ago
featured-products-fresh-and-tasty.php
2 years ago
filters.php
2 years ago
footer-large-dark.php
2 years ago
footer-large.php
2 years ago
footer-simple-dark.php
2 years ago
footer-simple-menu.php
2 years ago
footer-simple.php
2 years ago
footer-with-2-menus-dark.php
2 years ago
footer-with-2-menus.php
2 years ago
footer-with-3-menus.php
2 years ago
header-centered-pattern.php
2 years ago
header-essential-dark.php
2 years ago
header-essential.php
2 years ago
header-large-dark.php
2 years ago
header-large.php
2 years ago
header-minimal.php
2 years ago
hero-product-3-split.php
2 years ago
hero-product-chessboard.php
2 years ago
hero-product-split.php
2 years ago
just-arrived-full-hero.php
2 years ago
no-products-found-filters.php
1 year ago
no-products-found.php
2 years ago
product-collection-3-columns.php
2 years ago
product-collection-4-columns.php
2 years ago
product-collection-5-columns.php
2 years ago
product-collection-banner.php
2 years ago
product-collection-featured-products-5-columns.php
2 years ago
product-collection-full-grid.php
2 years ago
product-collection-grid.php
2 years ago
product-collection-rows.php
2 years ago
product-collection-simple-grid.php
2 years ago
product-collections-featured-collection.php
2 years ago
product-collections-featured-collections.php
2 years ago
product-collections-newest-arrivals.php
2 years ago
product-details-listing.php
2 years ago
product-details-pattern.php
2 years ago
product-featured-2-columns.php
2 years ago
product-hero-2-col-2-row.php
2 years ago
product-hero.php
2 years ago
product-listing-with-gallery-and-description.php
2 years ago
product-query-4-column-product-row.php
2 years ago
product-query-large-image-product-gallery.php
2 years ago
product-query-minimal-product-list.php
2 years ago
product-query-product-gallery.php
2 years ago
product-query-product-list-with-1-1-images.php
2 years ago
product-query-product-list-with-full-product-description.php
2 years ago
product-search-form.php
1 year ago
related-products.php
2 years ago
shop-by-price.php
2 years ago
small-discount-banner-with-image.php
2 years ago
social-follow-us-in-social-media.php
2 years ago
store-info-alt-image-and-text.php
2 years ago
testimonials-3-columns.php
2 years ago
testimonials-single.php
2 years ago
filters.php
68 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Title: Product Filters |
| 4 | * Slug: woocommerce-blocks/product-filters |
| 5 | * Categories: WooCommerce |
| 6 | * Block Types: woocommerce/active-filters, woocommerce/price-filter, woocommerce/attribute-filter, woocommerce/stock-filter |
| 7 | */ |
| 8 | ?> |
| 9 | |
| 10 | <!-- wp:woocommerce/filter-wrapper {"filterType":"active-filters"} --> |
| 11 | <div class="wp-block-woocommerce-filter-wrapper"><!-- wp:heading {"level":3} --> |
| 12 | <h3><?php esc_html_e( 'Active filters', 'woocommerce' ); ?></h3> |
| 13 | <!-- /wp:heading --> |
| 14 | |
| 15 | <!-- wp:woocommerce/active-filters {"heading":"","lock":{"remove":true}} --> |
| 16 | <div class="wp-block-woocommerce-active-filters is-loading" data-display-style="list" data-heading="" data-heading-level="3"><span aria-hidden="true" class="wc-block-active-filters__placeholder"></span></div> |
| 17 | <!-- /wp:woocommerce/active-filters --></div> |
| 18 | <!-- /wp:woocommerce/filter-wrapper --> |
| 19 | |
| 20 | <!-- wp:woocommerce/filter-wrapper {"filterType":"price-filter"} --> |
| 21 | <div class="wp-block-woocommerce-filter-wrapper"><!-- wp:heading {"level":3} --> |
| 22 | <h3><?php esc_html_e( 'Filter by price', 'woocommerce' ); ?></h3> |
| 23 | <!-- /wp:heading --> |
| 24 | |
| 25 | <!-- wp:woocommerce/price-filter {"heading":"","lock":{"remove":true}} --> |
| 26 | <div class="wp-block-woocommerce-price-filter is-loading" data-showinputfields="true" data-showfilterbutton="false" data-heading="" data-heading-level="3"><span aria-hidden="true" class="wc-block-product-categories__placeholder"></span></div> |
| 27 | <!-- /wp:woocommerce/price-filter --></div> |
| 28 | <!-- /wp:woocommerce/filter-wrapper --> |
| 29 | |
| 30 | <!-- wp:woocommerce/filter-wrapper {"filterType":"stock-filter"} --> |
| 31 | <div class="wp-block-woocommerce-filter-wrapper"><!-- wp:heading {"level":3} --> |
| 32 | <h3><?php esc_html_e( 'Filter by stock status', 'woocommerce' ); ?></h3> |
| 33 | <!-- /wp:heading --> |
| 34 | |
| 35 | <!-- wp:woocommerce/stock-filter {"heading":"","lock":{"remove":true}} --> |
| 36 | <div class="wp-block-woocommerce-stock-filter is-loading" data-show-counts="true" data-heading="" data-heading-level="3"><span aria-hidden="true" class="wc-block-product-stock-filter__placeholder"></span></div> |
| 37 | <!-- /wp:woocommerce/stock-filter --></div> |
| 38 | <!-- /wp:woocommerce/filter-wrapper --> |
| 39 | |
| 40 | <!-- wp:woocommerce/filter-wrapper {"filterType":"attribute-filter"} --> |
| 41 | <div class="wp-block-woocommerce-filter-wrapper"><!-- wp:heading {"level":3} --> |
| 42 | <h3><?php esc_html_e( 'Filter by attribute', 'woocommerce' ); ?></h3> |
| 43 | <!-- /wp:heading --> |
| 44 | |
| 45 | <?php |
| 46 | $attribute_id = 0; |
| 47 | |
| 48 | $attributes = wc_get_attribute_taxonomies(); |
| 49 | if ( ! empty( $attributes ) ) { |
| 50 | $attribute_id = reset( $attributes )->attribute_id; |
| 51 | } |
| 52 | ?> |
| 53 | |
| 54 | <!-- wp:woocommerce/attribute-filter {"attributeId":<?php echo esc_attr( $attribute_id ); ?>,"heading":"","lock":{"remove":true}} --> |
| 55 | <div class="wp-block-woocommerce-attribute-filter is-loading" data-attribute-id="<?php echo esc_attr( $attribute_id ); ?>" data-show-counts="true" data-query-type="or" data-heading="" data-heading-level="3"><span aria-hidden="true" class="wc-block-product-attribute-filter__placeholder"></span></div> |
| 56 | <!-- /wp:woocommerce/attribute-filter --></div> |
| 57 | <!-- /wp:woocommerce/filter-wrapper --> |
| 58 | |
| 59 | <!-- wp:woocommerce/filter-wrapper {"filterType":"rating-filter"} --> |
| 60 | <div class="wp-block-woocommerce-filter-wrapper"><!-- wp:heading {"level":3} --> |
| 61 | <h3><?php esc_html_e( 'Filter by rating', 'woocommerce' ); ?></h3> |
| 62 | <!-- /wp:heading --> |
| 63 | |
| 64 | <!-- wp:woocommerce/rating-filter {"lock":{"remove":true}} --> |
| 65 | <div class="wp-block-woocommerce-rating-filter is-loading" data-show-counts="true"><span aria-hidden="true" class="wc-block-product-rating-filter__placeholder"></span></div> |
| 66 | <!-- /wp:woocommerce/rating-filter --></div> |
| 67 | <!-- /wp:woocommerce/filter-wrapper --> |
| 68 |