Advertisement
Guest User

Untitled

a guest
Nov 14th, 2012
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.58 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
  3.     <head>
  4.     <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  5.     <title>User authentication required</title>
  6.     <link rel="stylesheet" href="css/bootstrap.min.css">
  7.     </head>
  8.     <body>      
  9.      
  10.         <div class="container">
  11.             <h1>Mes dernières vidéos</h1>
  12.  
  13.             <div class="row">
  14.                 <?php
  15.                 require_once "Zend/Loader.php";
  16.                 Zend_Loader::loadClass('Zend_Gdata_YouTube');
  17.                 $yt = new Zend_Gdata_YouTube() ;
  18.                 $videoFeed = $yt->getVideoFeed('http://gdata.youtube.com/feeds/api/users/grafikrt/uploads');
  19.                 foreach($videoFeed as $v): $thumbs = $v->getVideoThumbnails();
  20.                 ?>
  21.                 <div class="span4" style="height:400px;">
  22.                     <div class="thumbnail">
  23.                         <h3><?php echo $v->getVideoTitle(); ?></h3>
  24.                         <img src="<?php echo $thumbs[0]['url']; ?>">
  25.                         <p><?php echo $v->getVideoDescription(); ?></p>
  26.                         <p>
  27.                             <a href="<?php echo $v->getVideoWatchPageUrl(); ?>" class="btn btn-info"> <i class="icon-picture icon-white"></i> Voir cette vidéo</a>
  28.                             <span class="label label-info"><?php echo round($v->getVideoDuration()/60); ?>min</span>
  29.                            
  30.                         </p>
  31.                     </div>
  32.                 </div>
  33.             <?php endforeach; ?>
  34.             </div>
  35.  
  36.         </div>
  37.          
  38.     </body>
  39.     <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
  40. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement