<{if $block.type eq 3}>
	<table cellspacing="1" class="outer">
		<tr>
			<th align="center"><{$block.lang_category}></th>
			<th align="center"><{$block.lang_title}></th>
			<th align="center"><{$block.lang_postname}></th>
			<th align="center">
				<{if $block.selected_order=='d.hits' || $block.selected_order=='d.hits DESC'}>
					<{$block.lang_hits}>
				<{elseif $block.selected_order=='d.rating' || $block.selected_order=='d.rating DESC'}>
					<{$block.lang_rating}>
				<{elseif $block.selected_order=='d.votes' || $block.selected_order=='d.votes DESC'}>
					<{$block.lang_votes}>
				<{else}>
					<{$block.lang_hits}>
				<{/if}>
			</th>
			<th align="center"><{$block.lang_updated}></th>
			<{foreach  from=$block.download item=down}>
				<tr class="<{cycle values="odd,even"}>" valign="middle">
				<td>
					<a href="<{$block.mod_url}>/index.php?cid=<{$down.cid}>"><{$down.category}></a>
				</td>
				<td>
					<a href="<{$block.mod_url}>/index.php?page=singlefile&amp;cid=<{$down.cid}>&amp;lid=<{$down.lid}>"><{$down.title}></a>
				</td>
				<td>
					<{$down.postname}>
				</td>
				<td align="center">
					<{if $block.selected_order=='d.hits' || $block.selected_order=='d.hits DESC'}>
						<{$down.hits}>
					<{elseif $block.selected_order=='d.rating' || $block.selected_order=='d.rating DESC'}>
						<{$down.rating}>
					<{elseif $block.selected_order=='d.votes' || $block.selected_order=='d.votes DESC'}>
						<{$down.votes}>
					<{else}>
						<{$down.hits}>
					<{/if}>
				</td>
				<td align="center">
					<{$down.updated}>
				</td>
		</tr>
			<{/foreach}>
	</table>
<{elseif $block.type eq 2}>
	<ul class="d3downloads__block_ul">
		<{foreach  from=$block.download item=down}>
			<li><a href="<{$block.mod_url}>/index.php?page=singlefile&amp;cid=<{$down.cid}>&amp;lid=<{$down.lid}>"><{$down.title}></a>(<{$down.hits}>) <{$down.postname}> <{$down.updated}></li>
		<{/foreach}>
	</ul>
<{else}>
	<ul class="d3downloads__block_ul">
		<{foreach  from=$block.download item=down}>
			<li><a href="<{$block.mod_url}>/index.php?page=singlefile&amp;cid=<{$down.cid}>&amp;lid=<{$down.lid}>"><{$down.title}></a>(<{$down.updated}>)</li>
		<{/foreach}>
	</ul>
<{/if}>