Last change
on this file was
3531,
checked in by tiico, 15 years ago
|
First revision (for testing)
Only in French (translation to be done)
|
File size:
800 bytes
|
Rev | Line | |
---|
[3531] | 1 | <?php |
---|
| 2 | if (( $row['IMGWIDTH'] AND $row['IMGWIDTH'] > $module['ext_datas']['PhotoMaxWidth']) |
---|
| 3 | OR ($row['IMGHEIGHT'] AND $row['IMGHEIGHT'] > $module['ext_datas']['PhotoMaxHeight']) ) |
---|
| 4 | { |
---|
| 5 | $coef = min($module['ext_datas']['PhotoMaxWidth'] / $row['IMGWIDTH'], |
---|
| 6 | $module['ext_datas']['PhotoMaxHeight'] / $row['IMGHEIGHT']); |
---|
| 7 | $row['IMGWIDTH'] = $coef * $row['IMGWIDTH']; |
---|
| 8 | $row['IMGHEIGHT'] = $coef * $row['IMGHEIGHT']; |
---|
| 9 | } |
---|
| 10 | echo '<slide jpegURL="'.$picture['img_URLThumb'].'" |
---|
| 11 | d_URL="'.$picture['img_URLThumb'].'" |
---|
| 12 | transition="64" panzoom="1" URLTarget="0" phototime="2" |
---|
| 13 | url="'.$picture['img_URLPicturephp'].'" |
---|
| 14 | title="'.$picture['img_name'].'" |
---|
| 15 | width="'.($row['IMGWIDTH'] ? $row['IMGWIDTH'] : "0").'" |
---|
| 16 | height="'.($row['IMGHEIGHT'] ? $row['IMGHEIGHT'] : "0").'"/>'; |
---|
| 17 | echo "\n"; |
---|
| 18 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.