images & path fix
[mirrors/Kyberia-bloodline.git] / data / templates / own_templates / 2194114.tpl
CommitLineData
51ff3226 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}
5{*position in tree*}
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"}
9{*depth in hierarchy*}
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}
11{*root_id decka*}
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"}
28{else}
29{math equation="x-y" x=$hierarch y=$next_depth assign="h_depth"}
30{/if}
31{math equation="x+1" x=$crd assign="starter"}
32
33{*obsah childu*}
34{capture name=child_container}
35{$hierarch}
36{/capture}
37
38{*stromcek prestri sa*}
39{if $smarty.section.child.first && $sterter < $hierarch}
40{section name=sta loop=$ph_depth}
41<li><ul>
42{/section}
43{/if}
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}
46<li><ul>
47{/section}
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}
50<li><ul>
51{/section}
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}
54<li><ul>
55{/section}
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}
58<li><ul>
59{/section}
60{/if}
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>
63 <div class='th_cnt'>
64 {$smarty.capture.child_container}
65 </div>
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}
68 <ul>
69 <li>
70{/section}
71
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}
74 </li>
75{/if}{if $next_depth < $hierarch || $h_root neq $n_root || $smarty.section.child.last}
76{section name=fin loop=$h_depth}
77 </ul>
78</li>
79{/section}{/if}
80{/if}{/section}
81</ul>
This page took 0.172797 seconds and 4 git commands to generate.