X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=data%2Ftemplates%2Fown_templates%2F2194114.tpl;fp=data%2Ftemplates%2Fown_templates%2F2194114.tpl;h=b5378f01d7087358745b12cb17f6e77fdba93d93;hb=b42b2bf946332ad8544d53f610be9cb05e80bf56;hp=0000000000000000000000000000000000000000;hpb=e586807dafc64c3fe152ab518599e6cf3f0f84e1;p=mirrors%2FKyberia-bloodline.git
diff --git a/data/templates/own_templates/2194114.tpl b/data/templates/own_templates/2194114.tpl
new file mode 100644
index 0000000..b5378f0
--- /dev/null
+++ b/data/templates/own_templates/2194114.tpl
@@ -0,0 +1,81 @@
+{math equation="x/8" x=$node.vector_depth assign="crd"}
+{get_threaded_children link='yes' listing_amount=$listing_amount offset=$offset ordearby=$listing_order}
+
+{section name=child loop=$get_threaded_children}{if $get_threaded_children[child].template_id neq 1549834}
+{*position in tree*}
+{math equation="(x/8)-y" x=$get_threaded_children[child].depth y=$crd assign="hierarch"}
+{math equation="(x/8)-y" x=$get_threaded_children[child.index_prev].depth y=$crd assign="prev_depth"}
+{math equation="(x/8)-y" x=$get_threaded_children[child.index_next].depth y=$crd assign="next_depth"}
+{*depth in hierarchy*}
+{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}
+{*root_id decka*}
+{str_split string=$get_threaded_children[child].node_vector name=hroot length=8}
+{eval var=$str_split.hroot.$crd assign="h_root"}
+{str_split string=$get_threaded_children[child.index_prev].node_vector name=proot length=8}
+{eval var=$str_split.proot.$crd assign="p_root"}
+{str_split string=$get_threaded_children[child.index_next].node_vector name=nroot length=8}
+{eval var=$str_split.nroot.$crd assign="n_root"}
+{*depth in hierarchy*}
+{math equation="(x-y)-1" x=$hierarch y=$prev_depth assign="p_depth"}
+{math equation="x-1" x=$hierarch assign="ph_depth"}
+{math equation="x-y" x=$next_depth y=$hierarch assign="c_depth"}
+{if $smarty.section.child.last}
+{math equation="x-1" x=$hierarch assign="h_depth"}
+{elseif $h_root neq $n_root && $get_threaded_children[child].node_status neq 'linked'}
+{math equation="x-1" x=$hierarch assign="h_depth"}
+{elseif $h_root neq $n_root && $get_threaded_children[child.index_next].node_status neq 'linked'}
+{math equation="x-1" x=$hierarch assign="h_depth"}
+{else}
+{math equation="x-y" x=$hierarch y=$next_depth assign="h_depth"}
+{/if}
+{math equation="x+1" x=$crd assign="starter"}
+
+{*obsah childu*}
+{capture name=child_container}
+{$hierarch}
+{/capture}
+
+{*stromcek prestri sa*}
+{if $smarty.section.child.first && $sterter < $hierarch}
+{section name=sta loop=$ph_depth}
+
+{/section}
+{/if}
+{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}
+{section name=sta loop=$p_depth}
+
+{/section}
+{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}
+{section name=sta loop=$p_depth}
+
+{/section}
+{elseif $h_root neq $p_root && $get_threaded_children[child].node_parent neq $node.node_id && $get_threaded_children[child].node_status neq 'linked'}
+{section name=sta loop=$ph_depth}
+
+{/section}
+{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'}
+{section name=sta loop=$hp_depth}
+-
\ No newline at end of file