Kyberia v2.0
[mirrors/Kyberia-bloodline.git] / templates / own_templates / 1858646.tpl
1 <!--
2 This program is free software. It comes without any warranty, to
3 the extent permitted by applicable law. You can redistribute it
4 and/or modify it under the terms of the Do What The Fuck You Want
5 To Public License, Version 2, as published by Sam Hocevar. See
6 http://sam.zoy.org/wtfpl/COPYING for more details.
7 -->
8
9 {if $template_event eq 'preview'}
10 <div class='sub{$user_id}' style='margin-top: 10px;'>
11 <img width='50' hspace='5' src='{get_image_link id=$user_id}' alt='' style='float:left; margin-right:5px;' class='icon' />
12 <div class='th_header' style='background:#333;'>
13 PREVIEW
14 </div>
15 <div class='th_content' style='margin-top: 5px;'>
16 {$post_vars.node_content|preview}
17 </div>
18 </div>
19 {* end of preview *}
20
21 {elseif $template_event eq 'filter_by'}
22 {get_threaded_children listing_amount=23232322323 offset=$offset types=$children_types search_type=$post_vars.search_type search=$post_vars.node_content}
23 {elseif $user_id neq true}
24 {get_threaded_children offset=0 listing_amount=232 orderby="asc"}
25 {elseif $node.node_user_subchild_count eq true}
26 {get_threaded_children offset=0 listing_amount=232 time=$node.last_visit time=$node.last_visit orderby=$listing_order types=$children_types}
27
28 {else}
29 {get_threaded_children listing_amount=$listing_amount offset=$offset types=$children_types orderby=$listing_order}
30 {/if}
31
32 {*get_linked_nodes time_1=$time_1 time_2=$time_2 orderby=$listing_order*}
33 {if $user_id neq true}
34 {merge_arrays array1=$get_threaded_children array2=$get_linked_nodes sort_by='thread' orderby="asc"}
35 {else}
36 {merge_arrays array1=$get_threaded_children array2=$get_linked_nodes sort_by='thread' orderby=$listing_order}
37 {/if}
38
39 {foreach from=$merged item=child}
40 {if $child.template_id eq 11}
41 {get_poll poll=$child}
42 {include file="modules/show_poll.tpl" get_poll=$get_poll}
43 <br>
44 {else}
45
46 <div class='thread'>
47 <div class='sub{$user_id}' style='margin-top: 10px;'>
48 {*if $child.node_created > $node.last_visit and $child.depth>$node.vector_depth*}
49 <a href='/id/{$child.node_parent}' class='th_vector'>{$child.node_vector}</a>
50 {*/if*}
51 <div class='th_margin' style='float:left;' width='{math equation="(x-y)-9" x=$child.depth y=$node.vector_depth}%'>
52 </div>
53 <div {if $child.node_created > $node.last_visit} class='th_body_new' {else} class='th_body' {/if}>
54 <img width='50' hspace='5' src='{get_image_link id=$child.node_creator}' alt='' style='float:left; margin-right:5px;' class='icon' />
55 <div class='th_header' style='background:#333;'>
56 <a href='/id/{$child.node_creator}'>{$child.login}</a>
57 <input type='checkbox' value='{$child.node_id}' name='node_chosen[]'>
58 {$child.node_created|date_format:"%d.%m.%Y. - %H:%M:%S"}
59 {if $child.node_created > $node.last_visit}
60 <span class='most_important'>NEW</span>
61 {/if}
62 {if $child.node_status eq 'linked'}
63 <span class='most_important'>LINKED</span>
64 {/if}
65 <div class='header_button' style='text-align:center;'>
66 {if $child.node_name eq ''}
67 <a href='/id/{$child.node_id}'>{$child.node_created|date_format:"%d.%m.%Y.-%H:%M:%S"}</a>
68 {else}
69 <a href='/id/{$child.node_id}'>{$child.node_name}</a>
70 {/if}
71 | <a href='/id/{$child.node_id}/configure'>conf</a>
72 </div>
73 </div>
74 <div class='th_content' style='margin-top: 5px;'>
75 {$child.node_content|stripslashes|nl2br}
76 </div>
77 </div>
78 </div>
79 </div>
80 {/if}
81 {/foreach}
82
83 <div class='list'>
84 <input type='hidden' name='get_children_offset' value='{$offset}'>
85 <input type='submit' name='get_children_move' value='<'>
86 <input type='submit' name='get_children_move' value='<<'>
87 <input name='get_children_move' type='submit' value='>>'>
88 <input type='submit' name='get_children_move' value='>'>
89 </div>
This page took 0.334626 seconds and 4 git commands to generate.