Skip to content

Commit 0e4d1bf

Browse files
authored
Add files via upload
1 parent b639257 commit 0e4d1bf

File tree

2 files changed

+72
-0
lines changed

2 files changed

+72
-0
lines changed

blog/blog.php

1.41 KB
Binary file not shown.

blog/blogs.php

+72
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
<?php
2+
3+
include_once("config.php");
4+
5+
?>
6+
7+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
8+
9+
<html>
10+
<?php
11+
include("includes/import.php");
12+
?>
13+
14+
<body>
15+
<?php include("includes/top-bar.php"); include("includes/header.php"); ?><br>
16+
17+
<!-- News With Sidebar Start -->
18+
<div class="container-fluid">
19+
<div class="container">
20+
<div class="row">
21+
<div class="col-lg-8">
22+
<div class="row">
23+
<div class="col-12">
24+
<div class="section-title">
25+
<h4 class="m-0 text-uppercase font-weight-bold">Latest News</h4>
26+
<a class="text-secondary font-weight-medium text-decoration-none" href="">View All</a>
27+
</div>
28+
</div>
29+
30+
31+
<div id="cuerpo">
32+
<?php foreach ($posts as $post): ?>
33+
34+
35+
<div class="col-lg-6">
36+
<a href="blog.php?id=<?php echo $post['id'] ?>" >
37+
<div class="position-relative mb-3">
38+
<img class="img-fluid w-100" src="blog-data/<?php echo $post['id'] ?>/img/banner.jpg" style="object-fit: cover;">
39+
<div class="bg-white border border-top-0 p-4">
40+
<div class="mb-2">
41+
<a class="badge badge-primary text-uppercase font-weight-semi-bold p-2 mr-2"
42+
href=""><?php echo $post['category'] ?></a>
43+
<a class="text-body" href=""><small><?php echo $post['date'] ?></small></a>
44+
</div>
45+
<a class="h4 d-block mb-3 text-secondary text-uppercase font-weight-bold" href=""><?php echo $post['title'] ?></a>
46+
<p class="m-0"><?php echo $post['description'] ?></p>
47+
</div>
48+
<div class="d-flex justify-content-between bg-white border border-top-0 p-4">
49+
<div class="d-flex align-items-center">
50+
<img class="rounded-circle mr-2" src="user/<?php echo $post['user'] ?>/avatar.jpg" width="25" height="25" alt="">
51+
<small><?php echo $post['user'] ?></small>
52+
</div>
53+
<div class="d-flex align-items-center">
54+
<small class="ml-3"><i class="far fa-eye mr-2"></i>12345</small>
55+
<small class="ml-3"><i class="far fa-comment mr-2"></i>123</small>
56+
</div>
57+
</div>
58+
</div>
59+
</a>
60+
</div>
61+
62+
63+
<?php endforeach; ?>
64+
</div>
65+
<?php include("includes/footer.php"); ?>
66+
<!-- Back to Top -->
67+
<a href="#" class="btn btn-primary btn-square back-to-top"><i class="fa fa-arrow-up"></i></a>
68+
</body>
69+
</html>
70+
71+
<?php
72+
?>

0 commit comments

Comments
 (0)