';
foreach ( $scenarios as $scenario ) {
if ( ! is_array( $scenario ) ) {
continue;
}
$title = isset( $scenario['title'] ) ? (string) $scenario['title'] : '';
$desc = isset( $scenario['description'] ) ? (string) $scenario['description'] : '';
$out .= '
';
if ( '' !== $title ) {
$out .= '
' . esc_html( $title ) . '
';
}
if ( '' !== $desc ) {
$out .= '
' . esc_html( $desc ) . '
';
}
$features = isset( $scenario['keyFeatures'] ) && is_array( $scenario['keyFeatures'] ) ? $scenario['keyFeatures'] : array();
if ( ! empty( $features ) ) {
$out .= '
';
foreach ( $features as $feature ) {
$out .= '- ' . esc_html( (string) $feature ) . '
';
}
$out .= '
';
}
$out .= '