1 {math equation="x/8" x=$node.vector_depth assign="crd"}
2 {get_threaded_children link='yes' listing_amount=$listing_amount offset=$offset ordearby=$listing_order}
3 <ul style='width:666px'>
4 {section name=child loop=$get_threaded_children}{if $get_threaded_children[child].template_id neq 1549834}
6 {math equation="(x/8)-y" x=$get_threaded_children[child].depth y=$crd assign="hierarch"}
7 {math equation="(x/8)-y" x=$get_threaded_children[child.index_prev].depth y=$crd assign="prev_depth"}
8 {math equation="(x/8)-y" x=$get_threaded_children[child.index_next].depth y=$crd assign="next_depth"}
10 {if $smarty.section.child.last}{math equation="x-1" x=$hierarch assign="h_depth"}{else}{math equation="x-y" x=$hierarch y=$next_depth assign="h_depth"}{/if}
12 {str_split string=$get_threaded_children[child].node_vector name=hroot length=8}
13 {eval var=$str_split.hroot.$crd assign="h_root"}
14 {str_split string=$get_threaded_children[child.index_prev].node_vector name=proot length=8}
15 {eval var=$str_split.proot.$crd assign="p_root"}
16 {str_split string=$get_threaded_children[child.index_next].node_vector name=nroot length=8}
17 {eval var=$str_split.nroot.$crd assign="n_root"}
18 {*depth in hierarchy*}
19 {math equation="(x-y)-1" x=$hierarch y=$prev_depth assign="p_depth"}
20 {math equation="x-1" x=$hierarch assign="ph_depth"}
21 {math equation="x-y" x=$next_depth y=$hierarch assign="c_depth"}
22 {if $smarty.section.child.last}
23 {math equation="x-1" x=$hierarch assign="h_depth"}
24 {elseif $h_root neq $n_root && $get_threaded_children[child].node_status neq 'linked'}
25 {math equation="x-1" x=$hierarch assign="h_depth"}
26 {elseif $h_root neq $n_root && $get_threaded_children[child.index_next].node_status neq 'linked'}
27 {math equation="x-1" x=$hierarch assign="h_depth"}
29 {math equation="x-y" x=$hierarch y=$next_depth assign="h_depth"}
31 {math equation="x+1" x=$crd assign="starter"}
34 {capture name=child_container}
38 {*stromcek prestri sa*}
39 {if $smarty.section.child.first && $sterter < $hierarch}
40 {section name=sta loop=$ph_depth}
44 {if $get_threaded_children[child].node_parent neq $node.node_id && $get_threaded_children[child].node_status neq 'linked' && $get_threaded_children[child].node_parent neq $get_threaded_children[child.index_prev].node_id && $prev_depth < $hierarch}
45 {section name=sta loop=$p_depth}
48 {elseif $get_threaded_children[child].node_parent neq $node.node_id && $get_threaded_children[child.index_prev].node_status neq 'linked' && $get_threaded_children[child].node_parent neq $get_threaded_children[child.index_prev].node_id && $prev_depth < $hierarch}
49 {section name=sta loop=$p_depth}
52 {elseif $h_root neq $p_root && $get_threaded_children[child].node_parent neq $node.node_id && $get_threaded_children[child].node_status neq 'linked'}
53 {section name=sta loop=$ph_depth}
56 {elseif $h_root neq $p_root && $get_threaded_children[child].node_parent neq $node.node_id && $get_threaded_children[child.index_prev].node_status neq 'linked'}
57 {section name=sta loop=$hp_depth}
61 <li id='sub{$get_threaded_children[child].node_creator}'>
62 <a href='/id/{$get_threaded_children[child].node_parent}' class='vector'>{$get_threaded_children[child].node_vector}</a>
64 {$smarty.capture.child_container}
66 {if $next_depth > $hierarch && $h_root neq $p_root && $get_threaded_children[child].node_parent neq $node.node_id}
67 {section name=con loop=$c_depth}
72 {elseif $next_depth > $hierarch && $h_root eq $n_root && $get_threaded_children[child.index_next].node_status neq 'linked'}
73 <ul>{elseif $next_depth > $hierarch && $get_threaded_children[child.index_next].node_status eq 'linked'}<ul>{else}
75 {/if}{if $next_depth < $hierarch || $h_root neq $n_root || $smarty.section.child.last}
76 {section name=fin loop=$h_depth}