Skip to content

Commit

Permalink
Add badge functionality (#257)
Browse files Browse the repository at this point in the history
* Add badge functionality

Add sustainability badge, needs some nicer CSS, but will do temporarily.

Fixes #246.

* Update functions.php

remove whitespace
  • Loading branch information
pkevan authored Jun 12, 2024
1 parent 6b57bb1 commit 176cea1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions themes/wporg-5ftf/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 176cea1

Please sign in to comment.