PUM_Fields::text_templ_callback( $args )
Description Description
Source Source
File: includes/class-pum-fields.php
public function text_templ_callback( $args ) { if ( $args['type'] != 'text' ) { $args['class'] .= ' pum-field-text'; } $this->field_before( $args ); $this->field_label( $args ); ?> <input type="<?php echo esc_attr( $args['type'] ); ?>" placeholder="<?php echo esc_attr( $args['placeholder'] ); ?>" class="<?php echo esc_attr( $args['size'] ); ?>-text" id="<?php echo esc_attr( $args['id'] ); ?>" name="<?php echo esc_attr( $args['name'] ); ?>" value="{{data.<?php echo $args['templ_name']; ?>}}" /><?php $this->field_description( $args ); $this->field_after(); }
Expand full source code Collapse full source code View on Trac