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;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.photo {
|
||||||
|
display: inline-block;
|
||||||
|
width: 100px;
|
||||||
|
}
|
||||||
|
|
||||||
.directory-ul {
|
.directory-ul {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
ob_start(); // Start reading html
|
ob_start(); // Start reading html
|
||||||
|
|
||||||
//header('Location: construction.php');
|
header('Location: construction.php');
|
||||||
|
|
||||||
define("urlParam", "path");
|
define("urlParam", "path");
|
||||||
define("photoRoot", "photos_folders/photos");
|
define("photoRoot", "photos_folders/photos");
|
||||||
|
@ -74,7 +74,7 @@ function createDirectories($path)
|
||||||
?>
|
?>
|
||||||
<a href="<?= $folderLink ?>">
|
<a href="<?= $folderLink ?>">
|
||||||
<li class="directory-li">
|
<li class="directory-li">
|
||||||
<span id="folderTitle"><?= $folderTitle ?></span>
|
<span id="folderTitle"><?= str_replace("_", " ", $folderTitle) ?></span>
|
||||||
<span id="folderPhotos">
|
<span id="folderPhotos">
|
||||||
<?php if ($photos > 1) {
|
<?php if ($photos > 1) {
|
||||||
echo " - ".$photos." photos";
|
echo " - ".$photos." photos";
|
||||||
|
@ -235,13 +235,13 @@ function generatePath($path)
|
||||||
$currentPath = "";
|
$currentPath = "";
|
||||||
$pathTitle = "Menu";
|
$pathTitle = "Menu";
|
||||||
$pathLink = "?" . urlParam . "=";
|
$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) {
|
foreach ($folders as $value) {
|
||||||
if ($value != "") {
|
if ($value != "") {
|
||||||
$pathTitle = $value;
|
$pathTitle = $value;
|
||||||
$currentPath .= DIRECTORY_SEPARATOR . $value;
|
$currentPath .= DIRECTORY_SEPARATOR . $value;
|
||||||
$pathLink = "?" . urlParam . "=" . $currentPath;
|
$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