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

Source for file function.inlinemodule.php

Documentation is available at function.inlinemodule.php

  1. <?php
  2. /**
  3.  * Smarty plugin
  4.  * @package Smarty
  5.  * @subpackage plugins
  6.  */
  7.  
  8.  
  9. /**
  10.  * Usage: add to the body of any .tpl file
  11.  * Example: {inlinemodule file="bitpackage:wiki/mod_last_modif_pages.tpl" rows="50"}
  12.  */
  13. function smarty_function_inlinemodule($params&$gBitSmarty{
  14.     global $module_rows$module_title$module_params;
  15.  
  16.     $module_rows   !empty$params['rows'&& is_numerictrim$params['rows') ) $params['rows'NULL );
  17.     $module_title  !empty$params['title'$params['title'NULL );
  18.     $module_params !empty$params $params NULL );
  19.     print $gBitSmarty->fetch$params['file');
  20. }
  21. ?>

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