From 72a2737dbd720c5fe931bbbbb7210415fe152b75 Mon Sep 17 00:00:00 2001 From: Nathan Schmidt <91974372+nathan-schmidt-viget@users.noreply.github.com> Date: Wed, 13 Dec 2023 14:13:00 -0700 Subject: [PATCH] [#12] refactor header part to header pattern --- themes/goodbids-nonprofit/inc/patterns.php | 9 +++++ themes/goodbids-nonprofit/parts/header.html | 39 +------------------ .../patterns/header-nonprofit.php | 37 ++++++++++++++++++ 3 files changed, 47 insertions(+), 38 deletions(-) create mode 100644 themes/goodbids-nonprofit/patterns/header-nonprofit.php diff --git a/themes/goodbids-nonprofit/inc/patterns.php b/themes/goodbids-nonprofit/inc/patterns.php index 6a3f0fbdd..44a80f319 100644 --- a/themes/goodbids-nonprofit/inc/patterns.php +++ b/themes/goodbids-nonprofit/inc/patterns.php @@ -33,6 +33,15 @@ function () { 'init', function () { $patterns = [ + [ + 'name' => 'header-nonprofit', + 'file' => 'patterns/header-nonprofit.php', + 'title' => __( 'GoodBids Header', 'goodbids-nonprofit' ), + 'categories' => [ 'header', 'goodbids-np' ], + 'keywords' => [ 'header', 'non-profit', 'template' ], + 'blockTypes' => [ 'core/template-part/header' ], + 'source' => 'theme', + ], [ 'name' => 'template-home-nonprofit', 'file' => 'patterns/template-home-nonprofit.php', diff --git a/themes/goodbids-nonprofit/parts/header.html b/themes/goodbids-nonprofit/parts/header.html index 7a96d4d06..ddac33372 100644 --- a/themes/goodbids-nonprofit/parts/header.html +++ b/themes/goodbids-nonprofit/parts/header.html @@ -1,38 +1 @@ - -
for
- -