source: extensions/Flash_Gallery/modules/PostCard/xml/imageNode.xml.php @ 32081

Revision 3531, 800 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}
10echo '<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").'"/>';
17echo "\n";
18?>
Note: See TracBrowser for help on using the repository browser.