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
This commit is contained in:
Paul Kevan 2024-06-12 16:19:16 +01:00 committed by GitHub
parent 6b57bb1e7e
commit 176cea1a3d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -297,6 +297,10 @@ function get_badge_classes( $team ) {
$classes = array( 'badge-support', 'dashicons-format-chat' ); $classes = array( 'badge-support', 'dashicons-format-chat' );
break; break;
case 'sustainability team':
$classes = array( 'badge-meta', 'dashicons-admin-site-alt3' );
break;
case 'test team': case 'test team':
$classes = array( 'badge-test-team', 'dashicons-desktop' ); $classes = array( 'badge-test-team', 'dashicons-desktop' );
break; break;