-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.php
124 lines (98 loc) · 4.19 KB
/
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
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<?php
include_once("bootstrap.php");
try {
$user = new User();
$currentUserId = $_SESSION["userId"];
$currentUser = $user->getUserInfo($currentUserId);
} catch (\Throwable $th) {
$error = $th->getMessage();
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-b5kHyXgcpbZJO/tY9Ul7kGkf1S0CWuKcCD38l8YkeH8z8QjE0GmW1gYU5S9FOnJ0" crossorigin="anonymous"></script>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuWlolflfl" crossorigin="anonymous">
<link rel="stylesheet" href="app.css">
<link rel="stylesheet" href="https://use.typekit.net/hay5vbn.css">
<title>Document</title>
</head>
<!-- Navbar -->
<nav class="navbar navbar-expand-lg navbar-light " style="background-color: white; box-shadow: 0px 3px 3px black; font-family: futura-pt, sans-serif;font-weight: 700;">
<!-- Navbar brand -->
<img class="logo" src="img/logo.png" alt="logo" id="logo" style="margin-left: 10px;">
<div class="center" style=" ">
<form class="form-inline ">
<div class="md-form my-0 ">
<input class="form-control mr-sm-2 searchbar " style="width: 150%; " type="text" placeholder="Zoek" aria-label="Search">
</div>
</form>
</div>
<!-- Collapse button -->
<button class="navbar-toggler collapsed" type="button" data-toggle="collapse" data-target="#basicExampleNav" aria-controls="basicExampleNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="navbar-collapse collapse" id="basicExampleNav" style="margin-left: 25%;">
<!-- Links -->
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link waves-effect waves-light" href="index.php">Home</a>
</li>
<li class="nav-item">
<a class="nav-link waves-effect waves-light" href="choose-article.php">verzoek/toevoegen</a>
</li>
<li class="nav-item">
<a class="nav-link waves-effect waves-light" href="profile.php">profiel</a>
</li>
<li class="nav-item">
<a class="nav-link waves-effect waves-light" href="krediet.php">Krediet: <?php echo htmlspecialchars($currentUser["krediet"])?>
</a>
</li>
</ul>
</div>
<!-- Links -->
</nav>
<!-- Navbar -->
<body>
<div class="filter">
<div class="row" style="--bs-gutter-x: 0rem;">
<div class="bg-image p-3 text-center shadow-1-strong col-md text-white flex-item-left" style="background-color:#1E706B ;
background-size: 110%; height: 90vh; flex: 0 1 0%;">
<h1>filters</h1>
<p></p>
<p></p>
<p></p>
<p></p>
</div>
<div class="col-md col-mobile">
<div style="margin-left: 39%; margin-top: 2%">
<a href="" class="finders " style="text-decoration: none; color:black; ">Artikelen </a><a href="add-classifieds.php" class="finders" style="text-decoration: none; color:grey ;">Diensten</a><a href="zoekertjes.php" class="finders" style="text-decoration: none; color:grey ;">Zoekertjes</a>
<hr style="margin-right: 57%; marging-top: 0px">
</div>
<div class="d-flex fllex-wrap" style="margin-left: 5%;">
<?php
$feed = Post::getFeedPosts();
$i = 0;
foreach ($feed as $id => $post) : if ($i == 20) {
break;
} ?>
<?php include("post.inc.php") ?>
<?php $i++;
endforeach; ?>
</div>
</div>
</div>
</div>
</body>
<footer class="footer bg-light text-center text-lg-start">
<!-- Copyright -->
<div class="text-center text-white p-3" style="color:white; background-color: #252523; box-shadow: 0px 0px 6px grey;">
<a class="text-white" style="color:white; text-decoration: none;" href="">© 2020 Copyright: Elias Valienne </a>
</div>
<!-- Copyright -->
</footer>
<script src="app.js"></script>
</html>