Kyberia v2.0
[mirrors/Kyberia-bloodline.git] / templates / sv / modules / get_flat_children.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 <table>
11 <tr>
12 <td valign='top' rowspan='2' ><img hspace='5' src='{get_image_link id=$user_id}'></td>
13 <td width='100%' valign='top'>
14 <table width='100%'><tr class='header'>
15 <td align='center'>PREVIEW
16
17 <tr><td>{$post_vars.node_content|preview}</td></tr>
18 </table>
19 </table>
20 {* end of preview *}
21
22 {elseif $template_event eq 'filter_by'}
23 {get_children listing_amount=23232322323 offset=$offset types=$children_types search_type=$post_vars.search_type search=$post_vars.node_content}
24 {elseif $node.node_user_subchild_count eq true}
25 {get_children children_type=$children_type listing_amount=$node.node_user_subchild_count+5 offset=$offset}
26 {else}
27 {get_children children_type=$children_type listing_amount=$listing_amount offset=$offset}
28 {/if}
29
30 {foreach from=$get_children item=child}
31 <table class='bordered' cellspacing='0' cellpadding='0'>
32 <tr>
33 <td align='center' valign='top' rowspan='2'>
34 <img vspace='5' hspace='5' width='50' src='{get_image_link id=$child.node_creator}'>
35 {if $child.k eq true}<span class='most_important'>{$child.k} k</span>{/if}
36 </td>
37
38 <td valign='top' style='width: 100%'>
39 <table width=100%>
40 <tr class='header' width=100% valign='top'><td>
41 &nbsp;<a href='/id/{$child.node_creator}'>{$child.creator}</a>
42 {if $child.user_action neq false}
43 &nbsp;[lokacia :: <a href='/{$child.user_action}/'>{$child.user_action}</a>]
44 {/if}
45 &nbsp;&nbsp;{$child.node_created|date_format:"%H:%M:%S - %d.%m.%Y"}&nbsp;
46 &nbsp;&nbsp;<input type='checkbox' value='{$child.node_id}' name='node_chosen[]'>
47 &nbsp;&nbsp;<a href='/id/{$child.node_id}'>enter</a>&nbsp;&nbsp;
48 {if $child.node_created > $node.last_visit}<span class='most_important'>&nbsp;&nbsp;NEW</span>{/if}
49 {if $child.node_children_count}<span class='most_important'>{$child.node_children_count}&nbsp;&nbsp;CHILDREN</span>{/if}
50 </td></tr>
51 <tr><td>{$child.node_content|stripslashes}</td></tr>
52 </table>
53 </table>
54 <br>
55 {/foreach}
This page took 0.24677 seconds and 4 git commands to generate.