[TYPO3-dev] Suggestion to optimize the "click-to-enlarge" option of
Emilie Coma
emilie.coma at wanadoo.fr
Wed May 23 00:53:37 CEST 2007
Hi Gernot,
I have the same problem with version 4.1.1 and tried your solution but no
option appears with the < click-enlarge" option.
Maybe my code is wrong.
If you have time, could you be kind enough to have a look and tell me if I
did a mistake ?
I've been working on that 3 days.
Regards,
emi
if ($conf['JSwindow']) {
if ($conf['window_width']) {
$dims[0] = $conf['window_width'];
}
if ($conf['window_height']) {
$dims[1] = $conf['window_height'];
}
if ($conf['JSwindow.']['parameter']) {
$windowparams = $conf['JSwindow.']['parameter'];
}
$gifCreator =
t3lib_div::makeInstance('tslib_gifbuilder');
$gifCreator->init();
$gifCreator->mayScaleUp = 0;
$dims =
$gifCreator->getImageScale($gifCreator->getImageDimensions($imageFile),$conf
['width'],$conf['height'],'');
$offset =
t3lib_div::intExplode(',',$conf['JSwindow.']['expand'].',');
$a1='<a href="'. htmlspecialchars($url)
.'" onclick="'.
htmlspecialchars('openPic(\''.$GLOBALS['TSFE']->baseUrlWrap($url).'\',\''.($
conf['JSwindow.']['newWindow']?md5($url):'thePicture').'\',\'width='.($dims[
0]+$offset[0]).',height='.($dims[1]+$offset[1]).','.$windowparams.'\');
return false;').
More information about the TYPO3-dev
mailing list