', esc_attr( $input_name ) ); } printf( '', esc_attr( $input_name ), checked( $saved_value, true, false ) ); if ( ! empty( $atts['label'] ) ) { echo esc_html( $atts['label'] ), ''; } // Add field description if it is set if ( ! empty( $atts['desc'] ) ) { echo '

' . esc_html( $atts['desc'] ) . '

'; } } /** * Render a number select field for an editor setting * * @since 2.0.0 * * @param array $atts The setting field's attributes */ function code_snippets_number_field( $atts ) { printf( ''; if ( ! empty( $atts['label'] ) ) { echo ' ' . esc_html( $atts['label'] ); } // Add field description if it is set if ( ! empty( $atts['desc'] ) ) { echo '

' . esc_html( $atts['desc'] ) . '

'; } }