$count ) { if ( $i < 6 ) { $display[] = array( 'label' => $label, 'count' => $count, ); } else { ++$more; } ++$i; } $html = '
'; $html .= '
'; foreach ( $display as $item ) { $html .= sprintf( '%dx %s', (int) $item['count'], esc_html( $item['label'] ) ); } if ( $more > 0 ) { $html .= sprintf( '+ %s %s', (int) $more, /* translators: %d: number of additional node types */ esc_html( _n( 'more type', 'more types', $more, 'breznflow' ) ) ); } $html .= '
'; if ( $has_ai ) { $html .= '
'; $html .= '' . esc_html__( 'AI-powered', 'breznflow' ) . ''; $html .= '
'; } $html .= sprintf( '
%s
', sprintf( /* translators: %d: total node count */ esc_html( _n( '%d node', '%d nodes', $total, 'breznflow' ) ), (int) $total ) ); $html .= '
'; return $html; } }