Advertisement
Guest User

testeVimeo

a guest
Jan 24th, 2014
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.72 KB | None | 0 0
  1. <?php
  2. @header( 'Content-Type: text/html; charset=iso-8859-1' );
  3. @header( "Cache-Control: no-cache, must-revalidate" );
  4. @header( "Expires: Mon, 26 Jul 1997 05:00:00 GMT" );
  5. $video = 84648856;
  6. $hash = unserialize( file_get_contents( "http://vimeo.com/api/v2/video/$video.php" ) );
  7. echo "<pre>";print_r($hash);exit;
  8.  
  9.  
  10. if ( isset( $hash[0]['thumbnail_medium'] ) )
  11. {
  12.     $thumb = preg_replace( '/_200/', '_295', $hash[0]['thumbnail_medium'] );
  13.     $title = $hash[0]['title'];
  14.     echo '
  15.            <a class="fancybox-media" style="background: url(' . $thumb . ') !important" href="http://http://vimeo.com/' . $video . '">
  16.                <span id="' . $video . '"></span>
  17.            </a>';
  18. }
  19. else{
  20.     echo 0;
  21. }
  22. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement