| 1 |
<?php $this->layout('layouts/' . $settings->method);?> |
| 2 |
<?php //$this->layout('layouts/standard');?> |
| 3 |
|
| 4 |
<div <?php echo $this->attr('age-gate-wrapper'); ?>><?php // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> |
| 5 |
<?php if ($settings->method === 'js') : ?> |
| 6 |
<?php $this->insert('theme::partials/decoration/loader'); ?> |
| 7 |
<?php endif; ?> |
| 8 |
<div <?php echo $this->attr('age-gate-background-colour'); ?>></div><?php // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> |
| 9 |
<div <?php echo $this->attr('age-gate-background'); ?>><?php // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> |
| 10 |
<?php do_action('age_gate/form/background', $settings->backgroundImage) ?> |
| 11 |
</div> |
| 12 |
<?php do_action('age_gate/before'); ?> |
| 13 |
|
| 14 |
<div <?php echo $this->attr('age-gate'); ?>><?php // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> |
| 15 |
<?php |
| 16 |
do_action('age_gate/form/before'); |
| 17 |
|
| 18 |
/** |
| 19 |
* @hooked AgeGate\ - 10 |
| 20 |
*/ |
| 21 |
do_action('age_gate/form'); |
| 22 |
|
| 23 |
do_action('age_gate/form/after'); |
| 24 |
?> |
| 25 |
</div> |
| 26 |
<?php do_action('age_gate/after'); ?> |
| 27 |
</div> |
| 28 |
|