<?php 

$link = JRoute::_("index.php?option=com_eventgallery&view=event&folder=".$this->entry->getFolderName()."&Itemid=".$this->currentItemid);

?>
<div class="item-container item-container-big">
	<div class="item item_first">
		<a href="<?php echo $link ?>">
			<div class="content">				
				<div class="data">
					<?php IF($this->params->get('show_date',1)==1):?><div class="date"><?php echo JHTML::Date($this->entry->getDate());?></div><?php ENDIF ?>
					<div class="title"><?php echo $this->entry->getDescription();?></div>
					<?php IF($this->params->get('show_text',1)==1):?><div class="text"><?php echo $this->entry->getIntroText();?></div><?php ENDIF ?>
					<?php IF($this->params->get('show_imagecount',1)==1):?><div class="imagecount"><?php echo JText::_('COM_EVENTGALLERY_EVENTS_LABEL_IMAGECOUNT') ?> <?php echo $this->entry->getFileCount();?></div><?php ENDIF ?>				
					<?php IF ($this->entry->isCommentingAllowed() && $this->params->get('use_comments')==1 && $this->params->get('show_commentcount',1)==1):?><div class="comment"><?php echo JText::_('COM_EVENTGALLERY_EVENTS_LABEL_COMMENTCOUNT') ?> <?php echo $this->entry->getCommentCount();?></div><?php ENDIF ?>
				</div>
				
				<div class="images event-thumbnails">
					<?php IF ($this->params->get('show_thumbnails',true)):?>
						<?php
	                        $files = $this->eventModel->getEntries($this->entry->getFolderName(), -1, 1, 1);
						?>
						
						<?php foreach($files as $file):
	                        /**
	                        * @var EventgalleryLibraryFile $file
	                        */?>

							<div class="event-thumbnail">
								<?php echo $file->getLazyThumbImgTag(50,50, "", true); ?>	
							</div>
						<?php ENDFOREACH?>
					<?php ENDIF ?>
					<div style="clear:both"></div>
				</div>
			</div>	
		</a>					
	</div>
</div>