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 / sections / buttons.php

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

15 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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