field['id']; if ( 'new' == $existing ) { $field_prefix = 'data-'; } // visual builder if( $js ){ $name = $existing; } // preview if ( ! empty( $this->field['preview'] ) ){ $preview = 'preview-'. $this->field['preview']; } // primary if( isset( $this->field['primary'] ) ){ $primary = $this->field['primary']; } if( isset( $this->field['secondary'] ) ){ $secondary = $this->field['secondary']; } if( empty( $this->field['options'][$primary][2] ) ){ $this->field['options'][$primary][2] = ''; } // output ----- if( empty( $this->field['options'] ) ){ echo 'please enter default fields'; return false; } echo '