/
index.php
executable file
·45 lines (33 loc) · 919 Bytes
/
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
<?php
$pageTitle = "Unique T-shirts designed by a frog";
$section = "home";
require_once("inc/config.php");
include(ROOT_PATH . "inc/header.php");
?>
<div class="section banner">
<div class="wrapper">
<img class="hero" src="<?php echo BASE_URL; ?>img/mike-the-frog.png" alt="Mike the Frog says:">
<div class="button">
<a href="<?php echo BASE_URL; ?>shirts/">
<h2>Hey, I’m Mike!</h2>
<p>Check Out My Shirts</p>
</a>
</div>
</div>
</div>
<div class="section shirts latest">
<div class="wrapper">
<h2>Mike’s Latest Shirts</h2>
<?php
include(ROOT_PATH . "inc/products.php");
$products = get_products_all();
?>
<ul class="products">
<?php
$list_view_html = get_products_recent($products);
echo $list_view_html;
?>
</ul>
</div>
</div>
<?php include(ROOT_PATH . 'inc/footer.php') ?>