Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Register footer and header patterns as template parts, so they are av…
Browse files Browse the repository at this point in the history
…ailable in contextual chooser (#7699)
  • Loading branch information
kmanijak authored Nov 28, 2022
1 parent 222c977 commit a96d0ad
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions patterns/footer-large-dark.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Title: WooCommerce Large Footer | Dark
* Slug: woocommerce-blocks/footer-large-dark
* Categories: WooCommerce
* Block Types: core/template-part/footer
*/
?>

Expand Down
1 change: 1 addition & 0 deletions patterns/footer-large.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Title: WooCommerce Large Footer
* Slug: woocommerce-blocks/footer-large
* Categories: WooCommerce
* Block Types: core/template-part/footer
*/
?>

Expand Down
1 change: 1 addition & 0 deletions patterns/footer-simple-dark.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Title: WooCommerce Simple Footer | Dark
* Slug: woocommerce-blocks/footer-simple-dark
* Categories: WooCommerce
* Block Types: core/template-part/footer
*/
?>

Expand Down
1 change: 1 addition & 0 deletions patterns/footer-simple.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Title: WooCommerce Simple Footer
* Slug: woocommerce-blocks/footer-simple
* Categories: WooCommerce
* Block Types: core/template-part/footer
*/
?>

Expand Down
1 change: 1 addition & 0 deletions patterns/footer-with-2-menus-dark.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Title: WooCommerce Footer with 2 menus | Dark
* Slug: woocommerce-blocks/footer-with-2-menus-dark
* Categories: WooCommerce
* Block Types: core/template-part/footer
*/
?>

Expand Down
1 change: 1 addition & 0 deletions patterns/footer-with-2-menus.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Title: WooCommerce Footer with 2 menus
* Slug: woocommerce-blocks/footer-with-2-menus
* Categories: WooCommerce
* Block Types: core/template-part/footer
*/
?>

Expand Down
1 change: 1 addition & 0 deletions patterns/header-essential-dark.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Title: WooCommerce Essential Header | Dark
* Slug: woocommerce-blocks/header-essential-dark
* Categories: WooCommerce
* Block Types: core/template-part/header
*/
?>
<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"1rem","bottom":"1rem","right":"1rem","left":"1rem"},"blockGap":"1rem"},"elements":{"link":{"color":{"text":"var:preset|color|background"}}}},"backgroundColor":"black","textColor":"white","className":"has-background-color","layout":{"type":"flex","flexWrap":"wrap","justifyContent":"space-between"}} -->
Expand Down
1 change: 1 addition & 0 deletions patterns/header-essential.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Title: WooCommerce Essential Header
* Slug: woocommerce-blocks/header-essential
* Categories: WooCommerce
* Block Types: core/template-part/header
*/
?>
<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"1rem","bottom":"1rem","right":"1rem","left":"1rem"},"blockGap":"1rem"}},"layout":{"type":"flex","flexWrap":"wrap","justifyContent":"space-between"}} -->
Expand Down
1 change: 1 addition & 0 deletions patterns/header-large-dark.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Title: WooCommerce Large Header | Dark
* Slug: woocommerce-blocks/header-large-dark
* Categories: WooCommerce
* Block Types: core/template-part/header
*/
?>
<!-- wp:group {"align":"full","style":{"spacing":{"blockGap":"0px","padding":{"top":"1rem","right":"1rem","bottom":"1rem","left":"1rem"}},"elements":{"link":{"color":{"text":"var:preset|color|background"}}}},"backgroundColor":"black","textColor":"white","layout":{"type":"default"}} -->
Expand Down
1 change: 1 addition & 0 deletions patterns/header-large.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Title: WooCommerce Large Header
* Slug: woocommerce-blocks/header-large
* Categories: WooCommerce
* Block Types: core/template-part/header
*/
?>
<!-- wp:group {"align":"full","style":{"spacing":{"blockGap":"0px","padding":{"top":"1rem","right":"1rem","bottom":"1rem","left":"1rem"}}},"layout":{"type":"default"}} -->
Expand Down
1 change: 1 addition & 0 deletions patterns/header-minimal-dark.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Title: WooCommerce Minimal Header | Dark
* Slug: woocommerce-blocks/minimal-header-dark
* Categories: WooCommerce
* Block Types: core/template-part/header
*/
?>
<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"right":"2%","bottom":"16px","left":"2%","top":"16px"},"margin":{"top":"0px","bottom":"0px"}},"elements":{"link":{"color":{"text":"var:preset|color|background"}}}},"backgroundColor":"black","textColor":"white","className":"sticky-header","layout":{"type":"flex","flexWrap":"wrap","justifyContent":"space-between"}} -->
Expand Down
1 change: 1 addition & 0 deletions patterns/header-minimal.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Title: WooCommerce Minimal Header
* Slug: woocommerce-blocks/header-minimal
* Categories: WooCommerce
* Block Types: core/template-part/header
*/
?>
<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"right":"2%","bottom":"16px","left":"2%","top":"16px"},"margin":{"top":"0px","bottom":"0px"}}},"className":"sticky-header","layout":{"type":"flex","flexWrap":"wrap","justifyContent":"space-between"}} -->
Expand Down

0 comments on commit a96d0ad

Please sign in to comment.