field['before'] ) ) { $class['has-addons'] = 'has-addons'; $class[] = 'has-addons-prepend'; } if ( ! empty( $this->field['after'] ) ) { $class['has-addons'] = 'has-addons'; $class[] = 'has-addons-append'; } $class = implode( ' ', $class ); // placeholder if( ! empty( $this->field['placeholder'] ) ){ $placeholder = $this->field['placeholder']; } if( ! empty( $this->field['std'] ) ){ $placeholder = $this->field['std']; } // preview if( ! empty( $this->field['preview'] ) ){ $preview = 'preview-'. $this->field['preview']; } // default unit if( isset($this->field['default_unit']) ){ $preview .= ' has-default-unit'; } // type if ( ! empty( $this->field['param'] ) ){ $type = $this->field['param']; } // output ----- echo '