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 @@ - -
- -
- -
- - - -
- -
- -
- - - - -
- -
- + diff --git a/themes/goodbids-nonprofit/patterns/header-nonprofit.php b/themes/goodbids-nonprofit/patterns/header-nonprofit.php new file mode 100644 index 000000000..885a513a3 --- /dev/null +++ b/themes/goodbids-nonprofit/patterns/header-nonprofit.php @@ -0,0 +1,37 @@ + +
+ +
+ +
+ + + + +
+ +

+ +
+ + + +
+ +
+ +
+ + + +
+ + +
+ +
+ + +
+ diff --git a/themes/goodbids-nonprofit/style.css b/themes/goodbids-nonprofit/style.css index 6cd2ef4f3..b8d82c5a9 100644 --- a/themes/goodbids-nonprofit/style.css +++ b/themes/goodbids-nonprofit/style.css @@ -4,7 +4,7 @@ Theme URI: https://goodbids.org Author: Viget Author URI: https://viget.com Description: Twenty Twenty-Four child theme for GoodBids Nonprofit sites. -Version: 1.0 +Version: 1.0.0 License: GNU General Public License v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Text Domain: goodbids-nonprofit diff --git a/themes/goodbids-nonprofit/templates/front-page.html b/themes/goodbids-nonprofit/templates/front-page.html index 224527cf1..f222d8287 100644 --- a/themes/goodbids-nonprofit/templates/front-page.html +++ b/themes/goodbids-nonprofit/templates/front-page.html @@ -1,3 +1,3 @@ - + diff --git a/themes/goodbids-nonprofit/theme.json b/themes/goodbids-nonprofit/theme.json index 7a1e1df3a..1f4556b6e 100644 --- a/themes/goodbids-nonprofit/theme.json +++ b/themes/goodbids-nonprofit/theme.json @@ -51,6 +51,12 @@ "typography": { "lineHeight": false, "fontSizes": [ + { + "fluid": false, + "name": "X Small", + "size": "0.9rem", + "slug": "x-small" + }, { "fluid": false, "name": "Small",