diff options
Diffstat (limited to 'smartyplugins/function.content.php')
| -rw-r--r-- | smartyplugins/function.content.php | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/smartyplugins/function.content.php b/smartyplugins/function.content.php new file mode 100644 index 0000000..92db47b --- /dev/null +++ b/smartyplugins/function.content.php @@ -0,0 +1,27 @@ +<?php +/** + * Smarty plugin + * @package Smarty + * @subpackage plugins + */ + +/** + * smarty_function_content + */ +function smarty_function_content($params, &$gBitSmarty) +{ + global $gBitSystem; + global $dcslib; + include_once( DCS_PKG_PATH.'dcs_lib.php' ); + extract($params); + // Param = zone + + if (empty($id)) { + $gBitSmarty->trigger_error("assign: missing 'zone' parameter"); + return; + } + $data = $dcslib->get_actual_content($id); + print($data); +} + +?> |
