1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<?php @header( 'Content-Type: text/html; charset=iso-8859-1' ); @header( "Cache-Control: no-cache, must-revalidate" ); @header( "Expires: Mon, 26 Jul 1997 05:00:00 GMT" ); $video = $_POST['video']; $hash = unserialize( file_get_contents( "http://vimeo.com/api/v2/video/$video.php" ) ); if ( isset( $hash[0]['thumbnail_medium'] ) ) { $thumb = preg_replace( '/_200/', '_295', $hash[0]['thumbnail_medium'] ); $title = $hash[0]['title']; echo ' <div class="col-sm-12 text-center vd"><a class="fancybox-media nopd" style="background: url(' . $thumb . ') !important;background-size: 100% 100% !important;" href="http://http://vimeo.com/' . $video . '"><div class="overtwo2"></div> </a><p id="' . $video . '"></p></div>'; } else{ echo 0; } ?>
|