document.addEventListener( 'wpcf7submit', function( event ) {
if ( '123' == event.detail.contactFormId ) {
alert( "The contact form ID is 123." );
// do something productive
}
}, false );
foreach($reviews as $rev)
{
<div class="review">
<div class="reivew-title>
<div class="review-title-photo"></div>
<div class="review-title-name"><?= $rev["title"] ?></div>
</div>
<div class="review-content">
<div class="review-content-text">
<?= $rev["text"] ?>
</div>
</div>
</div>
}