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
textarea.html.php
16 lines
| 1 | <?php /** @var Give\Framework\FieldsAPI\Textarea $field */ ?> |
| 2 | <?php /** @var string $fieldIdAttribute */ ?> |
| 3 | <textarea |
| 4 | name="<?php echo $field->getName(); ?>" |
| 5 | id="<?php echo $fieldIdAttribute; ?>" |
| 6 | <?php echo $field->isRequired() ? 'required' : ''; ?> |
| 7 | <?php echo $field->isReadOnly() ? 'readonly' : ''; ?> |
| 8 | <?php echo ( $maxLength = $field->getMaxLength() ) ? "maxlength=\"$maxLength\"" : ''; ?> |
| 9 | <?php |
| 10 | if ( $conditions = $field->getVisibilityConditions() ) { |
| 11 | $conditions = esc_attr( json_encode( $conditions ) ); |
| 12 | echo "data-field-visibility-conditions=\"$conditions\""; |
| 13 | } |
| 14 | ?> |
| 15 | ></textarea> |
| 16 |