Server IP : 85.193.89.191 / Your IP : 18.116.8.148 Web Server : Apache System : Linux 956367-cx40159.tmweb.ru 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64 User : bitrix ( 600) PHP Version : 8.1.27 Disable Function : NONE MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/bitrix/www/bitrix/components/bitrix/catalog.section/templates/bootstrap_v4/ |
Upload File : |
<? if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true) die(); /** * @var array $arParams * @var array $templateData * @var string $templateFolder * @var CatalogSectionComponent $component */ global $APPLICATION; if (!empty($templateData['TEMPLATE_LIBRARY'])) { $loadCurrency = false; if (!empty($templateData['CURRENCIES'])) { $loadCurrency = \Bitrix\Main\Loader::includeModule('currency'); } CJSCore::Init($templateData['TEMPLATE_LIBRARY']); if ($loadCurrency) { ?> <script> BX.Currency.setCurrencies(<?=$templateData['CURRENCIES']?>); </script> <? } } // lazy load and big data json answers $request = \Bitrix\Main\Context::getCurrent()->getRequest(); if ($request->isAjaxRequest() && ($request->get('action') === 'showMore' || $request->get('action') === 'deferredLoad')) { $content = ob_get_contents(); ob_end_clean(); [, $itemsContainer] = explode('<!-- items-container -->', $content); $paginationContainer = ''; if ($templateData['USE_PAGINATION_CONTAINER']) { [, $paginationContainer] = explode('<!-- pagination-container -->', $content); } [, $epilogue] = explode('<!-- component-end -->', $content); if (isset($arParams['AJAX_MODE']) && $arParams['AJAX_MODE'] === 'Y') { $component->prepareLinks($paginationContainer); } $component::sendJsonAnswer(array( 'items' => $itemsContainer, 'pagination' => $paginationContainer, 'epilogue' => $epilogue, )); }