PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.16.9
GiveWP – Donation Plugin and Fundraising Platform v4.16.9
4.16.9 4.16.8.1 4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 2.30.0 All 255 releases
give / src / Form / LegacyConsumer / templates / label-content.html.php

label-content.html.php in GiveWP – Donation Plugin and Fundraising Platform 4.16.9, at src/Form/LegacyConsumer/templates/label-content.html.php

30 lines 877 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 use Give\Helpers\Form\Template;
4 use Give\Views\Form\Templates\Sequoia\Sequoia;
5
6 /** @var int $formId */
7 /** @var Give\Framework\FieldsAPI\Field|Give\Framework\FieldsAPI\Text $field */
8 ?>
9 <?php
10 echo $field->getLabel(); ?>
11 <?php
12 if ($field->isRequired()) : ?>
13 <span class="give-required-indicator">
14 <span aria-hidden="true">*</span>
15 <span class="screen-reader-text"><?php
16 esc_html_e('Required', 'give'); ?></span>
17 </span>
18 <?php
19 endif; ?>
20 <?php
21 echo ($helpText = $field->getHelpText()) ?
22 Give()->tooltips->render_help([
23 'label' => $helpText,
24 'position' => give(Sequoia::class)->getID() === Template::getActiveID(
25 $formId
26 ) ? 'right' : 'top',
27 ]) :
28 '';
29 ?>
30