Smarty
[ class tree: Smarty ] [ index: Smarty ] [ all elements ]

Source for file function.displaycomment.php

Documentation is available at function.displaycomment.php

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

Documentation generated on Wed, 29 Jul 2015 13:56:37 +0000 by phpDocumentor 1.5.0-lsces