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
checkbox.html.php
18 lines
| 1 | <?php /** @var Give\Framework\FieldsAPI\Checkbox $field */ ?> |
| 2 | <label class="give-label"> |
| 3 | <input |
| 4 | type="checkbox" |
| 5 | name="<?php echo $field->getName(); ?>" |
| 6 | <?php echo $field->isRequired() ? 'required' : ''; ?> |
| 7 | <?php echo $field->isChecked() ? 'checked' : ''; ?> |
| 8 | <?php echo $field->isReadOnly() ? 'readonly' : ''; ?> |
| 9 | <?php |
| 10 | if ( $conditions = $field->getVisibilityConditions() ) { |
| 11 | $conditions = esc_attr( json_encode( $conditions ) ); |
| 12 | echo "data-field-visibility-conditions=\"$conditions\""; |
| 13 | } |
| 14 | ?> |
| 15 | > |
| 16 | <?php echo $field->getLabel(); ?> |
| 17 | </label> |
| 18 |