$details ) {
if ( ! isset( $details['fields'] ) || empty( $details['fields'] ) ) {
continue;
}
?>
%s', $details['description'] );
}
?>
$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 );
}
}
?>