value ) ) ? ' adminify--active' : '';
$text_on = ( ! empty( $this->field['text_on'] ) ) ? $this->field['text_on'] : esc_html__( 'On', 'adminify' );
$text_off = ( ! empty( $this->field['text_off'] ) ) ? $this->field['text_off'] : esc_html__( 'Off', 'adminify' );
$text_width = ( ! empty( $this->field['text_width'] ) ) ? ' style="width: '. esc_attr( $this->field['text_width'] ) .'px;"': '';
echo wp_kses_post( $this->field_before() );
echo '
'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- attribute value pre-escaped with esc_attr() where built.
echo ''. esc_attr( $text_on ) .'';
echo ''. esc_attr( $text_off ) .'';
echo '';
echo 'field_attributes() .' />'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- field_attributes() escapes each attribute via esc_attr()
echo '
';
echo ( ! empty( $this->field['label'] ) ) ? ''. wp_kses_post( $this->field['label'] ) . '' : '';
echo wp_kses_post( $this->field_after() );
}
}
}