Last change
on this file since 18119 was
3531,
checked in by tiico, 15 years ago
|
First revision (for testing)
Only in French (translation to be done)
|
File size:
802 bytes
|
Line | |
---|
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 | |
---|
11 | echo '<slide jpegURL="'.$picture['img_URLThumb'].'" |
---|
12 | d_URL="'.$picture['img_URLThumb'].'" |
---|
13 | transition="64" panzoom="1" URLTarget="0" phototime="2" |
---|
14 | url="'.$picture['img_URLPicturephp'].'" |
---|
15 | title="'.$picture['img_name'].'" |
---|
16 | width="'.($row['IMGWIDTH'] ? $row['IMGWIDTH'] : "0").'" |
---|
17 | height="'.($row['IMGHEIGHT'] ? $row['IMGHEIGHT'] : "0").'"/>'; |
---|
18 | echo "\n"; |
---|
19 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.