PUM_Fields::checkbox_templ_callback( $args )
Contents
Description Description
Source Source
File: includes/class-pum-fields.php
public function checkbox_templ_callback( $args ) { $this->field_before( $args ); $this->field_label( $args ); ?> <# var checked = data.<?php echo esc_attr( $args['templ_name'] ); ?> !== undefined && data.<?php echo esc_attr( $args['templ_name'] ); ?> ? true : false; #> <input type="checkbox" id="<?php echo esc_attr( $args['id'] ); ?>" name="<?php echo esc_attr( $args['name'] ); ?>" value="<?php echo esc_attr( $args['checkbox_val'] ); ?>" {{pumChecked(checked, true, true)}} /><?php $this->field_description( $args ); $this->field_after(); }
Expand full source code Collapse full source code View on Trac