| 1 |
<?php $this->layout('theme::partials/form/sections/fieldset'); ?> |
| 2 |
|
| 3 |
<ol <?php echo $this->attr('age-gate-form-elements')?>><?php // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> |
| 4 |
<?php foreach ($fields as $key => $field) : ?> |
| 5 |
<li <?php echo $this->attr('age-gate-form-section') ?>><?php // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> |
| 6 |
<?php |
| 7 |
$d = array_merge( |
| 8 |
[ |
| 9 |
'key' => $key |
| 10 |
], |
| 11 |
$field |
| 12 |
); |
| 13 |
?> |
| 14 |
<?php echo $this->fetch('theme::partials/form/fields/select', $d) // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> |
| 15 |
</li> |
| 16 |
<?php endforeach; ?> |
| 17 |
</ol> |
| 18 |
|