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

Source for file function.rcontent.php

Documentation is available at function.rcontent.php

  1. <?php
  2. /**
  3.  * Smarty plugin
  4.  * @package Smarty
  5.  * @subpackage plugins
  6.  */
  7.  
  8. /**
  9.  * smarty_function_rcontent
  10.  */
  11. function smarty_function_rcontent($params&$gBitSmarty)
  12. {
  13.     global $gBitSystem;
  14.     include_onceDCS_PKG_PATH.'dcs_lib.php' );
  15.     extract($params);
  16.     // Param = zone
  17.  
  18.     if (empty($id)) {
  19.         $gBitSmarty->trigger_error("assign: missing 'zone' parameter");
  20.         return;
  21.     }
  22.     $data $dcslib->get_random_content($id);
  23.     print($data);
  24. }
  25.  
  26. /* vim: set expandtab: */
  27.  
  28. ?>

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