base.html.php
4 years ago
checkbox.html.php
4 years ago
file.html.php
4 years ago
hidden.html.php
4 years ago
html.html.php
4 years ago
label-content.html.php
4 years ago
label.html.php
4 years ago
radio.html.php
4 years ago
select.html.php
4 years ago
textarea.html.php
4 years ago
base.html.php
25 lines
| 1 | <?php |
| 2 | /** @var \Give\Framework\FieldsAPI\Text $field */ ?> |
| 3 | <?php |
| 4 | /** @var string $typeAttribute */ ?> |
| 5 | <?php |
| 6 | /** @var string $fieldIdAttribute */ ?> |
| 7 | <input |
| 8 | type="<?php |
| 9 | echo $typeAttribute; ?>" |
| 10 | name="<?php |
| 11 | echo $field->getName(); ?>" |
| 12 | placeholder="<?php |
| 13 | echo $field->getPlaceholder(); ?>" |
| 14 | id="<?php |
| 15 | echo $fieldIdAttribute; ?>" |
| 16 | value="<?php |
| 17 | echo $field->getDefaultValue(); ?>" |
| 18 | <?php |
| 19 | echo $field->isRequired() ? 'required' : ''; ?> |
| 20 | <?php |
| 21 | echo $field->isReadOnly() ? 'readonly' : ''; ?> |
| 22 | <?php |
| 23 | echo ($maxLength = $field->getMaxLength()) ? "maxlength=\"$maxLength\"" : ''; ?> |
| 24 | > |
| 25 |