<?php

function smarty_function_print_delivery_settings($params, &$smarty)
{
    if (!empty($params['template'])) {
        $_smarty_tpl_vars = $smarty->tpl_vars;
        echo $smarty->_subTemplateRender($params['template'], $smarty->cache_id, $smarty->compile_id, 0, null, $params, 0, false);
        $smarty->tpl_vars = $_smarty_tpl_vars;
    }

    if (!empty($params['assign'])) {
        $smarty->assign($params['assign'], $params);
    }
}
