LLMS_Metabox_Checkbox_Field::output()
outputs the Html for the given field
Return Return
(void)
Source Source
File: includes/admin/post-types/meta-boxes/fields/llms.class.meta.box.checkbox.php
public function output() {
global $post;
parent::output(); ?>
<div class="llms-switch d-1of4 t-1of4 m-1of2">
<input
<?php if ( isset( $this->field['controls'] ) ) : ?>
data-controls="<?php echo esc_attr( $this->field['controls'] ); ?>"
<?php endif; ?>
<?php if ( isset( $this->field['is_controller'] ) ) : ?>
data-is-controller="true"
<?php endif; ?>
name="<?php echo esc_attr( $this->field['id'] ); ?>"
id="<?php echo esc_attr( $this->field['id'] ); ?>"
class="llms-toggle llms-toggle-round"
type="checkbox"
value="<?php echo esc_attr( $this->field['value'] ); ?>"
<?php echo ( $this->field['value'] === $this->meta ) ? 'checked' : ''; ?>
/>
<label for="<?php echo esc_attr( $this->field['id'] ); ?>"></label>
</div>
<?php
parent::close_output();
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 4.0.0 | Introduced. |