{* 
//////
//    @version [ Wainuiomata ]
//    @package hwdVideoShare
//    @copyright (C) 2007 - 2009 Highwood Design
//    @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
//////
//    hwdVideoShare Template System:::This template system uses the Smarty Template Engine. 
//    For full documentation, including syntax usage please refer to http://www.smarty.net 
//    or our website at http://www.hwdmediashare.co.uk   
//////
//    This file generates the display for each individual video.
//////
//    VARIABLES AVAILBLE IN THIS TEMPLATE FILE:                                        
//    -- $thumbwidth..........The width of the thumbnail image
//    -- $data->k.............The css identifier                          
//    -- $data->thumbnail.....The video thumbnail image                    
//    -- $data->avatar........The avatar of the uploader               
//    -- $data->title.........The video title
//    -- $data->editvideo.....The edit video button
//    -- $data->deletevideo...The delete video button
//    -- $data->category......The video category
//    -- $data->description...The video description
//    -- $data->rating........The current rating of the video
//    -- $data->views.........The total number of views
//    -- $data->duration......The duration of the video
//    -- $data->uploader......The original uploader
//    -- $data->upload_date...The date uploaded
//////
*}

<div class="box">
	{if $hwdvsTemplateOverride.show_thumbnail eq 1}
		<div>
			{$data->thumbnail}
		</div>
		<div style="clear:both;height:3px;"></div>
	{/if}
	{if $hwdvsTemplateOverride.show_avatar eq 1}
		<div style="float:right;">{$data->avatar}</div>
	{/if}
	<div>
		{if $hwdvsTemplateOverride.show_title eq 1}
			<div><strong>{$data->title}</strong> {$data->editvideo} {$data->deletevideo} {$data->publishvideo}</div>
		{/if}
		{if $hwdvsTemplateOverride.show_views eq 1}
			<div style="font-style:italic;font-size:90%;">{$data->views} {$smarty.const._HWDVIDS_INFO_VIEWS}</div>
		{/if}
		{if $hwdvsTemplateOverride.show_category eq 1}
			<div>{$smarty.const._HWDVIDS_INFO_CATEGORY}: {$data->category}</div>
		{/if}		
		{if $hwdvsTemplateOverride.show_rating eq 1 and $data->showrating}
			<div>{$data->rating}</div>
		{/if}			
		{if $hwdvsTemplateOverride.show_uploader eq 1}
			<div>{$data->uploader}</div>
		{/if}		
		{if $hwdvsTemplateOverride.show_description eq 1}
			<div>{$data->description}</div>
		{/if}
		{if $hwdvsTemplateOverride.show_tags eq 1}
			<div>{$data->tags}</div>
		{/if}
		{if $hwdvsTemplateOverride.show_duration eq 1}
			<div>{$data->duration}</div>
		{/if}
		{if $hwdvsTemplateOverride.show_upload_date eq 1}
			<div>{$data->upload_date}</div>
		{/if}
		{if $hwdvsTemplateOverride.show_comments eq 1}
			<div>{$data->comments} {$smarty.const._HWDVIDS_COMMENTS}</div>
		{/if}
		{if $hwdvsTemplateOverride.show_timesince eq 1}
			<div>{$data->timesince}</div>
		{/if}		
	</div>
	<div style="clear:both;"></div>
</div>

