From 176cea1a3d1eef82947db3ef0916de4fb4f530b3 Mon Sep 17 00:00:00 2001 From: Paul Kevan <2290623+pkevan@users.noreply.github.com> Date: Wed, 12 Jun 2024 16:19:16 +0100 Subject: [PATCH] Add badge functionality (#257) * Add badge functionality Add sustainability badge, needs some nicer CSS, but will do temporarily. Fixes #246. * Update functions.php remove whitespace --- themes/wporg-5ftf/functions.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/themes/wporg-5ftf/functions.php b/themes/wporg-5ftf/functions.php index b04c9fe..0d6ae61 100644 --- a/themes/wporg-5ftf/functions.php +++ b/themes/wporg-5ftf/functions.php @@ -297,6 +297,10 @@ function get_badge_classes( $team ) { $classes = array( 'badge-support', 'dashicons-format-chat' ); break; + case 'sustainability team': + $classes = array( 'badge-meta', 'dashicons-admin-site-alt3' ); + break; + case 'test team': $classes = array( 'badge-test-team', 'dashicons-desktop' ); break;