Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?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 = 84648856;
- $hash = unserialize( file_get_contents( "http://vimeo.com/api/v2/video/$video.php" ) );
- echo "<pre>";print_r($hash);exit;
- if ( isset( $hash[0]['thumbnail_medium'] ) )
- {
- $thumb = preg_replace( '/_200/', '_295', $hash[0]['thumbnail_medium'] );
- $title = $hash[0]['title'];
- echo '
- <a class="fancybox-media" style="background: url(' . $thumb . ') !important" href="http://http://vimeo.com/' . $video . '">
- <span id="' . $video . '"></span>
- </a>';
- }
- else{
- echo 0;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement