-
Notifications
You must be signed in to change notification settings - Fork 0
/
followermodal.php
97 lines (84 loc) · 4.8 KB
/
followermodal.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
<!-- FOLLOWERS MODAL -->
<div class="modal fade" id="followersmodal" role="dialog">
<div class="modal-dialog modal-sm">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title"><b>Followers (<?php if($followerquery) { echo mysqli_num_rows($followerquery); } else { echo '0'; } ?>): </b></h4>
</div>
<div class="modal-body fourpluscomments">
<div class="notif">
<ul class="updates-list">
<?php foreach($followers as $row) {
echo '<li class="updates">
<div class="update-item">
<a class="pull-left" href="account.php?usr='.$row['username'].'">
<img class="img-circle avatar" src="'.$row['profilepic'].'" alt="avatar">
</a>
<div class="updates-body">
<div class="update-heading">
<p>
<span class="user">'.$row['username'].'</span>';
if(in_array($row['followerid'], $viewerfollowids)) {
echo '<img src="vendor/custom-icons/circle-check.png" class="pull-right" height="25px">';
} else if($row['followerid'] != $_SESSION['id']) {
echo '<img src="vendor/custom-icons/circle-plus.png" class="pull-right" height="25px">';
}
echo '</p>
</div>
</div>
</div>
</li>';
} ?>
</ul>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- FOLLOWING MODAL -->
<div class="modal fade" id="followingmodal" role="dialog">
<div class="modal-dialog modal-sm">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title"><b>Following (1): </b></h4>
</div>
<div class="modal-body fourpluscomments">
<div class="notif">
<ul class="updates-list">
<?php foreach($following as $row) {
echo '<li class="updates">
<div class="update-item">
<a class="pull-left" href="account.php?usr='.$row['username'].'">
<img class="img-circle avatar" src="'.$row['profilepic'].'" alt="avatar">
</a>
<div class="updates-body">
<div class="update-heading">
<p>
<span class="user">'.$row['username'].'</span>';
if(in_array($row['userid'], $viewerfollowids)) {
echo '<img src="vendor/custom-icons/circle-check.png" class="pull-right" height="25px">';
} else if($row['userid'] != $_SESSION['id']) {
echo '<img src="vendor/custom-icons/circle-plus.png" class="pull-right" height="25px">';
}
echo '</p>
</div>
</div>
</div>
</li>';
} ?>
</ul>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>