-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpost_delete.php
87 lines (58 loc) · 3.58 KB
/
post_delete.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
<div class="card">
<!-- post title start -->
<div class="post-title d-flex align-items-center">
<!-- profile picture end -->
<div class="profile-thumb">
<a href="#">
<figure class="profile-thumb-middle">
<?php
$profile_image = " ";
if($ROW_USER['gender'] == "Male")
{
$profile_image = "image/male.jpg";
}elseif ($ROW_USER['gender'] == "Female")
{
$profile_image = "image/female.jpg";
}else
{
$profile_image = "image/male.jpg";
}
if(file_exists($ROW_USER['profile_image']))
{
$profile_image = $image_class->get_thumb_profile($ROW_USER['profile_image']);
}
?>
<img src="<?php echo $profile_image; ?>">
</figure>
</a>
</div>
<!-- profile picture end -->
<div class="posted-author">
<h6 class="author">
<?php
//echo "Karishma Suryawanshi";
echo htmlspecialchars($ROW_USER['first_name']) . " " . htmlspecialchars($ROW_USER['last_name']);
?>
</h6>
<span class="post-time">35 min ago</span>
<span class="post-time">
<?php echo htmlspecialchars($ROW['date']); ?>
</span>
</div>
</div>
<!-- post title start -->
<div class="post-content">
<p class="post-desc">
<?php
echo htmlspecialchars($ROW['post']);
?>
</p>
<?php
if(file_exists($ROW['image']))
{
$post_image = $image_class->get_thumb_post($ROW['image']);
echo "<img src = '$post_image' style ='width:90%;' align:'center'; />";
}
?>
</div>
</div>