X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=data%2Ftemplates%2Fown_templates%2F1760848.tpl;fp=data%2Ftemplates%2Fown_templates%2F1760848.tpl;h=80b42a6b47a6f75ef337868aef879fbc8234ef66;hb=b42b2bf946332ad8544d53f610be9cb05e80bf56;hp=0000000000000000000000000000000000000000;hpb=e586807dafc64c3fe152ab518599e6cf3f0f84e1;p=mirrors%2FKyberia-bloodline.git diff --git a/data/templates/own_templates/1760848.tpl b/data/templates/own_templates/1760848.tpl new file mode 100644 index 0000000..80b42a6 --- /dev/null +++ b/data/templates/own_templates/1760848.tpl @@ -0,0 +1,180 @@ +{* header *}{include file="1549864.tpl"} + +{if $user_id eq false} +
{* loginbox *}{include file="1549885.tpl"}


+{/if} + + + + + + + + +
+{* node_settings *} +{include file="1549925.tpl"} + +{* get_poll_box *} +{include file="1549834.tpl"} +
+{*get_bookmark_statistics_box*} +{include file="1549386.tpl"} +
+
+{$node.node_content|escape:"html"|wordwrap:100} +


+{*showing form for adding child node*} +
+ {if $permissions.w eq true}{*addnode*}{include file="1548927.tpl"}{/if} + +{math equation="x/8" x=$node.vector_depth assign="crd"} +{if $template_event eq 'preview'} + + + +
+ + + +
PREVIEW
{$post_vars.node_content|preview}
+
+{* end of preview *} +{elseif $template_event eq 'filter_by'} +{get_threaded_children listing_amount=23232322323 offset=$offset types=$children_types search_type=$post_vars.search_type search=$post_vars.node_content} +{elseif $node.node_user_subchild_count eq true} +{get_threaded_children offset=0 link='yes' listing_amount=23232323232 time=$node.last_visit time=$node.last_visit orderby=$listing_order } + +{else} +{get_threaded_children link='yes' listing_amount=$listing_amount offset=$offset ordearby=$listing_order} +{/if} + +
    +{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"} +{eval var=$get_threaded_children[child].node_creator assign="h_creator"} + +{*child content*} +{capture name=child_container} +{*IGNORE USER CONDITION*}{if $ignore[$h_creator] neq true} +{* put.Ty hack *}{if $get_threaded_children[child].synapse_creator neq ''} + SYNAPSE CREATOR +{else} + {$get_threaded_children[child].login} +{/if}{*end of put.Ty hack *} +
    +
    + {if $get_threaded_children[child].node_name eq ''} + enter node {$get_threaded_children[child].node_id} + {else} + {$get_threaded_children[child].node_name} + {/if} + {if $child.node_creator eq $user_id} + | conf + {/if}   + + [{$get_threaded_children[child].login}] + {$get_threaded_children[child].node_created|date_format:"%d.%m.%Y. - %H:%M:%S"} + {if $get_threaded_children[child].node_updated} + (modif: {$get_threaded_children[child].node_updated|date_format:"%d.%m.%Y. - %H:%M:%S"}) + {/if} + {if $get_threaded_children[child].k > 0} + [{$get_threaded_children[child].k}K] + {/if} + {if $get_threaded_children[child].node_created > $node.last_visit} +   NEW + {/if} + {if $get_threaded_children[child].node_status eq 'linked'} +  HARDLINK + {/if} + {if $get_threaded_children[child].node_updated > $node.last_visit} +  !!CONTENT CHANGED!! + {/if} +
    +
    + {$get_threaded_children[child].node_content|stripslashes|escape:"html"|wordwrap:100} +
    +
    +{/if}{*IGNORE USER CONDITION end*} +{/capture} +{*end of child content*} + +{*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} +
            • +{/section} +{/if} +
            • + {$get_threaded_children[child].node_vector} +
              + {$smarty.capture.child_container} +
              +{if $next_depth > $hierarch && $h_root neq $p_root && $get_threaded_children[child].node_parent neq $node.node_id} +{section name=con loop=$c_depth} +
                +
              • +{/section} + +{elseif $next_depth > $hierarch && $h_root eq $n_root && $get_threaded_children[child.index_next].node_status neq 'linked'} +
                  {elseif $next_depth > $hierarch && $get_threaded_children[child.index_next].node_status eq 'linked'}
                    {else} + +{/if}{if $next_depth < $hierarch || $h_root neq $n_root || $smarty.section.child.last} +{section name=fin loop=$h_depth} +
                  + +{/section}{/if} +{/if}{/section} +
                + + + + + + + +
                +
              • \ No newline at end of file