Galarie Updat und schadow updatate

This commit is contained in:
2024-04-16 16:49:39 +02:00
parent e4b68bd591
commit fe15639593
301 changed files with 348 additions and 107 deletions

36
tab/Galerie/2023-2.php Normal file
View File

@@ -0,0 +1,36 @@
<div class="titel">
<img src="inc/bg/1609858275128.png"></img>
<h3>mit Illgs</h3>
</div>
<br>
<div class="gimages">
<?php
$dir = 'src/Bilder/Feiertag/2023.12.25 Weihnachten mit Illgs/';
// Check if the directory exists
if (file_exists($dir) && is_dir($dir)) {
// Get the files of the directory as an array
$scan_arr = scandir($dir);
$files_arr = array_diff($scan_arr, array('.', '..'));
// echo "<pre>"; print_r( $files_arr ); echo "</pre>";
// Get each files of our directory with line break
foreach ($files_arr as $file) {
//Get the file path
$file_path = $dir.$file;
// Get the file extension
$file_ext = pathinfo($file_path, PATHINFO_EXTENSION);
if ($file_ext == "jpg" || $file_ext == "png" || $file_ext == "JPG" || $file_ext == "PNG") {
echo '<a href="'.$dir.$file;
echo '"data-lightbox="mygallery"><img src="'.$dir.$file;
echo '"></a>';
}
}
}
?>
</div>