| 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{id=$user_id}' style='margin-top: 10px;'> |
| 11 | <img 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 | {else} |
| 28 | |
| 29 | {get_threaded_children listing_amount=$listing_amount offset=$offset types=$children_types orderby=$listing_order} |
| 30 | {/if} |
| 31 | |
| 32 | |
| 33 | {*get_linked_nodes time_1=$time_1 time_2=$time_2 orderby=$listing_order*} |
| 34 | {if $user_id neq true} |
| 35 | {merge_arrays array1=$get_threaded_children array2=$get_linked_nodes sort_by='thread' orderby="asc"} |
| 36 | {else} |
| 37 | {merge_arrays array1=$get_threaded_children array2=$get_linked_nodes sort_by='thread' orderby=$listing_order} |
| 38 | {/if} |
| 39 | |
| 40 | {foreach from=$merged item=child} |
| 41 | {if $child.template_id eq 11} |
| 42 | {get_poll poll=$child} |
| 43 | {include file="modules/show_poll.tpl" get_poll=$get_poll} |
| 44 | <br> |
| 45 | {else} |
| 46 | |
| 47 | <div class='thread'> |
| 48 | <div class='sub{id=$user_id}' style='margin-top: 10px;'> |
| 49 | {*if $child.node_created > $node.last_visit and $child.depth>$node.vector_depth*} |
| 50 | <a href='/id/{$child.node_parent}' class='th_vector'>{$child.node_vector}</a> |
| 51 | {*/if*} |
| 52 | <div class='th_margin' style='float:left;' width='{math equation="(x-y)-9" x=$child.depth y=$node.vector_depth}%'> |
| 53 | </div> |
| 54 | <div {if $child.node_created > $node.last_visit} class='th_body_new' {else} class='th_body' {/if}> |
| 55 | <img width='50' hspace='5' src='{get_image_link id=$child.node_creator}' alt='' style='float:left; margin-right:5px;' class='icon'> |
| 56 | <div class='th_header' style='background:#333;'> |
| 57 | <a href='/id/{$child.node_creator}'>{$child.login}</a> |
| 58 | <input type='checkbox' value='{$child.node_id}' name='node_chosen[]'> |
| 59 | {$child.node_created|date_format:"%d.%m.%Y. - %H:%M:%S"} |
| 60 | {if $child.node_created > $node.last_visit} |
| 61 | <span class='most_important'>NEW</span> |
| 62 | {/if} |
| 63 | {if $child.node_status eq 'linked'} |
| 64 | <span class='most_important'>LINKED</span> |
| 65 | {/if} |
| 66 | <div class='header_button' style='text-align:center;'> |
| 67 | {if $child.node_name eq ''} |
| 68 | <a href='/id/{$child.node_id}'>enter node {$child.node_id}</a> |
| 69 | {else} |
| 70 | <a href='/id/{$child.node_id}'>{$child.node_name}</a> |
| 71 | {/if} |
| 72 | | <a href='/id/{$child.node_id}/configure'>conf</a> |
| 73 | </div> |
| 74 | </div> |
| 75 | <div class='th_content' style='margin-top: 5px;'> |
| 76 | {$child.node_content|stripslashes|nl2br} |
| 77 | </div> |
| 78 | </div> |
| 79 | </div> |
| 80 | </div> |
| 81 | {/if} |
| 82 | {/foreach} |