<div id="lastTagged-list">
	<h3 class="head">Les derniers films taggés</h3>
	<ul>
	<?php 
	foreach($lastTaggedFilms as $item): 
		$ref = $item->getRef();
		$slug = $item->getSlugUrl();
		$title = $item->getTitle();
		
		// image file
		$image_file = $item->getImages();
		// image file
		$video_file = $item->getVideos();
		// directors list
		$directors = json_decode($item->getDirectors(), true);
	?>
	<li>	
		<div id="player-<?php echo $ref; ?>" class="player-item" style="background:transparent url('posters/<?php echo $image_file[0]['file'].".jpg"; ?>') no-repeat;" href="<?php echo 	$videoPath.$video_file[0]['file'].".f4v";?>">
			<div class="infos">
		    	<a href="<?php echo url_for('@editor?ref='.$ref.'&film_slug='.$slug); ?>" class="title" target="_top"><?php echo $title; ?></a> <span class="film-infos">De <?php echo $directors['name']; ?></span>
		    </div>
		    <img src="images/buttons/btn_play.png"/ id="play"></a>
		     <div class="tags">		    	
				<ul class="item-list tag-list">   
				<li><span class="head">
			    <i>Tags liés au film :</i>
				</span></li>
				 <li class="tag-score-<?php echo $tag['score']; ?>">
				    <a href="">anna</a>
				  </li><li class="tag-score-5">
				    <a href="">Jalousie</a>
				  </li><li class="tag-score-3">
				    <a href="">erotomanie</a>
				  </li><li class="tag-score-2">
				    <a href="">violence</a>
				  </li>
				  <li class="tag-score-<?php echo $tag['score']; ?>">
				    <a href="">anna</a>
				  </li><li class="tag-score-5">
				    <a href="">Jalousie</a>
				  </li><li class="tag-score-3">
				    <a href="">erotomanie</a>
				  </li><li class="tag-score-2">
				    <a href="">violence</a>
				  </li>				 
				</ul>
		    </div>	    
		</div>
		
	</li>
	<?php endforeach; ?>
	</ul>	
</div>	