forked from vergnet/site-accueil-insa
photos
This commit is contained in:
parent
bf0f917574
commit
c267f73a36
2 changed files with 9 additions and 4 deletions
|
@ -26,6 +26,11 @@ li {
|
|||
display: inline-block;
|
||||
}
|
||||
|
||||
.photo {
|
||||
display: inline-block;
|
||||
width: 100px;
|
||||
}
|
||||
|
||||
.directory-ul {
|
||||
list-style: none;
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
ob_start(); // Start reading html
|
||||
|
||||
//header('Location: construction.php');
|
||||
header('Location: construction.php');
|
||||
|
||||
define("urlParam", "path");
|
||||
define("photoRoot", "photos_folders/photos");
|
||||
|
@ -74,7 +74,7 @@ function createDirectories($path)
|
|||
?>
|
||||
<a href="<?= $folderLink ?>">
|
||||
<li class="directory-li">
|
||||
<span id="folderTitle"><?= $folderTitle ?></span>
|
||||
<span id="folderTitle"><?= str_replace("_", " ", $folderTitle) ?></span>
|
||||
<span id="folderPhotos">
|
||||
<?php if ($photos > 1) {
|
||||
echo " - ".$photos." photos";
|
||||
|
@ -235,13 +235,13 @@ function generatePath($path)
|
|||
$currentPath = "";
|
||||
$pathTitle = "Menu";
|
||||
$pathLink = "?" . urlParam . "=";
|
||||
echo '<li><a href="'.$pathLink.'" class="link">'.$pathTitle.'</a></li>';
|
||||
echo '<li><a href="'.$pathLink.'" class="link">'.str_replace("_", " ", $pathTitle).'</a></li>';
|
||||
foreach ($folders as $value) {
|
||||
if ($value != "") {
|
||||
$pathTitle = $value;
|
||||
$currentPath .= DIRECTORY_SEPARATOR . $value;
|
||||
$pathLink = "?" . urlParam . "=" . $currentPath;
|
||||
echo ' > <li><a href="'.$pathLink.'" class="link">'.$pathTitle.'</a></li>';
|
||||
echo ' > <li><a href="'.$pathLink.'" class="link">'.str_replace("_", " ", $pathTitle).'</a></li>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue