<!-- item -->
<div class="item">
	<h2 class="item-title">{$item->title|cms_escape}</h2>

	{if !empty($item->fielddefs)}

	<div class="item-properties">
		{foreach from=$item->fielddefs item=fielddef}

		{*
			Categories were moved to field definitions.
			If you need Categories, create new Field definition with alias "category"
			and Categories will be available again.
		*}

		{if $fielddef.type == 'Categories' && ($fielddef.value != '')}

			{* use LISELoader plugin if you need Category information in default module action templates *}
			{LISELoader item='category' force_array=1 value=$fielddef.value assign='cats'}
	
			<!-- categories -->
			<div class="item-category">
				Category: {implode(',', $cats)}
			</div>
			<!-- categories //-->
			
		{/if}

		{if $fielddef.value && $fielddef.type != 'Categories'}
			{if $fielddef.type == 'SelectFile' || $fielddef.type == 'FileUpload'}
				{$fielddef.name}: <a href="{$fielddef->GetImagePath(true)}/{$fielddef.value}">{$fielddef.value}</a><br />
		{elseif $fielddef.type == 'SelectDateTime'}
					{$fielddef.name}: {$fielddef.value|cms_date_format}<br />
		{else}
			{$fielddef.name}: {$fielddef.value}<br />
			{/if}
		{/if}

		{/foreach}
	</div>

	{/if}
	
	<a href="{$return_url}" class="return-link">return</a>
	{* or use {$return_link} to create link tag *}
	
</div>
<!-- item //-->