Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id="content" style="-moz-border-radius: 10px; border-radius: 10px; background-color:rgba(0,0,0,0.3); width: 70% !important; height: 70% !important; top: 15%; left: 15%; position: absolute; max-width: 1150px;">
- <div id="current_vid" style="width: 50%; height: 100%; float: left; min-width: 328px; position: absolute; left: 15px; bottom: 15px;">
- <?php
- $ytDataEx = json_decode(file_get_contents('https://www.googleapis.com/youtube/v3/videos?id=' . $current_vid. '&key=AIzaSyC09WYFrt98J9E0ZiQu99URiWy7kgtIAbY&part=snippet,statistics&fields=items(snippet(title,description,publishedAt),statistics(viewCount,likeCount))'));
- $snippet = $ytDataEx->items[0]->snippet;
- $stats = $ytDataEx->items[0]->statistics;
- $vid_title = $snippet->title;
- $vid_desc = $snippet->description;
- $vid_date = $snippet->publishedAt;
- $vid_view = $stats->viewCount;
- $vid_like = $stats->likeCount;
- ?>
- <div id="title" style="width:100%; height: 50px; text-align:center; position: absolute; overflow: hidden;">
- <h1 style="font-family: 'Righteous'; font-size: 23px; -webkit-text-stroke: 1px black; color: white; text-shadow: 3px 3px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;"><?php echo $vid_title ?></h1>
- </div>
- <div id="cont" style="width: 100%; position: absolute; top: 65px; bottom: 15px; display: block !important;">
- <div style="height: 50%; position: relative;">
- <div class="videoWrapper">
- <iframe width="560" height="349" src="http://www.youtube.com/embed/<?php echo $current_vid ?> ?rel=0&hd=1" frameborder="0" allowfullscreen></iframe>
- </div>
- </div>
- <div id="vid_meta" style="height: 50%; overflow-y:auto; margin-top: 20px; position: relative; display: block !important;">
- <div id="desc">
- <?php echo $vid_desc ?>
- </div>
- </div>
- </div>
- </div>
- <div id="other_vids" style="width: 50%; height: 100%; float: left;padding-top: 50px; left: 50%; padding-left: 15px; position: absolute;">
- <div id="choices" style="width: 95%; height: 95%; overflow-y:auto;">
- <?php
- for($i = 0; $i < count($vid_ids); ++$i) {
- echo "<div class=\"choice\" style=\"width: 150px; height: 120px; margin-left: 15px !important; margin-bottom: 15px; float: left;background-image: url('http://img.youtube.com/vi/" . $vid_ids[$i] . "/0.jpg'); background-size: contain;background-repeat:no-repeat;\"></div>";
- }
- ?>
- </div>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment