checkbox_input.php
2 weeks ago
color_input.php
2 weeks ago
number_input.php
2 weeks ago
select_input.php
2 weeks ago
text_input.php
2 weeks ago
checkbox_input.php
18 lines
| 1 | <?php if (!defined('WPINC')) { die; } ?> |
| 2 | <label> |
| 3 | <input |
| 4 | type="checkbox" |
| 5 | id="<?php echo $id ?>" |
| 6 | name="<?php echo \Zenchef\Widget\SETTINGS_OPTION_NAME ?>[<?php echo $id ?>]" |
| 7 | value="1" |
| 8 | <?php checked($value, '1') ?> |
| 9 | /> |
| 10 | <?php if (isset($checkbox_label) && $checkbox_label !== ''): ?> |
| 11 | <?php echo $checkbox_label ?> |
| 12 | <?php endif; ?> |
| 13 | </label> |
| 14 | |
| 15 | <?php if ($description !== ''): ?> |
| 16 | <p class='description'><?php echo $description ?></p> |
| 17 | <?php endif; ?> |
| 18 |