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
13 lines
| 1 | <?php /** @var Give\Framework\FieldsAPI\Checkbox $field */ ?> |
| 2 | <?php /** @var string $typeAttribute */ ?> |
| 3 | <label class="give-label"> |
| 4 | <input |
| 5 | type="checkbox" |
| 6 | name="<?php echo $field->getName(); ?>" |
| 7 | <?php echo $field->isRequired() ? 'required' : ''; ?> |
| 8 | <?php echo $field->isChecked() ? 'checked' : ''; ?> |
| 9 | <?php echo $field->isReadOnly() ? 'readonly' : ''; ?> |
| 10 | > |
| 11 | <?php echo $field->getLabel(); ?> |
| 12 | </label> |
| 13 |