<ul class='node_children' {if $template_event eq 'filter_by'}id='filtered_children'{/if}>
{if $template_event eq 'preview'}
<div class='node_content'>
  <div class='node_header'>
    <img
    src='{get_image_link id=$user_id}'
    alt=''
    class='node_avatar'
    /> 
    <div class='node_header_title'>  
      PREVIEW of {$post_vars.node_name}
    </div>
    
  </div>
    
  <div class='node_body'>
      {$post_vars.node_content|preview}      
   </div>   
</div>
{* end of preview *}
{elseif $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} 
{elseif $post_vars.thread_depth neq false} {if $node.node_user_subchild_count eq true}
{get_threaded_children_structured link='yes' listing_amount=200 time=$node.last_visit thread_depth=$post_vars.thread_depth offset=0 ordearby=$listing_order} {else} {get_threaded_children_structured link='yes' listing_amount=$listing_amount thread_depth=$post_vars.thread_depth offset=$offset ordearby=$listing_order} {/if} {else} {if $node.node_user_subchild_count eq true} {get_threaded_children_structured link='yes' listing_amount=200 time=$node.last_visit offset=0 ordearby=$listing_order} {else} {get_threaded_children_structured link='yes' listing_amount=$listing_amount offset=$offset ordearby=$listing_order} {/if} {/if} 

{assign var='children' value=$get_threaded_children_structured}
{section name=child loop=$get_threaded_children_structured}
{if $get_threaded_children_structured[child].template_id neq 1549834 and $child.external_link neq "session://fook"} 

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

{*obsah childu*}
{capture name=child_container}
{*child container*}{include file="4560781.tpl"}
{/capture} 


{*stromcek prestri sa*}
{if $smarty.section.child.first && $node.child_starter < $children[child].child_depth}
{section name=sta loop=$children[child].ph_depth}
<li class='level{$children[child].child_depth} lvl' title='virtual'><ul>
{/section}
{elseif $children[child].node_parent neq $node.node_id && $children[child].node_status neq 'linked' && $children[child].node_parent neq $children[child.index_prev].node_id && $children[child].child_depth_prev < $children[child].child_depth && $children[child].thread_root neq $children[child].thread_root_prev} 
{section name=sta loop=$p_depth}
<li class='virtual lvl' title='virtual'><ul>
{/section}
{elseif $children[child].node_parent neq $node.node_id && $children[child.index_prev].node_status neq 'linked' && $children[child].node_parent neq $children[child.index_prev].node_id && $children[child].child_depth_prev < $children[child].child_depth && $children[child].thread_root neq $children[child].thread_root_prev} 
{section name=sta loop=$p_depth}
<li class='level{$children[child].child_depth} lvl' title='virtual'><ul>
{/section}
{elseif $children[child].thread_root neq $children[child].thread_root_prev && $children[child].node_parent neq $node.node_id && $children[child].node_status neq 'linked'}
{section name=sta loop=$children[child].ph_depth}
<li class='level{$children[child].child_depth} lvl' title='virtual'><ul>
{/section}
{elseif $children[child].thread_root neq $children[child].thread_root_prev && $children[child].node_parent neq $node.node_id && $children[child.index_prev].node_status neq 'linked'} 
{section name=sta loop=$children[child].ph_depth}
<li class='level{$children[child].child_depth} lvl' title='virtual'><ul>
{/section}
{/if}
  <li {if $children[child].node_status neq 'linked'}id='sub{$children[child].node_id}'{/if} class='level{$children[child].child_depth} lvl{if $children[child].node_status eq 'linked'} lvl_link{/if}'>{*IGNORE USER CONDITION*}{if $ignore[$child_creator] neq true}
    <a href='#' class='actionToggleThread' style='display:none' title='close this thread'>-</a>
    <a href='/id/{$children[child].node_parent}' class='vector'>{$children[child].node_vector}</a>
    {$smarty.capture.child_container} {*obsah*}{/if}{*IGNORE USER CONDITION end*}
    
{if $children[child].child_depth_next > $children[child].child_depth && $children[child].thread_root neq $children[child].thread_root_prev && $children[child].node_parent neq $node.node_id}
{section name=con loop=$children[child].c_depth}
  <li class='level{$children[child].child_depth} lvl' title='virtual'><ul>
{/section}

{elseif $children[child].child_depth_next > $children[child].child_depth && $children[child].thread_root eq $children[child].thread_root_prev && $children[child].node_parent neq $node.node_id && $children[child.index_next].node_parent neq $children[child].node_id}
{section name=con loop=$children[child].c_depth}
  <li class='level{$children[child].child_depth} lvl' title='virtual'><ul>
{/section}

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

   </li>
{/if}{if $children[child].child_depth_next < $children[child].child_depth || $children[child].thread_root neq $children[child].thread_root_next || $smarty.section.child.last}
{section name=fin loop=$children[child].hierarchy_depth}
   </ul></li>
{/section}{/if}
{/if}{/section}
</ul>
<table align='center' class='movement'><tr> <td><input type='hidden' name='get_children_offset' value='{$offset}'></td> <td><input type='submit' name='get_children_move' value='<' class='fw'></td> <td><input type='submit' name='get_children_move' value='<<' class='ffw'></td> <td><input name='get_children_move' type='submit' value='>>' class='bw'></td> <td><input type='submit' name='get_children_move' value='>' lass='bbw'></td> </tr></table> 