forked from bucksphp/bucksphp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
23 lines (19 loc) · 719 Bytes
/
index.php
File metadata and controls
23 lines (19 loc) · 719 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
// Include $shirts data array
include 'includes/data.php';
// print HTML header
include 'includes/header.php';
?>
<div class="row">
<?php /* Loop through shirts and print thumbnails with links to detail pages. Note the foreach/endforeach alternate syntax. It's great for mixing in with HTML. */ ?>
<?php foreach ( $shirts as $id => $shirt ): ?>
<div class="col-sm-4">
<a href="detail.php?id=<?php echo $id; ?>"><img src="<?php echo $shirt['image']; ?>" alt="<?php echo $shirt['name']; ?>"></a>
<h4><a href="detail.php?id=<?php echo $id; ?>"><?php echo $shirt['name'] ?></a></h4>
</div>
<?php endforeach; ?>
</div>
<?php
// print footer HTML
include 'includes/footer.php';
?>