source: extensions/Flash_Gallery/modules/PhotoStack2/xml/imageNode.xml.php @ 3531

Revision 3531, 802 bytes checked in by tiico, 11 years ago (diff)

First revision (for testing)
Only in French (translation to be done)

Line 
1<?php
2if (( $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
11echo '<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").'"/>';
18echo "\n";
19?>
Note: See TracBrowser for help on using the repository browser.