-
Notifications
You must be signed in to change notification settings - Fork 0
/
video.php
70 lines (56 loc) · 2.11 KB
/
video.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
<?php require_once 'config/init.php';
$video = new Video;
$video_info = $video->getVideoList();
//debug($video_info,true);
if(!$video_info){
$no_video = true;
} else {
//$news = new News;
// $all_news = $news->getNewsByvideoId($video_id, 0, 20);
/// no of pages => ceil(total/limit)
// for($i=1; $i <= $pages; $i++) { echo $i; }
// 1 => 0,20
// 2 => 20, 20,
// 3 => 40, 20
// 4 => 60, 20
// 5 => 80, 20
}
$_meta = array(
'keywords' => 'Hompage, newsportal, news, nepali, samachar'
);
?>
<?php require_once 'inc/header.php'; ?>
<?php require_once 'inc/menu.php';?>
<div class="container">
<div class="row mt-5">
<div class="col-12">
<?php
if(!$video_info){
echo "<p class='alert alert-danger'>Video Not found.</p>";
} else {
foreach($video_info as $video_list){
?>
<div class="row list-view">
<div class="col-md-4">
<iframe width="100%" height="auto" src="https://www.youtube.com/embed/<?php echo $video_list->video_id ?>" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
<div class="col-md-8">
<h4 class="text-justify">
<a href="video.php?id=<?php echo $video_list->id;?>">
<?php echo $video_list->title?>
</a>
</h4>
<p>
<?php echo $video_list->summary; ?>
</p>
</div>
</div>
<?php
}
}
?>
</div>
</div>
</div>
<!-- Video Closed -->
<?php require_once 'inc/footer.php';?>