<?php require_once('header.php'); $VideoList = videoList(0,18); $featuredList = featuredList(); $viewed = viewedVideo(0, 18); $liked = likedVideo(0, 6); if(count($featuredList->result) > 0){ $feature_data = array_chunk($featuredList->result,3); } if(count($VideoList->result) > 0){ $video_list = array_chunk($VideoList->result,9); } if(count($VideoList->result) > 0){ $viewed_list = array_chunk($viewed->result,6); } //echo '<pre>';print_r($viewed_list);echo '</pre>'; ?> <div id="carousel-featured-mars-featuredvideo-widgets-2" class="carousel carousel-mars-featuredvideo-widgets-2 slide" data-ride="carousel"> <div class="container section-header"> <h3><i class="fa fa-star"></i> Featured Videos</h3> <ol class="carousel-indicators section-nav"> <li data-target="#carousel-featured-mars-featuredvideo-widgets-2" data-slide-to="0" class="bullet active"></li> <li data-target="#carousel-featured-mars-featuredvideo-widgets-2" data-slide-to="1" class="bullet"></li> <li data-target="#carousel-featured-mars-featuredvideo-widgets-2" data-slide-to="2" class="bullet"></li> </ol> </div> <div class="featured-wrapper"> <div class="container"> <div class="row">
<?php ini_set('display_errors', 1); require_once('header.php'); $liked = likedVideo(0, 6); if (isset($_GET['id'])) { $detail = videoDetail($_GET['id']); $temp = $detail->result[0]; } $related = likedVideo(0, 9); if(count($related->result) > 0){ $related = array_chunk($related->result,3); } //echo '<pre>';print_r($temp);echo '</pre>'; ?> <div class="container"> <div class="row"> <div class="col-sm-8"> <div class="video-info small"> <h1><?php echo $temp->title ?></h1> <span class="views"><i class="fa fa-eye"></i><?php echo $temp->views ?></span> <a data-toggle="modal" data-target="#loginmodal" class="option" href="javascript:void(0)" action="like" id="2508"> <span class="likes"><i class="fa fa-thumbs-up"></i> <label class="likevideo2508"><?php echo $temp->likes ?></label> </span> </a> </div> <div class="videoWrapper player"> <iframe hight="98%" width="97%" scrolling="no" src="http://182.18.165.252/multitvfinal/index.php/details?id=<?php echo $temp->id ?>&device=3g" frameborder="0" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen=""></iframe> </div> <div id="lightoff"></div>