| @@ -156,9 +156,9 @@ | ||
| 156 | 156 | } else { |
| 157 | 157 | /* return false if no content */ |
| 158 | 158 | } |
| 159 | 159 | |
| 160 | - echo $this->view('wdk-field-files', $this->data); | |
| 160 | + $this->view('wdk-field-files', $this->data, true); | |
| 161 | 161 | } |
| 162 | 162 | |
| 163 | 163 | |
| 164 | 164 | private function generate_controls_conf() { |
| @@ -360,9 +360,9 @@ | ||
| 360 | 360 | 'min' => 0, |
| 361 | 361 | 'max' => 100, |
| 362 | 362 | ], |
| 363 | 363 | ], |
| 364 | - 'size_units' => [ 'px', 'vw' ], | |
| 364 | + 'size_units' => [ 'px','em', 'vw', '%', 'custom' ], | |
| 365 | 365 | 'selectors' => [ |
| 366 | 366 | '{{WRAPPER}} .wdk-field-files .wdk-listing-image' => 'height: {{SIZE}}{{UNIT}}', |
| 367 | 367 | ], |
| 368 | 368 | 'separator' => 'after', |