GetParameter('thumbwidth'); if (empty($thumbwidth)) { $thumbwidth = 155; } // hauteur vignette $thumbheight = $GLOBALS['wiki']->GetParameter('thumbheight'); if (empty($thumbheight)) { $thumbheight = 115; } // redimensionnent vignette : // aux dimensions exactes, quitte à rogner l'image (crop) // ou garder dimensions originales à l'intérieur des dimensions (fit) $thumbresize = $GLOBALS['wiki']->GetParameter('thumbresize'); if (empty($thumbresize)) { $thumbresize = 'fit'; } // marge entre les images $thumbmargin = $GLOBALS['wiki']->GetParameter('thumbmargin'); if (empty($thumbmargin)) { $thumbmargin = '1'; } // largeur image plein écran $bigwidth = $GLOBALS['wiki']->GetParameter('bigwidth'); if (empty($bigwidth)) { $bigwidth = 1600; } // hauteur image plein écran $bigheight = $GLOBALS['wiki']->GetParameter('bigheight'); if (empty($bigheight)) { $bigheight = 1200; } // redimensionnent image plein écran : // aux dimensions exactes, quitte à rogner l'image (crop) // ou garder dimensions originales à l'intérieur des dimensions (fit) $bigresize = $GLOBALS['wiki']->GetParameter('bigresize'); if (empty($bigresize)) { $bigresize = 'fit'; } /************************************************************************************************ * code du template ************************************************************************************************/ if (count($fiches) > 0) : // un identifiant unique pour chaque appel dans une meme page $GLOBALS['nbgalleries'] = (isset($GLOBALS['nbgalleries']) ? $GLOBALS['nbgalleries'] + 1 : 1); ?>
AddJavascriptFile('tools/bazar/presentation/javascripts/jquery.photobox.js'); $GLOBALS['wiki']->AddJavascript(' $(document).ready(function () { $(\'#gallery' . $GLOBALS['nbgalleries'] . '\').photobox(\'a\',{ time:0 }); }); '); endif; ?>