| @@ 35-38 (lines=4) @@ | ||
| 32 | if ($title === null) { |
|
| 33 | $title = $fileInfo['file_name']; |
|
| 34 | } |
|
| 35 | if (isset($options['resize'])) { |
|
| 36 | $fileInfo['resize'] = $options['resize']; |
|
| 37 | unset($options['resize']); |
|
| 38 | } |
|
| 39 | $options = array_merge( |
|
| 40 | $this->defaultOption, |
|
| 41 | $options |
|
| @@ 73-76 (lines=4) @@ | ||
| 70 | $options |
|
| 71 | ); |
|
| 72 | if (!empty($fileInfo)) { |
|
| 73 | if (isset($options['resize'])) { |
|
| 74 | $fileInfo['resize'] = $options['resize']; |
|
| 75 | unset($options['resize']); |
|
| 76 | } |
|
| 77 | return $this->Html->image($this->urlArray($fileInfo, $options), $options); |
|
| 78 | } |
|
| 79 | return ''; |
|
| @@ 95-98 (lines=4) @@ | ||
| 92 | if (empty($fileInfo)) { |
|
| 93 | return []; |
|
| 94 | } |
|
| 95 | if (isset($options['resize'])) { |
|
| 96 | $fileInfo['resize'] = $options['resize']; |
|
| 97 | unset($options['resize']); |
|
| 98 | } |
|
| 99 | $options = array_merge( |
|
| 100 | $this->defaultOption, |
|
| 101 | $options |
|