$class, 'data-rooster-ui' => 'rooster-one/list' ] );
$inner = '';
foreach ( $facts as [ $value, $label, $third, $fourth ] ) {
if ( 'bars' === $layout ) {
$bar = is_numeric( $third ) ? '' : '';
$inner .= '
'
. ( '' !== $label || '' !== $bar ? '
' . AIEO_Engine_Blocks::inline( $label ) . $bar . '' : '' )
. '' . esc_html( $value ) . ''
. ( '' !== $fourth ? '' . esc_html( $fourth ) . '' : '' )
. '';
continue;
}
$inner .= ''
. ( '' !== $label ? '
' . esc_html( AIEO_Engine_Blocks::plain( $label ) ) . '' : '' )
. ( '' !== $fourth ? '' . esc_html( $fourth ) . '' : '' )
. '' . esc_html( $value ) . ''
. ( '' !== $label ? '' . AIEO_Engine_Blocks::inline( $label ) . '' : '' )
. '';
}
AIEO_Engine_Blocks::out( sprintf( '%2$s
', $wrapper, $inner ) );