| @@ 147-153 (lines=7) @@ | ||
| 144 | $staticS3Url .= $fileInfo['field_name']; |
|
| 145 | } else { |
|
| 146 | $resizeText = ''; |
|
| 147 | if ( |
|
| 148 | empty($fileInfo['resize']['width']) |
|
| 149 | ) { |
|
| 150 | $resizeText .= '0'; |
|
| 151 | } else { |
|
| 152 | $resizeText .= $fileInfo['resize']['width']; |
|
| 153 | } |
|
| 154 | $resizeText .= '_'; |
|
| 155 | if ( |
|
| 156 | empty($fileInfo['resize']['height']) |
|
| @@ 155-161 (lines=7) @@ | ||
| 152 | $resizeText .= $fileInfo['resize']['width']; |
|
| 153 | } |
|
| 154 | $resizeText .= '_'; |
|
| 155 | if ( |
|
| 156 | empty($fileInfo['resize']['height']) |
|
| 157 | ) { |
|
| 158 | $resizeText .= '0'; |
|
| 159 | } else { |
|
| 160 | $resizeText .= $fileInfo['resize']['height']; |
|
| 161 | } |
|
| 162 | $staticS3Url .= 'contents_file_resize_' . $fileInfo['field_name'] . '/' . $resizeText; |
|
| 163 | } |
|
| 164 | return $staticS3Url; |
|