<ul class='node_children'>
{if $template_event eq 'filter_by'} 
{get_threaded_children_structured listing_amount=23232322323 offset=$offset search_type=$post_vars.search_type
link='yes' ordearby=$listing_order search=$post_vars.node_content} 
{else} {get_threaded_children_structured thread_depth=3 link='yes' listing_amount=$listing_amount offset=$offset
ordearby=$listing_order} {/if} 

{section name=child loop=$get_threaded_children_structured}
{if $get_threaded_children_structured[child].template_id neq 1549834} 

{*depth in hierarchy*}
{if $template_event eq 'filter_by'}
  {math equation="(x-y)" x=$get_threaded_children_structured[child].child_depth
y=$get_threaded_children_structured[child].child_depth_prev assign="p_depth"}
{else}
  {math equation="(x-y)-1" x=$get_threaded_children_structured[child].child_depth
y=$get_threaded_children_structured[child].child_depth_prev assign="p_depth"}
{/if}
{assign var=$child_creator value=$get_threaded_children_structured[child].node_creator}

{*obsah childu*}
{capture name=child_container}
{*IGNORE USER CONDITION*}{if $ignore[$child_creator] neq true}
{*child container*}{include file="4560781.tpl"}
{/if}{*IGNORE USER CONDITION end*}
{/capture} 


{*stromcek prestri sa*}
{if $smarty.section.child.first && $node.child_starter < $get_threaded_children_structured[child].child_depth}
{section name=sta loop=$get_threaded_children_structured[child].ph_depth}
<li class='level{$get_threaded_children_structured[child].child_depth} lvl' title='virtual'><ul>
{/section}
{/if}
{if $get_threaded_children_structured[child].node_parent neq $node.node_id &&
$get_threaded_children_structured[child].node_status neq 'linked' &&
$get_threaded_children_structured[child].node_parent neq $get_threaded_children_structured[child.index_prev].node_id &&
$get_threaded_children_structured[child].child_depth_prev < $get_threaded_children_structured[child].child_depth} 
{section name=sta loop=$p_depth}
<li class='level{$get_threaded_children_structured[child].child_depth} lvl' title='virtual'><ul>
{/section}
{elseif $get_threaded_children_structured[child].node_parent neq $node.node_id &&
$get_threaded_children_structured[child.index_prev].node_status neq 'linked' &&
$get_threaded_children_structured[child].node_parent neq $get_threaded_children_structured[child.index_prev].node_id &&
$get_threaded_children_structured[child].child_depth_prev < $get_threaded_children_structured[child].child_depth} 
{section name=sta loop=$p_depth}
<li class='level{$get_threaded_children_structured[child].child_depth} lvl' title='virtual'><ul>
{/section}
{elseif $get_threaded_children_structured[child].thread_root neq $get_threaded_children_structured[child].thread_root_prev
&& $get_threaded_children_structured[child].node_parent neq $node.node_id &&
$get_threaded_children_structured[child].node_status neq 'linked'}
{section name=sta loop=$get_threaded_children_structured[child].ph_depth}
<li class='level{$get_threaded_children_structured[child].child_depth} lvl' title='virtual'><ul>
{/section}
{elseif $get_threaded_children_structured[child].thread_root neq $get_threaded_children_structured[child].thread_root_prev
&& $get_threaded_children_structured[child].node_parent neq $node.node_id &&
$get_threaded_children_structured[child.index_prev].node_status neq 'linked'} 
{section name=sta loop=$get_threaded_children_structured[child].ph_depth}
<li class='level{$get_threaded_children_structured[child].child_depth} lvl' title='virtual'><ul>
{/section}
{/if}
  <li {if $get_threaded_children_structured[child].node_status neq
'linked'}id='sub{$get_threaded_children_structured[child].node_id}'{/if}
class='level{$get_threaded_children_structured[child].child_depth} lvl'>
    <a href='/id/{$get_threaded_children_structured[child].node_parent}'
class='vector'>{$get_threaded_children_structured[child].node_vector}</a>
    {$smarty.capture.child_container} {*obsah*}
    
{if $get_threaded_children_structured[child].child_depth_next > $get_threaded_children_structured[child].child_depth
&& $get_threaded_children_structured[child].thread_root neq $get_threaded_children_structured[child].thread_root_prev
&& $get_threaded_children_structured[child].node_parent neq $node.node_id}
{section name=con loop=$get_threaded_children_structured[child].c_depth}
  <li class='level{$get_threaded_children_structured[child].child_depth} lvl'
title='virtual'><ul>
{/section}

{elseif $get_threaded_children_structured[child].child_depth_next > $get_threaded_children_structured[child].child_depth
&& $get_threaded_children_structured[child].thread_root eq $get_threaded_children_structured[child].thread_root_next
&& $get_threaded_children_structured[child.index_next].node_status neq 'linked'}<ul>
    {elseif $get_threaded_children_structured[child].child_depth_next > $get_threaded_children_structured[child].child_depth
&& $get_threaded_children_structured[child.index_next].node_status eq 'linked'} <ul>{else}{if
$get_threaded_children_structured[child].node_children_count}<a
href='/id/{$get_threaded_children_structured[child].node_id}' class='descendants_link'> more children:
({$get_threaded_children_structured[child].node_children_count})</a>{/if}

   </li>
{/if}{if $get_threaded_children_structured[child].child_depth_next < $get_threaded_children_structured[child].child_depth ||
$get_threaded_children_structured[child].thread_root neq $get_threaded_children_structured[child].thread_root_next ||
$smarty.section.child.last}
{section name=fin loop=$get_threaded_children_structured[child].hierarchy_depth}
   </ul></li>
{/section}{/if}
{/if}{/section}
</ul>