function renderTwigTemplate($templateFile, $arResult, $arParams, $arLangMessages, $templateFolder, $parentTemplateFolder, $template) { echo \Wlbl\Twigrix\TemplateEngine::getInstance()->renderTemplate($templateFile, ['params' => $arParams, 'result' => $arResult, 'langMessages' => $arLangMessages, 'template' => $template, 'templateFolder' => $templateFolder, 'parentTemplateFolder' => $parentTemplateFolder]); $component_epilog = $templateFolder . "/component_epilog.php"; if (file_exists($_SERVER["DOCUMENT_ROOT"] . $component_epilog)) { $component = $template->__component; $component->SetTemplateEpilog(["epilogFile" => $component_epilog, "templateName" => $template->__name, "templateFile" => $template->__file, "templateFolder" => $template->__folder, "templateData" => false]); } }
echo bitrix_sessid_post(); $tabControl->End(); ?> </form> <?php if (!empty($notes)) { echo BeginNote(); foreach ($notes as $key => $str) { echo '<span class="required"><sup>' . ($key + 1) . '</sup></span>' . $str . '<br>'; } echo EndNote(); } } ?> <?php //очистка кеша шаблонов if ($_POST["clear_twig_cache"] === "y") { TemplateEngine::getInstance()->clearCacheFiles(); } ?> <script type="text/javascript"> $(document).ready(function () { $("#clear-twig-cache").click(function () { $("input[name='clear_twig_cache']").val("y"); $("form[name='twigintegrationmodule_opt_form']").submit(); }); }); </script>