PluginProbe
Age Gate / 3.7.3
Age Gate v3.7.3
3.7.3 trunk 1.0.0 1.0.1 1.1.0 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.4.0 1.4.1 1.4.10 1.4.11 1.4.12 1.4.13 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 All 113 releases
age-gate / src / Resources / views / public / partials / form / errors.php

errors.php in Age Gate 3.7.3, at src/Resources/views/public/partials/form/errors.php

23 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php if ($errors) : ?>
2
3 <div <?php echo $this->attr('age-gate-errors') ?>><?php // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
4
5 <?php
6 $key = array_key_last($errors);
7 $error = end($errors);
8 ?>
9 <p <?php echo $this->attr('age-gate-error') ?>><?php // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
10 <?php echo $this->mdLine(esc_html(apply_filters('age_gate/error/' . $key, $error))) ?><?php // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
11 </p>
12
13 </div>
14 <?php endif; ?>
15 <?php if (is_customize_preview()) : ?>
16 <div <?php echo $this->attr('age-gate-errors') ?>><?php // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
17 <p <?php echo $this->attr('age-gate-error') ?>><?php echo esc_html(apply_filters('age_gate/error/demo', __('Demonstration error message', 'age-gate'))) ?></p><?php // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
18 </div>
19 <?php endif; ?>
20 <?php if ($settings->method === 'js') : ?>
21 <div <?php echo $this->attr('age-gate-errors') ?>></div><?php // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
22 <?php endif ?>
23