42 lines
1.3 KiB
PHP
42 lines
1.3 KiB
PHP
<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();
|
|
/** @var array $arParams */
|
|
/** @var array $arResult */
|
|
/** @global CMain $APPLICATION */
|
|
/** @global CUser $USER */
|
|
/** @global CDatabase $DB */
|
|
/** @var CBitrixComponentTemplate $this */
|
|
/** @var string $templateName */
|
|
/** @var string $templateFile */
|
|
/** @var string $templateFolder */
|
|
/** @var string $componentPath */
|
|
/** @var CBitrixComponent $component */
|
|
$this->setFrameMode(true);
|
|
?>
|
|
<script>
|
|
$(function()
|
|
{
|
|
section_code = "<?= $arResult['SECTION_CODE']; ?>";
|
|
query = "<?= $arResult['QUERY']; ?>";
|
|
});
|
|
</script>
|
|
<style>
|
|
main {overflow-x: unset;}
|
|
</style>
|
|
<h2 style="padding-bottom: 40px;"><?= $arParams['TITLE']; ?></h2>
|
|
<? if(count($arResult['ITEMS']) > 0): ?>
|
|
<div class="catalog_list" id="catalog_positions_list">
|
|
<? foreach($arResult['ITEMS'] AS $arItem): ?>
|
|
<? $APPLICATION->IncludeComponent(
|
|
"evolution:catalog.list.item",
|
|
"",
|
|
$arItem
|
|
); ?>
|
|
<? endforeach; ?>
|
|
</div>
|
|
<? if($arResult['PAGE_COUNT'] > 1 && $arResult['PAGE_CURRENT'] != $arResult['PAGE_COUNT']): ?>
|
|
<input type="hidden" id="current_page" value="<?= $arResult['PAGE_CURRENT']; ?>"/>
|
|
<a class="catalog_show_more_button" id="catalog_get_more" style="cursor:pointer;">
|
|
<span>Показать еще</span>
|
|
</a>
|
|
<? endif; ?>
|
|
<? endif; ?>
|