summaryrefslogtreecommitdiff
path: root/smarty_bit/function.displaycomment.php
blob: 36ea3755ba2da5708b1a3b77a62aa3859af880dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php

function smarty_function_displaycomment($params) {
	global $smarty;
	if (!empty($params['comment'])) {
		$comment = $params['comment'];
		$smarty->assign('comment', $comment);
		$smarty->display('bitpackage:liberty/display_comment.tpl');
		foreach ($comment['children'] as $childComment) {
			smarty_function_displaycomment(array('comment'=>$childComment));
		}
	}
}

?>