# give/4.18.0/src/Form/LegacyConsumer/templates/label-content.html.php

GiveWP – Donation Plugin and Fundraising Platform, version 4.18.0. 30 lines.

- Page: https://pluginprobe.com/plugins/give/4.18.0/code/src/Form/LegacyConsumer/templates/label-content.html.php
- Raw: https://pluginprobe.com/plugins/give/4.18.0/raw/src/Form/LegacyConsumer/templates/label-content.html.php
- Modified: 2021-11-23T23:55:18+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/give/4.18.0/code/src/Form/LegacyConsumer/templates/label-content.html.php#L10-L20`.

```php
<?php

use Give\Helpers\Form\Template;
use Give\Views\Form\Templates\Sequoia\Sequoia;

/** @var int $formId */
/** @var Give\Framework\FieldsAPI\Field|Give\Framework\FieldsAPI\Text $field */
?>
<?php
echo $field->getLabel(); ?>
<?php
if ($field->isRequired()) : ?>
    <span class="give-required-indicator">
		<span aria-hidden="true">*</span>
		<span class="screen-reader-text"><?php
            esc_html_e('Required', 'give'); ?></span>
	</span>
<?php
endif; ?>
<?php
echo ($helpText = $field->getHelpText()) ?
    Give()->tooltips->render_help([
                                      'label' => $helpText,
                                      'position' => give(Sequoia::class)->getID() === Template::getActiveID(
                                          $formId
                                      ) ? 'right' : 'top',
                                  ]) :
    '';
?>

```
