| @@ 168-174 (lines=7) @@ | ||
| 165 | $staticS3Url .= $fileInfo['field_name']; |
|
| 166 | } else { |
|
| 167 | $resizeText = ''; |
|
| 168 | if ( |
|
| 169 | empty($fileInfo['resize']['width']) |
|
| 170 | ) { |
|
| 171 | $resizeText .= '0'; |
|
| 172 | } else { |
|
| 173 | $resizeText .= $fileInfo['resize']['width']; |
|
| 174 | } |
|
| 175 | $resizeText .= '_'; |
|
| 176 | if ( |
|
| 177 | empty($fileInfo['resize']['height']) |
|
| @@ 176-182 (lines=7) @@ | ||
| 173 | $resizeText .= $fileInfo['resize']['width']; |
|
| 174 | } |
|
| 175 | $resizeText .= '_'; |
|
| 176 | if ( |
|
| 177 | empty($fileInfo['resize']['height']) |
|
| 178 | ) { |
|
| 179 | $resizeText .= '0'; |
|
| 180 | } else { |
|
| 181 | $resizeText .= $fileInfo['resize']['height']; |
|
| 182 | } |
|
| 183 | $staticS3Url .= 'contents_file_resize_' . $fileInfo['field_name'] . '/' . $resizeText; |
|
| 184 | } |
|
| 185 | return $staticS3Url; |
|