diff --git a/client-mu-plugins/goodbids/assets/images/goodbids-logo.png b/client-mu-plugins/goodbids/assets/images/goodbids-logo.png new file mode 100644 index 000000000..4a3b65bc5 Binary files /dev/null and b/client-mu-plugins/goodbids/assets/images/goodbids-logo.png differ diff --git a/client-mu-plugins/goodbids/src/classes/Network/Sites.php b/client-mu-plugins/goodbids/src/classes/Network/Sites.php index bff589d35..4b102e480 100644 --- a/client-mu-plugins/goodbids/src/classes/Network/Sites.php +++ b/client-mu-plugins/goodbids/src/classes/Network/Sites.php @@ -48,6 +48,7 @@ public function __construct() { // New Site Actions $this->activate_child_theme_on_new_site(); + $this->default_child_theme_logo(); } /** @@ -393,4 +394,30 @@ private function init_site_defaults( int $site_id ): void { restore_current_blog(); } + + /** + * Set the GoodBids logo on the child theme. + * + * @since 1.0.0 + * + * @return void + */ + private function default_child_theme_logo(): void { + add_filter( + 'get_custom_logo', + function ( string $html, int $blog_id ) { + if ( $html ) { + return $html; + } + + return sprintf( + '', + esc_url( home_url( '/' ) ), + esc_attr( GOODBIDS_PLUGIN_URL . 'assets/images/goodbids-logo.png' ), + ); + }, + 10, + 2 + ); + } } diff --git a/themes/goodbids-nonprofit/assets/css/theme.css b/themes/goodbids-nonprofit/assets/css/theme.css index 004be504d..54f4650af 100644 --- a/themes/goodbids-nonprofit/assets/css/theme.css +++ b/themes/goodbids-nonprofit/assets/css/theme.css @@ -8,3 +8,35 @@ background-color: var(--wp--preset--color--contrast); color: var(--wp--preset--color--contrast-4); } + +/*TODO move this all to Tailwind once we set that up*/ +.wp-button-custom > a { + background-color: var(--wp--preset--color--contrast); + color: var(--wp--preset--color--base-2); + font-size: var(--wp--preset--font-size--x-small); + font-weight: 500; + text-decoration: none; + border-color: var(--wp--preset--color--contrast); + border-radius: 100px; + border-width: 0; + padding-top: 0.8rem; + padding-right: 1.5rem; + padding-left: 1.5rem; + padding-bottom: 0.8rem; + + &:hover { + background-color: var(--wp--preset--color--contrast-4); + border-color: var(--wp--preset--color--contrast); + color: var(--wp--preset--color--contrast); + } + + &:focus { + background-color: var(--wp--preset--color--contrast-4); + border-color: var(--wp--preset--color--contrast); + color: var(--wp--preset--color--contrast); + outline-color: var(--wp--preset--color--contrast); + outline-offset: 2px; + outline-style: dotted; + outline-width: 1px; + } +} diff --git a/themes/goodbids-nonprofit/inc/patterns.php b/themes/goodbids-nonprofit/inc/patterns.php index 40d62eda6..4c963ca38 100644 --- a/themes/goodbids-nonprofit/inc/patterns.php +++ b/themes/goodbids-nonprofit/inc/patterns.php @@ -33,13 +33,21 @@ 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' => 'footer-nonprofit', 'file' => 'patterns/footer-nonprofit.php', 'title' => __( 'GoodBids Footer', 'goodbids-nonprofit' ), 'categories' => [ 'footer', 'goodbids-np' ], 'blockTypes' => [ 'core/template-part/footer' ], - 'source' => 'theme', ], [ 'name' => 'template-home-nonprofit', diff --git a/themes/goodbids-nonprofit/parts/header.html b/themes/goodbids-nonprofit/parts/header.html index fae3420f2..ddac33372 100644 --- a/themes/goodbids-nonprofit/parts/header.html +++ b/themes/goodbids-nonprofit/parts/header.html @@ -1,23 +1 @@ - -