Source for file core.run_insert_handler.php
Documentation is available at core.run_insert_handler.php
require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.get_microtime.php');
if ($smarty->debugging) {
$_name = $params['args']['name'];
if (!isset ($smarty->_cache_info['insert_tags'][$_name])) {
$smarty->_cache_info['insert_tags'][$_name] = array('insert',
$smarty->_plugins['insert'][$_name][1],
$smarty->_plugins['insert'][$_name][2],
!empty($params['args']['script']) ? true : false);
return $smarty->_smarty_md5. "{insert_cache $_arg_string}". $smarty->_smarty_md5;
if (isset ($params['args']['script'])) {
$_params = array('resource_name' => $smarty->_dequote($params['args']['script']));
require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.get_php_resource.php');
if ($_params['resource_type'] == 'file') {
$smarty->_include($_params['php_resource'], true);
$smarty->_eval($_params['php_resource']);
unset ($params['args']['script']);
$_funcname = $smarty->_plugins['insert'][$params['args']['name']][0];
$_content = $_funcname($params['args'], $smarty);
if ($smarty->debugging) {
require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.get_microtime.php');
$smarty->_smarty_debug_info[] = array('type' => 'insert',
'filename' => 'insert_'. $params['args']['name'],
'depth' => $smarty->_inclusion_depth,
if (!empty($params['args']["assign"])) {
$smarty->assign($params['args']["assign"], $_content);
/* vim: set expandtab: */
|