Kyberia v2.0
[mirrors/Kyberia-bloodline.git] / templates / own_templates / modules / get_nodes_by_type.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 {get_nodes_by_type type=$type listing_amount=$listing_amount offset=$offset vector=$vector on_main=$on_main}
10
11 {foreach from=$get_nodes_by_type item=child}
12
13 <table>
14 <tr>
15 {if $child.node_type eq 6 }
16 <td valign='top' rowspan='2'><img width='50' hspace='5' src='{get_image_link id=$child.node_creator}'>&nbsp;</td>
17 <td valign='top' width='100%'>
18 <table width='100%'><tr class='header' valign='top'>
19 <td align='center'>
20 <b><a href='/id/{$child.node_id}'>{$child.node_name}</a></b><br>
21 (written by <a href='/id/{$child.node_creator}'>{$child.login}</a> , viewed {$child.node_views} times, {$child.node_children_count} submissions
22 {if $child.node_user_subchild_count eq true}<span class='most_important'>{$child.node_user_subchild_count} NEW</span>{/if}
23 )
24 <tr><td>{$child.node_content|truncate:230|stripslashes}</td></tr>
25
26 {elseif $child.node_type eq 13 }
27 <td valign='top' rowspan='2'><img width='50' hspace='5' src='{get_image_link id=$child.node_creator}'>&nbsp;</td>
28 <td valign='top' width='100%'>
29 <table width='100%'><tr class='header' valign='top'>
30 <td align='center'>
31 <b><a href='/id/{$child.node_id}'>{$child.node_name}</a></b><br>
32 (viewed {$child.node_views} times, {$child.node_children_count} submissions
33 {if $child.node_user_subchild_count eq true}<span class='most_important'>{$child.node_user_subchild_count} NEW</span>{/if}
34 )
35 <tr><td>{$child.node_content|stripslashes}</td></tr>
36
37 {elseif $child.node_type eq 5}
38 <td valign='top' rowspan='2'><img hspace='5' src='{get_image_link id=$child.node_id}'>&nbsp;</td>
39 <td valign='top' width='100%'>
40 <table width='100%'><tr class='header' valign='top'>
41 <td>
42 <center><b><a href='/id/{$child.node_id}'>{$child.node_name}</a></b>
43 <br>(pridal <a href='/id/{$child.node_creator}'>{$child.login}</a> &nbsp;&nbsp;{$child.node_created|date_format:"%d.%m.%Y."})
44 <br> ({$child.node_views} hits, {$child.node_children_count} submissions
45 {if $child.node_user_subchild_count eq true}<span class='most_important'>{$child.node_user_subchild_count} NEW</span>{/if}
46 )
47 </center>
48 <tr><td>{$child.node_content|truncate:230|stripslashes}</td></tr>
49
50 {/if}
51 </table>
52 </table>
53 {/foreach}
This page took 0.262561 seconds and 4 git commands to generate.