-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy paththread.php
139 lines (95 loc) · 3.67 KB
/
thread.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
135
136
137
138
139
<?php
$color = "#eee";
if(check_seen_thread($MESSAGE['msgid']) > 0){
$color = "#f7e5e5";
}
?>
<div id="message_thread" style="background-color: <?=$color?>;position: relative;">
<div>
<?php
$image = "images/user_male.jpg";
if($ROW_USER['gender'] == "Female")
{
$image = "images/user_female.jpg";
}
if(file_exists($ROW_USER['profile_image']))
{
$image = $image_class->get_thumb_profile($ROW_USER['profile_image']);
}
?>
<img src="<?php echo ROOT . $image ?>" style="width: 75px;margin-right: 4px;border-radius: 50%;">
</div>
<div style="width: 100%;">
<div style="font-weight: bold;color: <?php
$color = "#eee";
if(check_seen_thread($MESSAGE['msgid']) > 0){
$color = "#f7e5e5";
}
?>
<div id="message_thread" style="background-color: <?=$color?>;position: relative;">
<div>
<?php
$image = "images/user_male.jpg";
if($ROW_USER['gender'] == "Female")
{
$image = "images/user_female.jpg";
}
if(file_exists($ROW_USER['profile_image']))
{
$image = $image_class->get_thumb_profile($ROW_USER['profile_image']);
}
?>
<img src="<?php echo ROOT . $image ?>" style="width: 75px;margin-right: 4px;border-radius: 50%;">
</div>
<div style="width: 100%;">
<div style="font-weight: bold;color: rgb(51, 168, 255);width: 100%;">
<?php
echo "<a href='".ROOT."profile/$MESSAGE[msgid]'>";
echo htmlspecialchars($ROW_USER['first_name']) . " " . htmlspecialchars($ROW_USER['last_name']);
echo "</a>";
?>
</div>
<?php echo check_tags($MESSAGE['message']) ?>
<?php
if(file_exists($MESSAGE['file']))
{
$post_image = ROOT . $image_class->get_thumb_post($MESSAGE['file']);
echo "<img src='$post_image' style='width:60px;' />";
}
?>
<br/><br/>
<span style="color: #999;">
<?php echo Time::get_time($MESSAGE['date']) ?>
</span>
</div>
<a href="<?=ROOT?>messages/read/<?=$myid?>">
<div style="cursor:pointer;border-top-right-radius:50%;border-bottom-right-radius:50%;background-color: #78d9d0;height:90%;width:50px;position:absolute;right:10px;top:4px;">
<svg fill="white" style="position: absolute;left:50%;top:50%;transform: translate(-50%,-50%)" width="24" height="24" viewBox="0 0 24 24"><path d="M8.122 24l-4.122-4 8-8-8-8 4.122-4 11.878 12z"/></svg>
</div>
</a>
</div>;width: 100%;">
<?php
echo "<a href='".ROOT."profile/$MESSAGE[msgid]'>";
echo htmlspecialchars($ROW_USER['first_name']) . " " . htmlspecialchars($ROW_USER['last_name']);
echo "</a>";
?>
</div>
<?php echo check_tags($MESSAGE['message']) ?>
<?php
if(file_exists($MESSAGE['file']))
{
$post_image = ROOT . $image_class->get_thumb_post($MESSAGE['file']);
echo "<img src='$post_image' style='width:60px;' />";
}
?>
<br/><br/>
<span style="color: #999;">
<?php echo Time::get_time($MESSAGE['date']) ?>
</span>
</div>
<a href="<?=ROOT?>messages/read/<?=$myid?>">
<div style="cursor:pointer;border-top-right-radius:50%;border-bottom-right-radius:50%;background-color: #78d9d0;height:90%;width:50px;position:absolute;right:10px;top:4px;">
<svg fill="white" style="position: absolute;left:50%;top:50%;transform: translate(-50%,-50%)" width="24" height="24" viewBox="0 0 24 24"><path d="M8.122 24l-4.122-4 8-8-8-8 4.122-4 11.878 12z"/></svg>
</div>
</a>
</div>