Commit | Line | Data |
---|---|---|
51ff3226 | 1 | {get_nodes_by_parent parent=2284296 listing_amount=1 offset=0} |
2 | {section name='node' loop=$get_nodes_by_parent start=0 max=1} | |
3 | {explode string=$get_nodes_by_parent[node].node_content separator=';'} | |
4 | {section name='link' loop=$explode start=0} | |
5 | {$explode[link]}<br> | |
6 | {/section} | |
7 | {/section} | |
8 | {math equation="x - 1" x=$smarty.section.link.loop assign='max'} | |
9 | {rand min=0 max=$max} | |
10 | <br><br> | |
11 | {$rand} | |
12 | {$explode[$rand]} |