blob: e338117bd46647bdaf96b1f2fafa6dbf82484505 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* smarty_function_displaycomment
*/
function smarty_function_displaycomment($params) {
global $gBitSmarty;
if (!empty($params['comment'])) {
$comment = $params['comment'];
$gBitSmarty->assign('comment', $comment);
if (empty($params['template'])) {
$gBitSmarty->display('bitpackage:liberty/display_comment.tpl');
} else {
$gBitSmarty->display($params['template']);
}
}
}
?>
|