woocommerce/plugins/woocommerce-blocks/patterns/product-collections-feature...

52 lines
4.4 KiB
PHP
Raw Normal View History

<?php
/**
Consistent Pattern Titles (https://github.com/woocommerce/woocommerce-blocks/pull/9814) * Update featured-category-cover-image.php * Update featured-category-focus.php * Update featured-category-triple.php * Update featured-products-5-cols.php * Update filters.php * Update footer-large-dark.php * Update footer-large.php * Update footer-simple-dark.php * Update footer-simple.php * Update footer-simple-menu-and-cart.php * Update footer-with-2-menus-dark.php * Update footer-with-2-menus.php * Update footer-with-3-menus.php * Update header-centered-search-pattern.php * Update header-essential-dark.php * Update header-essential.php * Update header-large-dark.php * Update header-large.php * Update header-minimal.php * Update hero-product-3-split.php * Update hero-product-chessboard.php * Update hero-product-split.php * Update just-arrived-full-hero.php * Update no-products-found.php * Update product-collections-featured-collection.php * Update product-collections-featured-collections.php * Update product-collections-newest-arrivals.php * Update product-details-listing.php * Update product-details-pattern.php * Update product-featured-2-columns.php * Update product-hero-2-col-2-row.php * Update product-hero.php * Update product-listing-with-gallery-and-description.php * Update product-query-1-1-image-4-column-products-row.php * Update product-query-3-column-product-row.php * Update product-query-4-column-product-row.php * Update product-query-large-image-product-gallery.php * Update product-query-minimal-5-column-products-row.php * Update product-query-minimal-product-list.php * Update product-query-product-gallery.php * Update product-query-product-list-with-1-1-images.php * Update product-query-product-list-with-full-product-description.php * Update product-search-form.php * Update shop-by-price.php * Update store-info-alt-image-and-text.php * Update testimonials-3-columns.php * Update testimonials-single.php * Create readme.md * Update featured-category-cover-image.php * Update featured-category-focus.php * Update featured-category-triple.php * Update featured-products-5-cols.php * Update filters.php * Update footer-large-dark.php * Update footer-large.php * Update testimonials-single.php * Update testimonials-3-columns.php * Update store-info-alt-image-and-text.php * Update shop-by-price.php * Update readme.md * Update product-search-form.php * Update product-query-product-list-with-full-product-description.php * Update product-query-product-list-with-1-1-images.php * Update product-query-product-gallery.php * Update product-query-minimal-product-list.php * Update footer-simple-dark.php * Update footer-simple-menu-and-cart.php * Update footer-simple.php * Update footer-with-2-menus-dark.php * Update footer-with-2-menus.php * Update footer-with-3-menus.php * Update product-query-minimal-5-column-products-row.php * Update product-query-large-image-product-gallery.php * Update product-query-4-column-product-row.php * Update product-query-3-column-product-row.php * Update product-query-1-1-image-4-column-products-row.php * Update product-listing-with-gallery-and-description.php * Update product-hero.php * Update product-hero-2-col-2-row.php * Update product-featured-2-columns.php * Update product-details-pattern.php * Update product-details-listing.php * Update product-collections-newest-arrivals.php * Update product-collections-featured-collections.php * Update product-collections-featured-collection.php * Update no-products-found.php * Update just-arrived-full-hero.php * Update hero-product-split.php * Update hero-product-chessboard.php * Update hero-product-3-split.php * Update header-minimal.php * Update header-large.php * Update header-large-dark.php * Update header-essential.php * Update header-essential-dark.php * Update header-centered-search-pattern.php * Update readme.md * Update and rename readme.md to README.md * Update patterns/README.md Co-authored-by: Karol Manijak <karol.manijak@automattic.com> --------- Co-authored-by: Karol Manijak <karol.manijak@automattic.com> Co-authored-by: Niels Lange <info@nielslange.de>
2023-06-21 07:50:12 +00:00
* Title: Product Collections Featured Collection
* Slug: woocommerce-blocks/product-collections-featured-collection
* Categories: WooCommerce
* Block Types: core/query/woocommerce/product-query
*/
?>
<!-- wp:columns {"align":"wide","style":{"color":{"background":"#333333"},"spacing":{"padding":{"top":"1.3rem","right":"1.3rem","bottom":"1.3rem","left":"1.3rem"}}},"textColor":"white"} -->
<div class="wp-block-columns alignwide has-white-color has-text-color has-background" style="background-color:#333333;padding-top:1.3rem;padding-right:1.3rem;padding-bottom:1.3rem;padding-left:1.3rem">
<!-- wp:column {"verticalAlignment":"center","width":"33.33%","style":{"spacing":{"padding":{"right":"var:preset|spacing|40","left":"var:preset|spacing|40"}}}} -->
<div class="wp-block-column is-vertically-aligned-center" style="padding-right:var(--wp--preset--spacing--40);padding-left:var(--wp--preset--spacing--40);flex-basis:33.33%">
<!-- wp:heading {"textAlign":"center","style":{"typography":{"fontStyle":"normal","fontWeight":"700"},"color":{"text":"#ffffff"}},"fontSize":"x-large"} -->
<h2 class="wp-block-heading has-text-align-center has-text-color has-x-large-font-size" style="color:#ffffff;font-style:normal;font-weight:700">
<?php echo wp_kses( __( 'This week\'s popular products', 'woo-gutenberg-products-block' ), array() ); ?>
</h2>
<!-- /wp:heading -->
</div>
<!-- /wp:column -->
<!-- wp:column {"verticalAlignment":"center","width":"66.66%"} -->
<div class="wp-block-column is-vertically-aligned-center" style="flex-basis:66.66%">
<!-- wp:query {"queryId":5,"query":{"perPage":"3","pages":0,"offset":0,"postType":"product","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false,"__woocommerceAttributes":[],"__woocommerceStockStatus":["instock","onbackorder"]},"displayLayout":{"type":"flex","columns":3},"namespace":"woocommerce/product-query"} -->
<div class="wp-block-query">
<!-- wp:post-template {"__woocommerceNamespace":"woocommerce/product-query/product-template"} -->
<!-- wp:group {"style":{"spacing":{"padding":{"top":"0","right":"0","bottom":"0","left":"0"},"blockGap":"0"},"color":{"background":"#484848"},"border":{"radius":{"topLeft":"0px","topRight":"0px","bottomLeft":"4px","bottomRight":"4px"}}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch"}} -->
<div class="wp-block-group has-background" style="border-top-left-radius:0px;border-top-right-radius:0px;border-bottom-left-radius:4px;border-bottom-right-radius:4px;background-color:#484848;padding-top:0;padding-right:0;padding-bottom:0;padding-left:0">
<!-- wp:group {"style":{"border":{"radius":{"topLeft":"4px","topRight":"4px"},"color":"#ffffff","style":"solid","width":"3px"},"spacing":{"padding":{"top":"0","right":"0","bottom":"0","left":"0"},"blockGap":"0"}},"layout":{"type":"flex","orientation":"vertical"}} -->
<div class="wp-block-group has-border-color" style="border-color:#ffffff;border-style:solid;border-width:3px;border-top-left-radius:4px;border-top-right-radius:4px;padding-top:0;padding-right:0;padding-bottom:0;padding-left:0">
<!-- wp:woocommerce/product-image {"imageSizing":"thumbnail","isDescendentOfQueryLoop":true,"style":{"spacing":{"margin":{"top":"0","right":"0","bottom":"0","left":"0"}}}} /-->
</div>
<!-- /wp:group -->
<!-- wp:group {"style":{"spacing":{"blockGap":"0","padding":{"top":"20px","right":"20px","left":"20px","bottom":"10px"}},"elements":{"link":{"color":{"text":"var:preset|color|background"}}}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"left","verticalAlignment":"center"}} -->
<div class="wp-block-group has-link-color" style="padding-top:20px;padding-right:20px;padding-bottom:10px;padding-left:20px">
<!-- wp:woocommerce/product-price {"isDescendentOfQueryLoop":true,"fontFamily":"system-font","style":{"typography":{"fontSize":"16px","fontStyle":"normal","fontWeight":"700"},"color":{"text":"#ffffff"}}} /-->
<!-- wp:post-title {"level":3,"isLink":true,"style":{"spacing":{"margin":{"bottom":"0.75rem","top":"0"}},"typography":{"fontStyle":"normal","fontWeight":"300","fontSize":"16px","textDecoration":"none"},"color":{"text":"#ffffff"}},"__woocommerceNamespace":"woocommerce/product-query/product-title"} /-->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:group -->
<!-- /wp:post-template -->
</div>
<!-- /wp:query -->
</div>
<!-- /wp:column -->
</div>
<!-- /wp:columns -->