-
Notifications
You must be signed in to change notification settings - Fork 0
/
eventList.php
59 lines (56 loc) · 2.07 KB
/
eventList.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
<?php
$rootDir = ""; //used in dirLoad.php
include "dirLoad.php";
include 'database.php';
$mysqli = dbConnect();
$events = loadArchivesToArray("events", "events", $mysqli);
$eventAlts = loadFirstAlts($events, $mysqli);
mysqli_close($mysqli);
$fn = basename($_SERVER["PHP_SELF"]);
$urlEnd = substr($fn, 0, strrpos($fn, "."));
$title = "stephan e perez | events";
$description = "performance and new media";
$ogImg = "events/images/mothersday/carouselHi.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">
events
</h2>
<div class="tiles-container">
<?php for($i = 0; $i < sizeof($events); $i++):?>
<div class="tile landscape">
<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 $events[$i]->link?>"
aria-label="<?php echo $events[$i]->title ?>">
<img src="<?php echo $events[$i]->imgDir . 'carouselLo.jpg'?>"
alt="<?php echo $eventAlts[$i] ?>">
</a>
</div>
<?php endfor; ?>
</div>
</div>
<?php include "footer.html";?>
</main>
</div>
</body>
</html>