11 <fieldset
class=
"<?php echo $this->get_label_class(); ?>">
12 <legend><span
class=
"gv-label"><?php echo $this->
get_field_label(); ?></span></legend>
25 if( isset( $override_input ) ) {
31 <
ul class=
"gv-setting-list">
33 foreach( $this->field[
'options'] as
$value =>
$label ) { ?>
34 <li <?php
if( isset(
$label[
'requires'] ) ) { printf(
'class="gv-sub-setting" data-requires="%s"',
$label[
'requires'] ); } ?>>
36 <input name=
"<?php printf( '%s[%s]', esc_attr( $this->name ), esc_attr( $value ) ); ?>" type=
"hidden" 38 <input name=
"<?php printf( '%s[%s]', esc_attr( $this->name ), esc_attr( $value ) ); ?>" 39 id=
"<?php echo $this->get_field_id(); ?>" type=
"checkbox" 40 value=
"1" <?php checked( ! empty( $this->value[
$value ] ) ); ?> />
41 <?php echo esc_html(
$label[
'label'] ); ?>
43 <?php
if( ! empty(
$label[
'desc'] ) ) {
44 printf(
'<span class="howto">%s</span>',
$label[
'desc'] );
get_field_desc()
Retrieve field description.
Checkboxes input type - show a group of checkboxes Supports a "requires", which is the name of anothe...
Modify option field type by extending this class.
render_input( $override_input=null)
get_field_label()
Retrieve field label.