-
Notifications
You must be signed in to change notification settings - Fork 0
/
archiveList.php
60 lines (57 loc) · 2.27 KB
/
archiveList.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
<?php
$rootDir = ""; //used in dirLoad.php
include "dirLoad.php";
include 'database.php';
$mysqli = dbConnect();
$archives = loadArchivesToArray("archives", "performances", $mysqli);
$archiveAlts = loadFirstAlts($archives, $mysqli);
mysqli_close($mysqli);
$fn = basename($_SERVER["PHP_SELF"]);
$urlEnd = substr($fn, 0, strrpos($fn, "."));
$title = "stephan e perez | archives";
$description = "performance and new media";
$ogImg = "archives/images/noseikei/hires/00.jpg";
$ogType = "website";
include "headCore.php";
?>
</head>
<body>
<?php
include "header.php";
?>
<div class="menu-main-container">
<?php
include "menuA.php";
?>
<main>
<div class="tile-section">
<h2 class="heading centered">archives</h2>
<div class="tiles-container">
<?php for($i = 0; $i < sizeof($archives); $i++):?>
<div class="tile">
<div class="tile-more">
<div class="tile-more-text">
<div class="mag-icon tile-mag">
<div class="mag-glass"></div>
<div class="mag-handle"></div>
</div>
more
</div>
</div>
<a href="<?php echo $archives[$i]->link?>"
aria-label="<?php echo $archives[$i]->title ?>">
<img src="<?php echo $archives[$i]->imgDir . 'lores/00.jpg'?>"
alt="<?php echo $archiveAlts[$i] ?>">
</a>
<div class="img-text-box tile-text">
<?php echo $archives[$i]->title . ' (' . substr($archives[$i]->date,0,4) . ')'?>
</div>
</div>
<?php endfor; ?>
</div>
</div>
<?php include "footer.html";?>
</main>
</div>
</body>
</html>