@@ 1051-1072 (lines=22) @@ | ||
1048 | $mime = $mime[0]; |
|
1049 | ||
1050 | // Process values for 'auto' |
|
1051 | if ($width === 'auto') |
|
1052 | { |
|
1053 | if ($mime === 'video') |
|
1054 | { |
|
1055 | if ($height === 'auto') |
|
1056 | { |
|
1057 | $width = 480; |
|
1058 | } |
|
1059 | elseif ($widescreen) |
|
1060 | { |
|
1061 | $width = round((intval($height)/9)*16); |
|
1062 | } |
|
1063 | else |
|
1064 | { |
|
1065 | $width = round((intval($height)/3)*4); |
|
1066 | } |
|
1067 | } |
|
1068 | else |
|
1069 | { |
|
1070 | $width = '100%'; |
|
1071 | } |
|
1072 | } |
|
1073 | ||
1074 | if ($height === 'auto') |
|
1075 | { |
|
@@ 1080-1101 (lines=22) @@ | ||
1077 | { |
|
1078 | $height = 0; |
|
1079 | } |
|
1080 | elseif ($mime === 'video') |
|
1081 | { |
|
1082 | if ($width === 'auto') |
|
1083 | { |
|
1084 | if ($widescreen) |
|
1085 | { |
|
1086 | $height = 270; |
|
1087 | } |
|
1088 | else |
|
1089 | { |
|
1090 | $height = 360; |
|
1091 | } |
|
1092 | } |
|
1093 | elseif ($widescreen) |
|
1094 | { |
|
1095 | $height = round((intval($width)/16)*9); |
|
1096 | } |
|
1097 | else |
|
1098 | { |
|
1099 | $height = round((intval($width)/4)*3); |
|
1100 | } |
|
1101 | } |
|
1102 | else |
|
1103 | { |
|
1104 | $height = 376; |