>

" ."file exist: " . $file; // ../zenphoto/albums/photos-du-mois/4_2014.jpg // 4_2014_800_watermark.jpg, 4_2014_FULL_watermark.jpg $photo_du_mois = $file; $title = $tableau[$i]; $size = getimagesize($photo_du_mois, $info); //preprint($size); if ($size[0] > 1000) { // HD $hd = '../../zenphoto/cache/photos-du-mois/' . substr($tableau[$i], 0, strlen($tableau[$i]) - 4) . "_FULL_watermark.jpg"; if (file_exists($hd)) { $size_hd = getimagesize($hd, $info_hd); $imgs['img_hd'] = array( 'url' => $hd, 'width' => $size_hd[0], 'height' => $size_hd[1] ); } else { $imgs['img_hd'] = array( 'url' => '../' . $photo_du_mois, 'width' => $size[0], 'height' => $size[1] ); } // SD $sd = '../../zenphoto/cache/photos-du-mois/' . substr($tableau[$i], 0, strlen($tableau[$i]) - 4) . "_800_watermark.jpg"; if (file_exists($sd)) { $size_sd = getimagesize($sd, $info_sd); $imgs['img_sd'] = array( 'url' => $sd, 'width' => $size_sd[0], 'height' => $size_sd[1] ); } } // / $size[0] > 1000 else { // SD $sd = '../../zenphoto/cache/photos-du-mois/' . substr($tableau[$i], 0, strlen($tableau[$i]) - 4) . "_800_watermark.jpg"; if (file_exists($sd)) { $size_sd = getimagesize($sd, $info_sd); $imgs['img_sd'] = array( 'url' => $sd, 'width' => $size_sd[0], 'height' => $size_sd[1] ); } $imgs['img_hd'] = array( 'url' => "", 'width' => "", 'height' => "" ); } // / ($size[0] <= 1000) $title = explode('.',$title); $title = explode('_',$title[0]); $title = mois2($title[0]) . ' ' . $title[1]; $imgs['img_sd']['title'] = $title; if (isset($info["APP13"])) { $iptc = iptcparse($info["APP13"]); if (isset($iptc['2#120'][0])) $legende = $iptc['2#120'][0]; else $legende = ""; if (isset($iptc['2#005'][0])) $titre = $iptc['2#005'][0]; else $titre = ""; $keyword = ""; if (isset($iptc['2#025'])) { foreach ($iptc['2#025'] as $key => $val) { $keyword .= ''; $keyword .= ', '; } $keyword = substr($keyword, 0, -2); } $imgs['img_sd']['legende'] = $legende; $imgs['img_sd']['titre'] = $titre; $imgs['img_sd']['keyword'] = $keyword; } // / isset($info["APP13"] $exifInfo = ""; $exif_array = read_exif_data_raw($file,0); $exifInfo = __('The','CreatorThemeRes-child') . " " .date(__("F j, Y, g:i a",'CreatorThemeRes-child'),strtotime($exif_array['SubIFD']['DateTimeOriginal'])).' - '; $exifInfo .= $exif_array['SubIFD']['ExposureTime']. __(' at ','CreatorThemeRes-child') .$exif_array['SubIFD']['FNumber'].' - ' .$exif_array['SubIFD']['ISOSpeedRatings'].' ISO - '. __('Focal','CreatorThemeRes-child') .$exif_array['SubIFD']['FocalLength']; $imgs['img_sd']['exif'] = $exifInfo; break; } // /file_exists($file) $i++; } // /while //preprint($imgs); ?>

Titre

Légende

'; ?>

Titre

Légende

? Utilisation: cliquer sur une vignette, puis....
"; $aide .= " -sur ordinateur: naviguer avec les touches flèches droite et gauche, quitter avec ESC.
"; $aide .= " -sur tablettes et smartphones: balayer l'écran avec un doigt vers la droite ou vers la gauche, ou naviguer avec les touches flèches droite et gauche. Cliquer sur la X pour quitter."; ?>

( ? )