-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer_landing.php
134 lines (126 loc) · 7.4 KB
/
footer_landing.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
125
126
127
128
129
130
131
132
133
134
<!-- Footer Area Start Here -->
<footer>
<div class="footer-area-top">
<div class="container">
<div class="row">
<div class="col-lg-4 col-md-6 col-sm-12">
<div class="footer-box">
<h2 class="title-bold-light title-bar-left text-uppercase">Most Viewed Posts</h2>
<ul class="most-view-post">
<?php
include('db_conn.php');
$sql = "SELECT *, DATE_FORMAT(date, '%a-%d-%b-%Y') as newDate FROM `news` ORDER BY `id` DESC LIMIT 0,1";
$result = mysqli_query($conn, $sql);
if (mysqli_num_rows($result) > 0) {
while ($row = mysqli_fetch_array($result)) {
?>
<li>
<div class="media">
<a <?php echo "href='news.php?link=".$row['link'] . "' "; ?>>
<img src="app/uploads/cover_photo/<?php echo $row['cover_photo'];?>" alt="post" class="img-fluid" style="height:100px;">
</a>
<div class="media-body">
<h3 class="title-medium-light size-md mb-10">
<a <?php echo "href='news.php?link=".$row['link'] . "' "; ?>><?php echo$row['headline'];?></a>
</h3>
<div class="post-date-light">
<ul>
<li>
<span>
<i class="fa fa-calendar" aria-hidden="true"></i>
</span><?php echo$row['newDate'];?></li>
</ul>
</div>
</div>
</div>
</li>
<?php
}
}
?>
</ul>
</div>
</div>
<div class="col-xl-4 col-lg-3 col-md-6 col-sm-12">
<div class="footer-box">
<h2 class="title-bold-light title-bar-left text-uppercase">Popular Categories</h2>
<?php
include('db_conn.php');
$sql = "SELECT *, DATE_FORMAT(date, '%a-%d-%b-%Y') as newDate FROM `news` ORDER BY `id` DESC LIMIT 0,5";
$result = mysqli_query($conn, $sql);
if (mysqli_num_rows($result) > 0) {
while ($row = mysqli_fetch_array($result)) {
?>
<ul class="popular-categories">
<li>
<a <?php echo "href='news.php?link=".$row['link'] . "' "; ?>><?php echo$row['category'];?>
<span><?php echo$row['post_view'];?></span>
</a>
</li>
</ul>
<?php
}
}
?>
</div>
</div>
<div class="col-xl-4 col-lg-5 col-md-12 col-sm-12">
<div class="footer-box">
<h2 class="title-bold-light title-bar-left text-uppercase">Post Gallery</h2>
<ul class="post-gallery shine-hover ">
<?php
include('db_conn.php');
$sql = "SELECT *, DATE_FORMAT(date, '%a-%d-%b-%Y') as newDate FROM `news` ORDER BY `id` ASC LIMIT 0,6";
$result = mysqli_query($conn, $sql);
if (mysqli_num_rows($result) > 0) {
while ($row = mysqli_fetch_array($result)) {
?>
<li>
<a <?php echo "href='news.php?link=".$row['link'] . "' "; ?>>
<figure>
<img src="app/uploads/cover_photo/<?php echo $row['cover_photo'];?>" style="height:100px;">
</figure>
</a>
</li>
<?php
}
}
?>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="footer-area-bottom">
<div class="container">
<div class="row">
<div class="col-4">
<a href="index.php">
<img src="img/55.png" alt="logo" style="height:150px; margin-left:480px; margin-bottom:10px;">
</a>
</div>
<div class="col-12 text-center">
<ul class="footer-social">
<li>
<a href="https://www.facebook.com" title="facebook">
<i class="fa fa-facebook" aria-hidden="true"></i>
</a>
</li>
<li>
<a href="https://www.twitter.com" title="twitter">
<i class="fa fa-twitter" aria-hidden="true"></i>
</a>
</li>
<li>
<a href="https://www.instagram.com" title="instagram">
<i class="fa fa-instagram" aria-hidden="true"></i>
</a>
</li>
</ul>
<p>© 2022 OnL News Website designed by Femi S. All Rights Reserved</p>
</div>
</div>
</div>
</div>
</footer>