Lines Matching refs:gallery
41 $gallery['namespace'] = 'Fotos';
44 $gallery['nopicture'] = 'Es sind noch keine Bilder vorhanden.';
45 $gallery['picturename'] = 'Bild #';
46 $gallery['of'] = 'von';
47 $gallery['content'] = 'Übersicht';
48 $gallery['city'] = 'Ort';
49 $gallery['country'] = 'Land';
50 $gallery['count'] = 'Anzahl der Bilder:';
53 $gallery['titlestart'] = '<h2>'; // Überschrift Start
54 $gallery['titleend'] = '</h2>'; // Überschrift Ende
55 $gallery['displaystart'] = '<div class="level2">'; // Start der Ausgabe
56 $gallery['displayend'] = '</div>'; // Ende der Ausgabe
58 $gallery['exif'] = TRUE; // EXIF-Unterstützung
59 $gallery['iptc'] = TRUE; // IPTC-Unterstützung
61 $gallery['savethumbs'] = FALSE; // Thumbnails erstellen und abspeichern
62 $gallery['thumbwidth'] = 100; // Breite der Thumbnails
64 $gallery['randomwidth'] = 150; // Breiter der Thumbails der Zufallbilder
65 $gallery['index'] = 'index.txt'; // Liste mit den Zufallsbildern
75 $gallery['datadir'] = $dir;
77 return $gallery;
93 $gallery = gallery_init();
100 if (strtolower($array_id[0]) != strtolower($gallery['namespace'])) return;
103 $gallery['pic'] = $_GET['pic'];
106 $gallery['name'] = $array_id[count($array_id)-1];
109 if (strtolower($gallery['name']) == strtolower($conf['start'])) return;
112 $gallery['space'] = str_replace(':', '/', str_replace(':'.$gallery['name'], '', $ID));
115 $gallery['suffix'] = strtolower($gallery['name']).'_';
118 $gallery['dir'] = $gallery['datadir'].'/media/'.$gallery['space'];
119 $gallery['media'] = 'media/'.$gallery['space'];
122 if (!is_dir($gallery['dir'])) {
123 echo '<p>'.$gallery['nopicture']."</p>\n";
128 $array = gallery_readdir($gallery);
129 $gallery['image'] = $array[1];
130 $gallery['thumbnail'] = $array[2];
131 $gallery['imagename'] = $array[3];
132 $gallery['thumbname'] = $array[4];
135 $gallery['max'] = count($gallery['image']);
138 if ($gallery['max'] == 0) {
139 echo '<p>'.$gallery['nopicture']."</p>\n";
144 if (isset($gallery['pic'])) {
145 if ($gallery['pic'] > $gallery['max']) $gallery['pic'] = $gallery['max'];
146 if ($gallery['pic'] < 1) $gallery['pic'] = 1;
150 if (!isset($gallery['pic'])) gallery_displaythumbnails($gallery);
151 else gallery_displayimage($gallery);
167 $gallery = gallery_init();
168 $namespace = strtolower($gallery['namespace']);
177 $file = $gallery['datadir'].'/media/'.$namespace.'/'.$gallery['index'];
188 $sizeimage = getimagesize($gallery['datadir'].'/media/'.$picture, $info);
189 $height = $sizeimage[1]/($sizeimage[0]/$gallery['randomwidth']);
190 …$media = ml(str_replace('/', ':', $picture), 'w='.$gallery['randomwidth'].'&h='.$height.'&…
191 if (isset($info["APP13"]) and $gallery['iptc']) {
209 $script = wl($gallery['namespace'].':'.$conf['start']);
210 echo '<div class="randompicture" style="width:'.$gallery['randomwidth'].'px">'."\n";
211 …echo '<a href="'.$script.'"><img src="'.$media.'" alt="'.$alt.'" width="'.$gallery['randomwidth'].…
224 * @param array $gallery Daten-Array
226 function gallery_displaythumbnails($gallery) { argument
237 echo $gallery['titlestart'].$gallery['content'].$gallery['titleend']."\n";
238 echo $gallery['displaystart']."\n";
239 echo $gallery['count'].' '.$gallery['max']."\n";
242 for ($i = 0; $i < $gallery['max']; $i++):
244 if ($gallery['savethumbs']) {
245 if (!file_exists($gallery['thumbnail'][$i])) gallery_createthumbnail($gallery, $i);
246 $sizethumb = getimagesize($gallery['thumbnail'][$i]);
249 $sizeimage = getimagesize($gallery['image'][$i], $info);
252 if ($gallery['iptc'] and isset($info["APP13"])) {
259 if ($gallery['savethumbs']) {
260 $media = ml(getNS($ID).':'.$gallery['thumbname'][$i], 'w=&h=&cache=cache', TRUE);
261 …'pic='.($i+1).'" title="'.$gallery['picturename'].($i+1).$iptc_caption.'"><img class="thumb" src="…
263 …$media = ml(getNS($ID).':'.$gallery['imagename'][$i], 'w='.$gallery['thumbwidth'].'&h=&cac…
264 $height = $sizeimage[1]/($sizeimage[0]/$gallery['thumbwidth']);
265 …gallery['picturename'].($i+1).$iptc_caption.'"><img class="thumb" src="'.$media.'" alt="'.$gallery…
271 echo $gallery['displayend']."\n";
280 * @param array $gallery Daten-Array
282 function gallery_displayimage($gallery) { argument
285 $size = getimagesize($gallery['image'][$gallery['pic']-1], $info);
288 if ($gallery['exif']) {
289 $exif = exif_read_data($gallery['image'][$gallery['pic']-1],'',true,false);
296 if (isset($info["APP13"]) and $gallery['iptc']) {
342 …echo $gallery['titlestart'].$gallery['picturename'].$gallery['pic'].' '.$gallery['of'].' '.$galler…
343 echo $gallery['displaystart']."\n";
346 …$detail = ml(getNS($ID).':'.$gallery['imagename'][$gallery['pic']-1], 'id='.$ID.'&cache=cache'…
347 …$media = ml(getNS($ID).':'.$gallery['imagename'][$gallery['pic']-1], 'w=&h=&cache=cache', …
348 $alt = getNS($ID).':'.$gallery['imagename'][$gallery['pic']-1];
351 …g class="photo" src="'.$media.'" alt="'.$gallery['picturename'].$gallery['pic'].' '.$gallery['of']…
356 if ($exif_date != '' and $gallery['exif']) {
361 if ($gallery['iptc']) {
367 echo $gallery['city'].': '.$iptc_city;
371 echo $gallery['country'].': '.$iptc_country."\n";
383 gallery_navigation($gallery);
387 echo $gallery['displayend']."\n";
396 * @param array $gallery Daten-Array
399 function gallery_readdir($gallery) { argument
400 $path = $gallery['dir'].'/';
401 $suffix = strtolower($gallery['suffix']);
456 * @param array $gallery Daten-Array
459 function gallery_createthumbnail($gallery, $nr) { argument
460 $image = $gallery['image'][$nr];
461 $thumbnail = $gallery['thumbnail'][$nr];
474 $newwidth = $gallery['thumbwidth'];
489 * @param array $gallery Daten-Array
491 function gallery_navigation($gallery) { argument
505 $start = $gallery['pic']-2;
509 if ($ende > $gallery['max']+1) {
510 $ende = $gallery['max']+1;
517 if ($gallery['savethumbs']) $sizethumb = getimagesize($gallery['thumbnail'][$i]);
518 $sizeimage = getimagesize($gallery['image'][$i], $info);
521 if (isset($info["APP13"]) and $gallery['iptc']) {
528 if ($gallery['savethumbs']) {
529 $media = ml(getNS($ID).':'.$gallery['thumbname'][$i], 'w=&h=&cache=cache', TRUE);
531 …$media = ml(getNS($ID).':'.$gallery['imagename'][$i], 'w='.$gallery['thumbwidth'].'&h=&cac…
532 $height = $sizeimage[1]/($sizeimage[0]/$gallery['thumbwidth']);
536 if ($i+1 == $gallery['pic']) {
537 …if ($gallery['savethumbs']) echo '<img class="thumbactiv" src="'.$media.'" alt="'.$gallery['pictur…
538 …class="thumbactiv" src="'.$media.'" alt="'.$gallery['picturename'].($i+1).$iptc_caption.'" width="…
540 …gallery['savethumbs']) echo '<a href="'.$script.$trenner.'pic='.($i+1).'" title="'.$gallery['pictu…
541 …gallery['picturename'].($i+1).$iptc_caption.'"><img class="thumb" src="'.$media.'" alt="'.$gallery…
551 if ($gallery['pic'] > 1) {
552 …echo '<a href="'.$script.$trenner.'pic=1" title="'.$gallery['picturename'].'1"><<</a> '…
553 …echo '<a href="'.$script.$trenner.'pic='.($gallery['pic']-1).'" title="'.$gallery['picturename'].(…
559 …echo '<a href="'.$script.'" title="'.$gallery['content'].'">'.$gallery['content'].'</a> '."\n…
561 if ($gallery['pic'] < $gallery['max']) {
562 …echo '<a href="'.$script.$trenner.'pic='.($gallery['pic']+1).'" title="'.$gallery['picturename'].(…
563 …echo '<a href="'.$script.$trenner.'pic='.$gallery['max'].'" title="'.$gallery['picturename'].$gall…