-
Notifications
You must be signed in to change notification settings - Fork 0
/
areasAll.php
executable file
·90 lines (73 loc) · 2.58 KB
/
areasAll.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<?php
require "lib/site.php";
ob_start();
$pagename = "All Areas";
include('includes/head.php');
include('includes/header.php');
?>
<!--===============================
Landing Image
================================-->
<div id='landing'>
<div id='landing-overlay' class="main"></div>
</div>
<!--===============================
Area Icon & Title
================================-->
<section id='main'>
<img src="assets/svgs/areas.svg"/>
<h2>Areas</h2>
</section>
<!--===============================
Areas Grid
================================-->
<section id='collections' class="main">
<div id='collections-layout' class='collections-grid'>
<?php
$id_table = $exhibits->getIDs();
$area_ids = array();
// each exhibit
for($x=0; $x < count($id_table); $x++)
{
// get locations at exhibit
$temp_area_ids = $exhibits->getAreaID($id_table[$x]);
for($j=0; $j<count($temp_area_ids); $j++){
if(!in_array($temp_area_ids[$j], $area_ids)){
array_push($area_ids, $temp_area_ids[$j]);
}
}
}
?>
<?php for($i=0; $i<count($area_ids); $i++){ ?>
<div class='collection-container'>
<div class='collection-image'>
<img src='<?php echo $source.$areas->get($area_ids[$i])->getThumbPath()?>' />
</div>
<div class='collection-info'>
<h2 class='collection-title'><?php echo $areas->get($area_ids[$i])->getName()?></h2>
<a href="placeSingle.php?id=<?php echo $area_ids[$i];?>&type=A" class='collection-link'>View Project</a>
</div>
</div>
<?php } ?>
<div class='collection-container'>
<div class='collection-image-surprise'>
<img src='assets/svgs/surpriseMe.svg' />
</div>
<a href="placeSingle.php?id=<?php
echo $areas->get_random();
?>&type=A">
<div class='collection-info-surprise'>
<h2 class='collection-title'>SURPRISE ME</h2>
</div>
</a>
</div>
</div>
</section>
<!--===============================
Scripts & Footer
================================-->
<script src='js/index.js'></script>
<script src='js/modals.js'></script>
<?php
include('includes/footer.php');
?>