forked from Cassius-P/B2WEB
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
63 lines (55 loc) · 1.85 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<title>Ilias KELESOGLU</title>
<link rel="stylesheet" href="assets/css/style.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
</head>
<body>
<!-- A inclure -->
<div id="navbar">
<div id="logo_nav">
</div>
<div id="items">
<ul>
<li>
<a href="about.php" class="redirect">À propos</a>
</li>
</ul>
</div>
<div id="test commit">
<ul>
<li>
<a href="#">Je viens d'effectuer une modification du fichier Index.php après avoir FORK le git de Illias.</a>
</li>
</ul>
</div>
</div>
<div id="slide"></div>
<div id="container">
<main>
<div id="gallerie">
<?php
$scan = scandir('assets/images/img');
foreach ($scan as $file){ ?>
<?php
$ext = explode('.', $file)[count(explode('.', $file))-1];
if($file != '.' && $file != '..' && ($ext == 'jpg' || $ext == 'png' || $ext == 'jpeg' || $ext == 'PNG')){ ?>
<div class="img galleryItem" style='background-image: url("/assets/images/img/<?= $file ?>")'>
</div>
<?php }
}
?>
</div>
<div id="showPhoto">
<div id="imageShown">
<img src="" alt="" class="imageShown">
</div>
</div>
</main>
</div>
<script src="assets/js/script.js"></script>
<script src="assets/js/jquery-3.4.1-min.js"></script>
</body>
</html>