| 1 |
<?php $this->layout('partials/fields/wrapper', ['field' => $field, 'lang' => $lang ?? false]) ?> |
| 2 |
|
| 3 |
<?php $this->start('input') ?> |
| 4 |
<label class="ag-switch"> |
| 5 |
<input type="checkbox" name="<?php echo esc_attr($this->form_key($field_prefix . '.' . $name)) ?>" id="<?php echo esc_attr(sanitize_title('wp_age_gate_' . $name)) ?>" <?php echo (($data[$name] ?? false) ? 'checked' : '') ?> <?php echo html_build_attributes($field['attributes'] ?? []); ?> value="1" /><?php // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> |
| 6 |
<span class="ag-switch__slider"></span> |
| 7 |
</label> |
| 8 |
<?php $this->stop(); ?> |
| 9 |
|