From 5415a5be4ecc196ee21d47e1fa569dbb7e64651b Mon Sep 17 00:00:00 2001 From: Stephen Edgar Date: Sun, 3 Nov 2019 14:36:03 +1100 Subject: [PATCH] Add bbPress and BuddyPress --- .../css/components/_team-badges.scss | 18 +++++++++++++++++- themes/wporg-5ftf/functions.php | 8 ++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/themes/wporg-5ftf/css/components/_team-badges.scss b/themes/wporg-5ftf/css/components/_team-badges.scss index ecda2b5..31154d6 100644 --- a/themes/wporg-5ftf/css/components/_team-badges.scss +++ b/themes/wporg-5ftf/css/components/_team-badges.scss @@ -7,7 +7,7 @@ flex-wrap: wrap; margin: 0; list-style: none; - + li { display: flex; align-items: center; @@ -194,3 +194,19 @@ .badge-test-team:before { color: rgb(136, 79, 174); } + +.badge-bbpress { + background: rgba(45, 142, 66, 0.25); + box-shadow: 0 0 0 4px rgb(45, 142, 66); +} +.badge-bbpress:before { + color: rgb(45, 142, 66); +} + +.badge-buddypress { + background: rgba(216, 72, 0, 0.25); + box-shadow: 0 0 0 4px rgb(216, 72, 0); +} +.badge-buddypress:before { + color: rgb(216, 72, 0); +} diff --git a/themes/wporg-5ftf/functions.php b/themes/wporg-5ftf/functions.php index 063d32b..343a4d4 100644 --- a/themes/wporg-5ftf/functions.php +++ b/themes/wporg-5ftf/functions.php @@ -224,6 +224,14 @@ function get_badge_classes( $team ) { $classes = array( 'badge-accessibility', 'dashicons-universal-access' ); break; + case 'bbpress': + $classes = array( 'badge-bbpress', 'dashicons-buddicons-bbpress-logo' ); + break; + + case 'buddypress': + $classes = array( 'badge-buddypress', 'dashicons-buddicons-buddypress-logo' ); + break; + case 'cli': $classes = array( 'badge-wp-cli', 'dashicons-arrow-right-alt2' ); break;