$details ) {
if ( ! isset( $details['fields'] ) || empty( $details['fields'] ) ) {
continue;
}
?>
array(
'href' => true,
),
'strong' => true,
'em' => true,
);
if ( isset( $details['description'] ) && ! empty( $details['description'] ) ) {
printf( '
%s
', wp_kses( $details['description'], $kses_settings ) );
}
?>
$field ) {
if ( is_array( $field['value'] ) ) {
$values = '';
foreach ( $field['value'] as $name => $value ) {
$values .= sprintf( '- %s: %s
', esc_html( $name ), esc_html( $value ) );
}
$values .= '
';
} else {
$values = esc_html( $field['value'] );
}
if ( in_array( $field_name, $sizes_fields, true ) ) {
printf( '%s | %s |
', esc_html( $field['label'] ), esc_attr( $field_name ), $values );
} else {
printf( '%s | %s |
', esc_html( $field['label'] ), $values );
}
}
?>