$attributes ) :
// Skip stat card, if it's not supposed to be displayed.
if ( isset( $attributes['condition'] ) && ! $attributes['condition'] ) {
continue;
}
$button_classes = ! empty( $attributes['button_classes'] ) ? (array) $attributes['button_classes'] : [];
// To highlight the stats being displayed in the chart at the moment, identify the selected stat card.
if ( $chart === $current ) {
$button_classes[] = 'is-selected';
}
?>