function smarty_block_widget_inline($params, $content, Smarty_Internal_Template $template, &$repeat)
{
    if (!$repeat) {
        // block 定义结束
        FISBlockFisWidget::pop($template->tpl_vars);
        return $content;
    } else {
        // block 定义开始
        FISBlockFisWidget::push($params, $template->tpl_vars);
    }
}
예제 #2
0
function smarty_block_fis_widget_inline($params, $content, Smarty_Internal_Template $template, &$repeat)
{
    if (!$repeat) {
        //block 定义结束
        if (isset($params['extends'])) {
            $path = $params['extends'];
            unset($params['extends']);
            $content = $template->getSubTemplate($path, $template->cache_id, $template->compile_id, null, null, $params, Smarty::SCOPE_LOCAL);
        }
        FISBlockFisWidget::pop($template->tpl_vars);
        return $content;
    } else {
        //block 定义开始
        if (isset($params['extends'])) {
            unset($params['extends']);
        }
        FISBlockFisWidget::push($params, $template->tpl_vars);
    }
}