2023-05-02 14:16:44 +00:00
< ? php
/**
* Title : Featured Category Focus
* Slug : woocommerce - blocks / featured - category - focus
* Categories : WooCommerce
*/
2023-09-19 07:05:44 +00:00
2023-09-25 09:48:52 +00:00
use Automattic\WooCommerce\Blocks\Patterns\PatternsHelper ;
2023-10-13 08:08:35 +00:00
$category_title = $content [ 'titles' ][ 0 ][ 'default' ] ? ? '' ;
2023-05-02 14:16:44 +00:00
?>
2023-09-19 07:05:44 +00:00
2023-11-20 13:43:27 +00:00
<!-- wp : group { " align " : " full " , " style " : { " spacing " : { " padding " : { " top " : " var:preset|spacing|70 " , " right " : " var:preset|spacing|70 " , " bottom " : " var:preset|spacing|70 " , " left " : " var:preset|spacing|70 " }}}, " layout " : { " type " : " flex " , " orientation " : " vertical " , " justifyContent " : " center " , " flexWrap " : " wrap " }} -->
< div class = " wp-block-group alignfull " style = " padding-top:var(--wp--preset--spacing--70);padding-right:var(--wp--preset--spacing--70);padding-bottom:var(--wp--preset--spacing--70);padding-left:var(--wp--preset--spacing--70) " >
<!-- wp : image { " id " : 1 , " width " : " 469px " , " height " : " 348px " , " sizeSlug " : " full " , " linkDestination " : " none " , " scale " : " cover " } -->
2023-09-19 07:05:44 +00:00
< figure class = " wp-block-image size-full is-resized " >
2023-11-20 13:43:27 +00:00
< img src = " <?php echo esc_url( PatternsHelper::get_image_url( $images , 0, 'images/pattern-placeholders/white-black-black-and-white-photograph-monochrome-photography.jpg' ) ); ?> " alt = " <?php esc_attr_e( 'Placeholder image used to represent products being showcased in a featured category section.', 'woo-gutenberg-products-block' ); ?> " class = " wp-image-1 " style = " object-fit:cover;width:469px;height:348px " />
2023-09-19 07:05:44 +00:00
</ figure >
2023-05-02 14:16:44 +00:00
<!-- / wp : image -->
2023-05-12 13:05:36 +00:00
<!-- wp : paragraph { " align " : " center " , " style " : { " color " : { " text " : " #000000 " }}, " fontSize " : " large " } -->
2023-10-13 08:08:35 +00:00
< p class = " has-text-align-center has-text-color has-large-font-size " style = " color:#000000 " >< ? php echo esc_html ( $category_title ); ?> </p>
2023-05-02 14:16:44 +00:00
<!-- / wp : paragraph -->
<!-- wp : buttons -->
2023-05-12 13:05:36 +00:00
< div class = " wp-block-buttons " >
<!-- wp : button { " style " : { " color " : { " text " : " #ffffff " , " background " : " #000000 " }, " border " : { " width " : " 0px " , " style " : " none " }}} -->
< div class = " wp-block-button " >
2023-06-09 04:37:25 +00:00
< a href = " <?php echo esc_url( wc_get_page_permalink( 'shop' ) ); ?> " class = " wp-block-button__link has-text-color has-background wp-element-button " style = " border-style:none;border-width:0px;color:#ffffff;background-color:#000000 " > Shop now </ a >
2023-05-12 13:05:36 +00:00
</ div >
2023-09-19 07:05:44 +00:00
<!-- / wp : button -->
</ div >
<!-- / wp : buttons -->
</ div >
2023-05-02 14:16:44 +00:00
<!-- / wp : group -->