Current Path : /data/web/virtuals/51568/virtual/www/www/fotopruh/ |
Current File : /data/web/virtuals/51568/virtual/www/www/fotopruh/fotopruh-fotky.php |
<?php $folder = '_web/footerimg'; if (!file_exists($folder)) { $folder = "../../_web/footerimg"; } $html = '<div class="tabulka-overflow"> <div class="galerie mb-3" style="grid-template-columns: repeat(auto-fill, 180px);">'; $pocet = 0; $scan = scandir($folder); foreach($scan as $file) { $fotka = $folder.'/'.$file; // if (@getimagesize($fotka)) { if (($file != '.') && ($file != '..')) { $cesta = pathinfo($file); $html .= '<div class="custom-control custom-checkbox image-checkbox"> <input type="checkbox" class="custom-control-input " id="img-fotobar-'.$cesta['filename'].'" /> <label class="custom-control-label" for="img-fotobar-'.$cesta['filename'].'"> <img class="img-fluid ml-auto mr-auto" src="'.$fotka.'" style="max-height: 90px; object-fit: scale-down; "> </label> </div >'; } // } } echo $html."</div></div>"; ?>