| 1 |
<?php $this->layout('theme::partials/form/sections/fieldset'); ?> |
| 2 |
|
| 3 |
<<?php echo esc_attr($settings->challengeElement ?: 'p') ?> <?php echo $this->attr('age-gate-challenge') ?>><?php // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> |
| 4 |
<?php echo $this->mdLine(esc_html(sprintf($this->stringTemplate($settings->labelButtons, ['age' => $content->getAge($settings->anonymous)]), $content->getAge($settings->anonymous)))) ?><?php // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> |
| 5 |
</<?php echo esc_attr($settings->challengeElement ?: 'p') ?>> |
| 6 |
<div <?php echo $this->attr('age-gate-buttons') ?>><?php // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> |
| 7 |
<?php if ($settings->buttonOrder === 'no-yes'): ?> |
| 8 |
<button <?php echo $this->attr('age-gate-submit-no') ?> type="submit"><?php echo esc_html($settings->labelNo) ?></button><?php // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> |
| 9 |
<?php endif ?> |
| 10 |
<button type="submit" <?php echo $this->attr('age-gate-submit-yes') ?>><?php echo esc_html($settings->labelYes) ?></button><?php // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> |
| 11 |
<?php if ($settings->buttonOrder !== 'no-yes'): ?> |
| 12 |
<button <?php echo $this->attr('age-gate-submit-no') ?> type="submit"><?php echo esc_html($settings->labelNo) ?></button><?php // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> |
| 13 |
<?php endif ?> |
| 14 |
</div> |
| 15 |
|