mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-21 01:05:46 +03:00
Theme: Add functions, markup, and styles to show team badges
This commit is contained in:
parent
24d5f67040
commit
886dca56de
4 changed files with 270 additions and 2 deletions
|
@ -58,9 +58,11 @@ $contributors = Contributor\get_contributor_user_objects(
|
|||
?>
|
||||
</p>
|
||||
<ul class="team-grid">
|
||||
<?php foreach ( $contribution_data['teams'] as $team ) : ?>
|
||||
<?php foreach ( $contribution_data['teams'] as $team ) :
|
||||
$badge_classes = get_badge_classes( $team );
|
||||
?>
|
||||
<li>
|
||||
<span class="team-badge team-<?php echo esc_attr( strtolower( $team ) ); ?>"></span>
|
||||
<div class="badge item dashicons <?php echo esc_attr( implode( ' ', $badge_classes ) ); ?>"></div>
|
||||
<?php echo esc_html( $team ); ?>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue