-
Notifications
You must be signed in to change notification settings - Fork 7
/
dashboard.php
36 lines (36 loc) · 1.06 KB
/
dashboard.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
<?php require_once('./controller/Dashboard.php'); ?>
<?php
$Dashboard = new Dashboard();
$Response = [];
$active = $Dashboard->active;
$News = $Dashboard->getNews();
?>
<?php require('./nav.php'); ?>
<main role="main" class="container">
<div class="container">
<div class="row mt-5">
<div class="col-xs-12 col-sm-12 col-md-12 col-xl-12 col-lg-12">
<h2>News</h2>
<hr>
</div>
</div>
<div class="row">
<?php if ($News['status']) : ?>
<?php foreach ($News['data'] as $new) : ?>
<div class="col-xs-12 col-sm-12 col-md-12 col-xl-4 col-lg-4">
<div class="card shadow-lg p-3 mb-5 bg-white rounded">
<div class="news_title">
<h3><?php echo ucwords($new['title']); ?></h3>
</div>
<div class="news_body">
<p><?php echo $new['content']; ?> <a href="javascript:void(0)">Read More</a></p>
</div>
</div>
</div>
<?php endforeach; ?>
<?php endif; ?>
</div>
</div>
</main>
</body>
</html>