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

Source for file block.legend.php

Documentation is available at block.legend.php

  1. <?php 
  2. /**
  3.  * Smarty plugin
  4.  * @package Smarty
  5.  * @subpackage plugins
  6.  */
  7.  
  8. /**
  9.  * Smarty {form} block plugin
  10.  *
  11.  * Type:     block
  12.  * Name:     form
  13.  * Input:
  14.  *           - legend      (optional) - text that appears in the legend
  15.  */
  16. function smarty_block_legend($params$content&$gBitSmarty{
  17.     if$content {
  18.         $attributes '';
  19.         $attributes .= !empty$params['class'' class="'.$params['class'].'" ' '' ;
  20.         $attributes .= !empty$params['id'' id="'.$params['id'].'" ' '' ;
  21.         $ret '<fieldset '.$attributes.'>';
  22.         if!empty$params['legend') ) {
  23.             $ret .= '<legend>'.tra$params['legend').'</legend>';
  24.         }
  25.         $ret .= $content;
  26.         $ret .= '</fieldset>';
  27.         return $ret;
  28.     }
  29. }
  30. ?>

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