isDot()) continue; if ($item->isDir()) { $albumPath = $item->getPathname(); $info = getAlbumInfo($albumPath); $images = hasSubfolders($albumPath) ? getImagesRecursively($albumPath) : getLatestImages($albumPath); $albums[] = [ 'path' => str_replace('\\', '/', $albumPath), 'title' => $info['title'], 'description' => $info['description'], 'images' => $images, 'hasSubfolders' => hasSubfolders($albumPath), 'hasImages' => hasImages($albumPath) ]; } } // Déterminer le chemin parent pour le bouton retour $parentPath = dirname($currentPath); if (!isSecurePath($parentPath)) { $parentPath = null; } ?> Albums - ICO Retour Retour
$image): ?>