-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtimeline.php
711 lines (580 loc) · 23.2 KB
/
timeline.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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
<?php
session_start();
if(isset($_SESSION["login"])){
if($_SESSION["login"]){
$id = $_SESSION["id"];
}
else{
header("Location: index.php");
}
}
else{
header("Location: index.php");
}
?>
<?php include_once "includes/connect_db.php" ?>
<?php
// $id = 1810847; //after login id will be set to user id
$roll_no = substr_replace($id,"-",2,0);
$user_name = "";
$user_image = "";
// $course = "cscs213";
$group_id = "1";
$course_name = "Timeline";
// $course_instrutor = "";
$sql = "select * from users where user_id = '$id'";
$result = $con->query($sql);
if($result->num_rows>0){
while($row = $result->fetch_assoc()){
$user_name = $row["user_name"];
$user_image = $row["user_image"];
}
}
class Post {
public $user_name;
public $user_image;
public $text;
public $no_of_likes;
public $image;
public $comments;
public $liked_by_author;
public function __construct($user_name, $user_image, $text, $image, $date,$time, $likes,$no_of_comments, $comments, $liked_by_author){
$this->user_name = $user_name;
$this->sender_name = $user_name;
$this->user_image = $user_image;
$this->date = $date;
$this->time = $time;
$this->text = $text;
$this->image = $image;
$this->no_of_likes = $likes;
$this->comments = $comments;
$this->no_of_comments = $no_of_comments;
$this->liked_by_author = $liked_by_author;
}
}
class Comment {
public $user_name;
public $user_image;
public $text;
public $date;
public $time;
public $no_of_likes;
public $liked_by_author;
public function __construct($user_name, $user_image, $text,$likes, $date, $time,$liked_by_author){
$this->user_name = $user_name;
$this->user_image = $user_image;
$this->text = $text;
$this->date = $date;
$this->time = $time;
$this->no_of_likes = $likes;
$this->liked_by_author = $liked_by_author;
}
}
// $msg = new Message();
// m.message_id, m.message_sender_id, u.user_name, m.message_time, m.message_date, u.user_image, m.message_content, u.user_image, m.message_status
$posts = [];
$sql = "SELECT *
FROM posts p, users u
WHERE p.post_user_id = u.user_id and post_group_id = '$group_id'";
$result = $con->query($sql);
$c = 0;
if($result->num_rows>0){
while($row = $result->fetch_assoc()){
$post_id = $row["post_id"];
$comments = [];
$total_likes = 0;
$liked_by_author = false;
// echo $post_id;
$sql2 = "SELECT count(*) as total from post_likes where like_post_id = '$post_id'";
$result2 = $con->query($sql2);
if($result2->num_rows>0){
while($row2 = $result2->fetch_assoc()){
$total_likes = $row2["total"];
}
}
$sql2 = "SELECT * from post_likes where like_post_id = '$post_id' and like_user_id = '$id'";
$result2 = $con->query($sql2);
if($result2->num_rows>0){
$liked_by_author = true;
}
$sql2 = "SELECT * from post_comments, users where comment_user_id = user_id AND comment_post_id = '$post_id' ";
$result2 = $con->query($sql2);
$comment_count=0;
if($result2->num_rows>0){
while($row2 = $result2->fetch_assoc()){
$comment_id = $row2["comment_id"];
$comment_likes = 0;
$comment_liked_by_author = false;
$sql3 = "SELECT * from comment_likes where comment_id = '$comment_id' and comment_like_user_id = '$id'";
$result3 = $con->query($sql3);
if($result3->num_rows>0){
$comment_liked_by_author = true;
}
$sql3 = "SELECT count(*) as total from comment_likes where comment_id = '$comment_id'";
$result3 = $con->query($sql3);
if($result3->num_rows>0){
while($row3 = $result3->fetch_assoc()){
$comment_likes = $row3["total"];
}
}
$com = new Comment($row2["user_name"],$row2["user_image"],$row2["comment_text"],$comment_likes,$row2["comment_date"],$row2["comment_time"], $comment_liked_by_author);
array_push($comments, $com);
$comment_count++;
}
}
$post = new POST($row["user_name"],$row["user_image"],$row["post_text"],$row["post_image"],$row["post_date"],$row["post_time"],$total_likes,$comment_count,$comments,$liked_by_author);
array_push($posts, $post);
// $msg = new Message($row["message_sender_id"],$row["user_name"],$row["user_image"], $row["message_content"], $row["message_date"], $row["message_time"],$row["message_status"]);
// $messages[$c]= $msg;
// $c+=1;
// if($row["message_status"]=="unread")
// $new_messages +=1;
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<?php include "includes/head.php" ?>
<title>Timeline</title>
</head>
<body>
<!-- Fixed Sidebar Left -->
<?php include "includes/left_sidebar.php" ?>
<!-- ... end Fixed Sidebar Left -->
<!-- Fixed Sidebar Right -->
<?php// include "includes/right_sidebar.php" ?>
<!-- ... end Fixed Sidebar Right -->
<!-- Header -->
<header class="header" id="site-header">
<div class="page-title">
<h6>FPLANET</h6>
</div>
<?php include "includes/header.php" ?>
</header>
<?php include "includes/header_responsive.php" ?>
<!-- ... end Header -->
<!-- Top Header -->
<div class="container">
<div class="row">
<div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-xs-12 ">
<div class="ui-block">
<div class="top-header">
<!-- <div class="top-header-thumb">
<img src="img/top-header1.jpg" alt="nature">
</div> -->
<div class="profile-section">
<div class="row">
<div class="col-lg-5 col-md-5 ">
<ul class="profile-menu">
<li>
<a href="02-Profile.php" class="active">Timeline</a>
</li>
<!-- <li>
<a href="05-ProfilePage-About.html">About</a>
</li>-->
<li>
<a href="friends.php">Friends</a>
</li>
</ul>
</div>
</div>
</div>
<div class="top-header-author">
<!-- <a href="02-ProfilePage.html" class="author-thumb">
<img src="img/author-main1.jpg" alt="author">
</a> -->
<div class="author-content">
<a href="02-ProfilePage.html" class="h4 author-name"><?php echo $course_name ?></a>
<!-- <div class="country">by <?php //echo $course_instrutor ?></div> -->
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- ... end Top Header -->
<div class="container">
<div class="row">
<!-- Main Content -->
<div class="col-xl-6 order-xl-2 col-lg-12 order-lg-1 col-md-12 col-sm-12 col-xs-12">
<input id="user-image" value="<?php echo $user_image ?>" style="display:none;" >
<div id="newsfeed-items-grid">
<div class="ui-block">
<article class="hentry">
<div class="news-feed-form">
<!-- Nav tabs -->
<ul class="nav nav-tabs" role="tablist">
<li class="nav-item">
<a class="nav-link inline-items active show" data-toggle="tab" href="#home-1" role="tab" aria-expanded="true" aria-selected="true">
<svg class="olymp-status-icon">
<svg id="olymp-status-icon" viewBox="0 0 36 32">
<title>status-icon</title>
<path d="M32-0.002h-28.444c-1.963 0-3.556 1.593-3.556 3.557v21.332h3.554v0.004h28.444v-3.557h-28.443v-17.778h28.444v24.889h-24.889v3.556h24.889c1.963 0 3.556-1.593 3.556-3.556v-24.889c0-1.964-1.593-3.557-3.556-3.557zM0 32h3.556v-3.556h-3.556v3.556zM7.109 7.111v3.557h10.667v-3.557h-10.667zM7.109 17.778h21.333v-3.556h-21.333v3.556z"></path>
</svg>
</svg>
<span>Status</span>
<div class="ripple-container"></div></a>
</li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active show" id="home-1" role="tabpanel" aria-expanded="true">
<form>
<div class="author-thumb">
<img src="img/<?php echo $user_image?>-sm.jpg" alt="author">
</div>
<div class="form-group with-icon label-floating is-empty">
<label class="control-label">Share what you are thinking here...</label>
<textarea name="post_content" class="form-control" placeholder=""></textarea>
<span class="material-input"></span></div>
<div class="add-options-message">
<a href="#" class="options-message" data-toggle="tooltip" data-placement="top" data-original-title="ADD PHOTOS">
<svg class="olymp-camera-icon" data-toggle="modal" data-target="#update-header-photo">
<svg id="olymp-camera-icon" viewBox="0 0 43 32">
<title>camera-icon</title>
<path d="M21.333 10.667c-3.927 0-7.111 3.182-7.111 7.111 0 3.927 3.184 7.111 7.111 7.111s7.111-3.184 7.111-7.111c0-3.929-3.184-7.111-7.111-7.111zM21.333 21.337c-1.963 0-3.556-1.593-3.556-3.556s1.593-3.556 3.556-3.556 3.556 1.593 3.556 3.556-1.593 3.556-3.556 3.556zM35.556 3.556h-3.556c0-1.964-1.593-3.556-3.556-3.556h-14.222c-1.963 0-3.556 1.591-3.556 3.556h-3.556c-3.927 0-7.111 3.184-7.111 7.111v14.222c0 3.929 3.184 7.111 7.111 7.111 0 0 6.924 0 15.89 0h0.11v-3.556h-16c-1.963 0-3.556-1.593-3.556-3.556v-14.222c0-1.963 1.593-3.556 3.556-3.556h7.111v-3.556h14.222v3.556h7.111c1.963 0 3.556 1.593 3.556 3.556v14.222c0 1.963-1.593 3.556-3.556 3.556h-1.778v3.556c1.122 0 1.778 0 1.778 0 3.927 0 7.111-3.182 7.111-7.111v-14.222c0-3.927-3.184-7.111-7.111-7.111zM26.667 32h3.556v-3.556h-3.556v3.556z"></path>
</svg>
</svg>
</a>
<button class="btn btn-primary btn-md-2">Post Status</button>
</div>
</form>
</div>
</div>
</div>
</article>
</div>
<?php foreach($posts as $post){ ?>
<div class="ui-block">
<article class="hentry post">
<div class="post__author author vcard inline-items">
<img src="img/<?php echo $post->user_image ?>-sm.jpg" alt="author">
<div class="author-date">
<a class="h6 post__author-name fn" href="#"><?php echo $post->user_name ?></a>
<div class="post__date">
<time class="published" datetime="2004-07-24T18:18">
9 hours ago
</time>
</div>
</div>
<div class="more"><svg class="olymp-three-dots-icon"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="svg-icons/sprites/icons.svg#olymp-three-dots-icon"></use></svg>
<ul class="more-dropdown">
<!-- <li>
<a href="#">Edit Post</a>
</li> -->
<li>
<a href="#">Delete Post</a>
</li>
</ul>
</div>
</div>
<p><?php echo $post->text ?></p>
<?php if($post->image){ ?>
<div class="post-thumb">
<img src="img/<?php echo $post->image ?>.jpg" alt="photo">
</div>
<?php } ?>
<div class="post-additional-info inline-items">
<a href="#" class="post-add-icon <?php if($post->liked_by_author) echo "active" ?> inline-items">
<svg class="olymp-heart-icon"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="svg-icons/sprites/icons.svg#olymp-heart-icon"></use></svg>
<span><?php echo $post->no_of_likes ?></span>
</a>
<div class="comments-shared">
<a href="#" class="post-add-icon inline-items">
<svg class="olymp-speech-balloon-icon"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="svg-icons/sprites/icons.svg#olymp-speech-balloon-icon"></use></svg>
<span><?php echo $post->no_of_comments ?></span>
</a>
</div>
</div>
</article>
<!-- Comments -->
<ul class="comments-list">
<ul class="comments-title">
<li ><svg class="comment-title-icon"
viewBox="0 -15 75 70">
<g
id="g12"><path
id="path2"
d="M44,18.394v21.141c0,2.722-2.207,4.929-4.929,4.929L22,44.535l-10,11v-11H4.929 C2.207,44.535,0,42.328,0,39.606l0-21.141c0-2.722,2.207-4.929,4.929-4.929l34.141-0.071C41.793,13.465,44,15.672,44,18.394z"
style="fill:#EBBA16;" /><path
id="path4"
d="M22,24.465H9c-0.553,0-1-0.448-1-1s0.447-1,1-1h13c0.553,0,1,0.448,1,1S22.553,24.465,22,24.465z"
style="fill:#FFFFFF;" /><path
id="path6"
d="M35,30.465H9c-0.553,0-1-0.448-1-1s0.447-1,1-1h26c0.553,0,1,0.448,1,1S35.553,30.465,35,30.465z"
style="fill:#FFFFFF;" /><path
id="path8"
d="M35,36.465H9c-0.553,0-1-0.448-1-1s0.447-1,1-1h26c0.553,0,1,0.448,1,1S35.553,36.465,35,36.465z"
style="fill:#FFFFFF;" /><path
id="path10"
d="M53.071,2.535l-34.141-0.07C16.207,2.465,14,4.672,14,7.394v6.122l25.071-0.052 c2.722,0,4.929,2.207,4.929,4.93v18.441l7,7.7v-11h2.071c2.722,0,4.929-2.207,4.929-4.929V7.465 C58,4.742,55.793,2.535,53.071,2.535z"
style="fill:#FC852E;" /></g><g
id="g14" /><g
id="g16" /><g
id="g18" /><g
id="g20" /><g
id="g22" /><g
id="g24" /><g
id="g26" /><g
id="g28" /><g
id="g30" /><g
id="g32" /><g
id="g34" /><g
id="g36" /><g
id="g38" /><g
id="g40" /><g
id="g42" /></svg>
<span>Comments</span>
</li></ul>
<?php foreach($post->comments as $comment){ ?>
<li>
<div class="post__author author vcard inline-items">
<img src="img/<?php echo $comment->user_image ?>-sm.jpg" alt="author">
<div class="author-date">
<a class="h6 post__author-name fn" href="02-ProfilePage.html"><?php echo $comment->user_name?></a>
<div class="post__date">
<time class="published" datetime="2004-07-24T18:18">
38 mins ago
</time>
</div>
</div>
<a href="#" class="more"><svg class="olymp-three-dots-icon"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="svg-icons/sprites/icons.svg#olymp-three-dots-icon"></use></svg></a>
</div>
<p><?php echo $comment->text ?></p>
<a href="#" class="post-add-icon <?php if($post->liked_by_author) echo "active" ?> inline-items">
<svg class="olymp-heart-icon">
<svg id="olymp-heart-icon" viewBox="0 0 36 32">
<title>heart-icon</title>
<path d="M23.111 21.333h3.556v3.556h-3.556v-3.556z"></path>
<path d="M32.512 2.997c-2.014-2.011-4.263-3.006-7.006-3.006-2.62 0-5.545 2.089-7.728 4.304-2.254-2.217-5.086-4.295-7.797-4.295-2.652 0-4.99 0.793-6.937 2.738-4.057 4.043-4.057 10.599 0 14.647 1.157 1.157 12.402 13.657 12.402 13.657 0.64 0.638 1.481 0.958 2.32 0.958s1.678-0.32 2.318-0.958l1.863-2.012-2.523-2.507-1.655 1.787c-2.078-2.311-11.095-12.324-12.213-13.442-1.291-1.285-2-2.994-2-4.811 0-1.813 0.709-3.518 2-4.804 1.177-1.175 2.54-1.698 4.425-1.698 0.464 0 2.215 0.236 5.303 3.273l2.533 2.492 2.492-2.532c2.208-2.242 4.201-3.244 5.196-3.244 1.769 0 3.113 0.588 4.496 1.97 1.289 1.284 1.998 2.99 1.998 4.804 0 1.815-0.709 3.522-1.966 4.775-0.087 0.085-0.098 0.094-1.9 2.041l-0.156 0.167 2.523 2.51 0.24-0.26c0 0 1.742-1.881 1.774-1.911 4.055-4.043 4.055-10.603-0.002-14.644z"></path>
</svg>
</svg>
<span><?php echo $comment->no_of_likes ?></span>
</a>
</li>
<?php }?>
</ul>
<!-- ... end Comments -->
<!-- <a href="#" class="more-comments">View more comments <span>+</span></a> -->
<!-- Comment Form -->
<form class="comment-form inline-items">
<div class="post__author author vcard inline-items">
<img src="img/<?php echo $user_image ?>-sm.jpg" alt="author">
<div class="form-group with-icon-right is-empty">
<textarea class="form-control" placeholder=""></textarea>
<div class="add-options-message">
<a href="#" class="options-message" data-toggle="modal" data-target="#update-header-photo">
<svg class="olymp-camera-icon">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="svg-icons/sprites/icons.svg#olymp-camera-icon"></use>
</svg>
</a>
</div>
<span class="material-input"></span></div>
</div>
<button class="btn btn-md-2 btn-primary">Post Comment</button>
<button class="btn btn-md-2 btn-border-think c-grey btn-transparent custom-color">Cancel</button>
</form>
<!-- ... end Comment Form -->
</div>
<?php } ?>
</div>
<!-- <a id="load-more-button" href="#" class="btn btn-control btn-more" data-load-link="items-to-load.html" data-container="newsfeed-items-grid"><svg class="olymp-three-dots-icon"><use xlink:href="icons/icons.svg#olymp-three-dots-icon"></use></svg></a> -->
</div>
<!-- ... end Main Content -->
<!-- Left Sidebar -->
<div class="col-xl-3 order-xl-1 col-lg-6 order-lg-2 col-md-6 col-sm-12 col-xs-12">
<?php include "includes/friend_suggestion.php" ?>
</div>
<!-- ... end Left Sidebar -->
<!-- Right Sidebar -->
<!-- ... end Right Sidebar -->
</div>
</div>
<!-- Window-popup Choose from my Photo -->
<div class="modal fade" id="choose-from-my-photo">
<div class="modal-dialog ui-block window-popup choose-from-my-photo">
<a href="#" class="close icon-close" data-dismiss="modal" aria-label="Close">
<svg class="olymp-close-icon"><use xlink:href="icons/icons.svg#olymp-close-icon"></use></svg>
</a>
<div class="ui-block-title">
<h6 class="title">Choose from My Photos</h6>
<!-- Nav tabs -->
<ul class="nav nav-tabs" role="tablist">
<li class="nav-item">
<a class="nav-link active" data-toggle="tab" href="#home" role="tab" aria-expanded="true">
<svg class="olymp-photos-icon"><use xlink:href="icons/icons.svg#olymp-photos-icon"></use></svg>
</a>
</li>
<li class="nav-item">
<a class="nav-link" data-toggle="tab" href="#profile" role="tab" aria-expanded="false">
<svg class="olymp-albums-icon"><use xlink:href="icons/icons.svg#olymp-albums-icon"></use></svg>
</a>
</li>
</ul>
</div>
<div class="ui-block-content">
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active" id="home" role="tabpanel" aria-expanded="true">
<div class="choose-photo-item" data-mh="choose-item">
<div class="radio">
<label class="custom-radio">
<img src="img/choose-photo1.jpg" alt="photo">
<input type="radio" name="optionsRadios">
</label>
</div>
</div>
<div class="choose-photo-item" data-mh="choose-item">
<div class="radio">
<label class="custom-radio">
<img src="img/choose-photo2.jpg" alt="photo">
<input type="radio" name="optionsRadios">
</label>
</div>
</div>
<div class="choose-photo-item" data-mh="choose-item">
<div class="radio">
<label class="custom-radio">
<img src="img/choose-photo3.jpg" alt="photo">
<input type="radio" name="optionsRadios">
</label>
</div>
</div>
<div class="choose-photo-item" data-mh="choose-item">
<div class="radio">
<label class="custom-radio">
<img src="img/choose-photo4.jpg" alt="photo">
<input type="radio" name="optionsRadios">
</label>
</div>
</div>
<div class="choose-photo-item" data-mh="choose-item">
<div class="radio">
<label class="custom-radio">
<img src="img/choose-photo5.jpg" alt="photo">
<input type="radio" name="optionsRadios">
</label>
</div>
</div>
<div class="choose-photo-item" data-mh="choose-item">
<div class="radio">
<label class="custom-radio">
<img src="img/choose-photo6.jpg" alt="photo">
<input type="radio" name="optionsRadios">
</label>
</div>
</div>
<div class="choose-photo-item" data-mh="choose-item">
<div class="radio">
<label class="custom-radio">
<img src="img/choose-photo7.jpg" alt="photo">
<input type="radio" name="optionsRadios">
</label>
</div>
</div>
<div class="choose-photo-item" data-mh="choose-item">
<div class="radio">
<label class="custom-radio">
<img src="img/choose-photo8.jpg" alt="photo">
<input type="radio" name="optionsRadios">
</label>
</div>
</div>
<div class="choose-photo-item" data-mh="choose-item">
<div class="radio">
<label class="custom-radio">
<img src="img/choose-photo9.jpg" alt="photo">
<input type="radio" name="optionsRadios">
</label>
</div>
</div>
<a href="#" class="btn btn-secondary btn-lg btn--half-width">Cancel</a>
<a href="#" class="btn btn-primary btn-lg btn--half-width">Confirm Photo</a>
</div>
<div class="tab-pane" id="profile" role="tabpanel" aria-expanded="false">
<div class="choose-photo-item" data-mh="choose-item">
<figure>
<img src="img/choose-photo10.jpg" alt="photo">
<figcaption>
<a href="#">South America Vacations</a>
<span>Last Added: 2 hours ago</span>
</figcaption>
</figure>
</div>
<div class="choose-photo-item" data-mh="choose-item">
<figure>
<img src="img/choose-photo11.jpg" alt="photo">
<figcaption>
<a href="#">Photoshoot Summer 2016</a>
<span>Last Added: 5 weeks ago</span>
</figcaption>
</figure>
</div>
<div class="choose-photo-item" data-mh="choose-item">
<figure>
<img src="img/choose-photo12.jpg" alt="photo">
<figcaption>
<a href="#">Amazing Street Food</a>
<span>Last Added: 6 mins ago</span>
</figcaption>
</figure>
</div>
<div class="choose-photo-item" data-mh="choose-item">
<figure>
<img src="img/choose-photo13.jpg" alt="photo">
<figcaption>
<a href="#">Graffity & Street Art</a>
<span>Last Added: 16 hours ago</span>
</figcaption>
</figure>
</div>
<div class="choose-photo-item" data-mh="choose-item">
<figure>
<img src="img/choose-photo14.jpg" alt="photo">
<figcaption>
<a href="#">Amazing Landscapes</a>
<span>Last Added: 13 mins ago</span>
</figcaption>
</figure>
</div>
<div class="choose-photo-item" data-mh="choose-item">
<figure>
<img src="img/choose-photo15.jpg" alt="photo">
<figcaption>
<a href="#">The Majestic Canyon</a>
<span>Last Added: 57 mins ago</span>
</figcaption>
</figure>
</div>
<a href="#" class="btn btn-secondary btn-lg btn--half-width">Cancel</a>
<a href="#" class="btn btn-primary btn-lg disabled btn--half-width">Confirm Photo</a>
</div>
</div>
</div>
</div>
</div>
<!-- ... end Window-popup Choose from my Photo -->
<?php include "includes/chat-popup.php" ?>
<!-- jQuery first, then Other JS. -->
<script src="js/jquery-3.2.0.min.js"></script>
<script src="js/message.js">
</script>
<script src="js/send_request.js"></script>
<!-- Js effects for material design. + Tooltips -->
<script src="js/material.min.js"></script>
<!-- Helper scripts (Tabs, Equal height, Scrollbar, etc) -->
<script src="js/theme-plugins.js"></script>
<!-- Init functions -->
<script src="js/main.js"></script>
<!-- Load more news AJAX script -->
<script src="js/ajax-pagination.js"></script>
<!-- Select / Sorting script -->
<script src="js/selectize.min.js"></script>
<!-- Lightbox popup script-->
<script src="js/jquery.magnific-popup.min.js"></script>
<script src="js/mediaelement-and-player.min.js"></script>
<script src="js/mediaelement-playlist-plugin.min.js"></script>
</body>
</html>