{get_nodes_by_type type=$type listing_amount=$listing_amount offset=$offset vector=$vector on_main=$on_main}

{foreach from=$get_nodes_by_type item=child}

<table>
<tr>
{if $child.template_id eq 6 }
<td valign='top' rowspan='2'><img width='50' hspace='5' src='{get_image_link id=$child.node_creator}'>&nbsp;</td>
<td valign='top' width='100%'>
<table width='100%'><tr class='header' valign='top'>
<td align='center'>
	<b><a href='/id/{$child.node_id}'>{$child.node_name}</a></b><br>
	(written by <a href='/id/{$child.node_creator}'>{$child.login}</a> , viewed {$child.node_views} times, {$child.node_children_count} submissions
	{if $child.node_user_subchild_count eq true}<span class='most_important'>{$child.node_user_subchild_count} NEW</span>{/if}
	)
<tr><td>{$child.node_content|truncate:230|stripslashes}</td></tr>

{elseif $child.template_id eq 13 }
<td valign='top' rowspan='2'><img width='50' hspace='5' src='{get_image_link id=$child.node_creator}'>&nbsp;</td>
<td valign='top' width='100%'>
<table width='100%'><tr class='header' valign='top'>
<td align='center'>
	<b><a href='/id/{$child.node_id}'>{$child.node_name}</a></b><br>
	(viewed {$child.node_views} times, {$child.node_children_count} submissions
	{if $child.node_user_subchild_count eq true}<span class='most_important'>{$child.node_user_subchild_count} NEW</span>{/if}
	)
<tr><td>{$child.node_content|stripslashes}</td></tr>

{elseif $child.template_id eq 5} 
<td valign='top' rowspan='2'><img hspace='5' src='{get_image_link id=$child.node_id}'>&nbsp;</td>
<td valign='top' width='100%'>
<table width='100%'><tr class='header' valign='top'>
<td>
<center><b><a href='/id/{$child.node_id}'>{$child.node_name}</a></b>
<br>(pridal <a href='/id/{$child.node_creator}'>{$child.login}</a> &nbsp;&nbsp;{$child.node_created|date_format:"%d.%m.%Y."})
<br> ({$child.node_views} hits, {$child.node_children_count} submissions
	{if $child.node_user_subchild_count eq true}<span class='most_important'>{$child.node_user_subchild_count} NEW</span>{/if}
	)
</center>
<tr><td>{$child.node_content|truncate:230|stripslashes}</td></tr>

{/if}
</table>
</table>
{/foreach}
