<img scr="[[+tv.img_cat.img_cat_inner]]" />
<img scr="[[+tv.img_cat_inner]]" />
&includeTVs=`category_intro,img_cat,img_cat_inner`
) [[pdoResources?
&parents=`46`
&depth=`0`
&includeTVs=`category_intro,img_cat`
&resources=`[[*rel_products]]`
&includeContent=`1`
&prepareTVs=`1`
&showLog=`1`
&tpl=`list_termo_c`
]]
<div class="item-box">
<p><a href="[[+uri]]" class="title-item">[[+pagetitle]]</a></p>
<div class="image" >
<a href="[[+uri]]">
[[+tv.img_cat]]
</a>
<div class="clear"></div>
</div>
[[+tv.category_intro]]
<div class="cb"></div>
<p style="text-align: right;"><a href="[[+uri]]">Подробнее</a></p>
</div>
<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();
$this->setFrameMode(true);
$ClientID = 'navigation_'.$arResult['NavNum'];
if(!$arResult["NavShowAlways"]) {
if($arResult["NavRecordCount"] == 0 || ($arResult["NavPageCount"] == 1 && $arResult["NavShowAll"] == false))
return;
}?>
<div class="pagination">
<?$strNavQueryString = ($arResult["NavQueryString"] != "" ? $arResult["NavQueryString"]."&" : "");
$strNavQueryStringFull = ($arResult["NavQueryString"] != "" ? "?".$arResult["NavQueryString"] : "");
if($arResult["bDescPageNumbering"] === true) {
// to show always first and last pages
$arResult["nStartPage"] = $arResult["NavPageCount"];
$arResult["nEndPage"] = 1;
$sPrevHref = '';
if($arResult["NavPageNomer"] < $arResult["NavPageCount"]) {
$bPrevDisabled = false;
if($arResult["bSavePage"]) {
$sPrevHref = $arResult["sUrlPath"].'?'.$strNavQueryString.'PAGEN_'.$arResult["NavNum"].'='.($arResult["NavPageNomer"]+1);
} else {
if($arResult["NavPageCount"] == ($arResult["NavPageNomer"]+1)) {
$sPrevHref = $arResult["sUrlPath"].$strNavQueryStringFull;
} else {
$sPrevHref = $arResult["sUrlPath"].'?'.$strNavQueryString.'PAGEN_'.$arResult["NavNum"].'='.($arResult["NavPageNomer"]+1);
}
}
} else {
$bPrevDisabled = true;
}
$sNextHref = '';
if($arResult["NavPageNomer"] > 1) {
$bNextDisabled = false;
$sNextHref = $arResult["sUrlPath"].'?'.$strNavQueryString.'PAGEN_'.$arResult["NavNum"].'='.($arResult["NavPageNomer"]-1);
} else {
$bNextDisabled = true;
}?>
<ul>
<?if(!$bPrevDisabled):?>
<li class="first">
<a href="<?=$sPrevHref;?>" id="<?=$ClientID?>_previous_page"><?=GetMessage("PREVIOUS_PAGE")?></a>
</li>
<?endif;
$bFirst = true;
$bPoints = false;
do {
$NavRecordGroupPrint = $arResult["NavPageCount"] - $arResult["nStartPage"] + 1;
if($arResult["nStartPage"] <= 2 || $arResult["NavPageCount"]-$arResult["nStartPage"] <= 1 || abs($arResult['nStartPage']-$arResult["NavPageNomer"])<=2) {
if($arResult["nStartPage"] == $arResult["NavPageNomer"]):?>
<li class="active">
<span class="nav-current-page"><?=$NavRecordGroupPrint?></span>
</li>
<?elseif($arResult["nStartPage"] == $arResult["NavPageCount"] && $arResult["bSavePage"] == false):?>
<li>
<a href="<?=$arResult["sUrlPath"]?><?=$strNavQueryStringFull?>"><?=$NavRecordGroupPrint?></a>
</li>
<?else:?>
<li>
<a href="<?=$arResult["sUrlPath"]?>?<?=$strNavQueryString?>PAGEN_<?=$arResult["NavNum"]?>=<?=$arResult["nStartPage"]?>"><?=$NavRecordGroupPrint?></a>
</li>
<?endif;
$bFirst = false;
$bPoints = true;
} else {
if($bPoints) {?>
<li class="points"><span>...</span></li>
<?$bPoints = false;
}
}
$arResult["nStartPage"]--;
}
while($arResult["nStartPage"] >= $arResult["nEndPage"]);
if(!$bNextDisabled):?>
<li class="last">
<a href="<?=$sNextHref;?>" id="<?=$ClientID?>_next_page"><?=GetMessage("NEXT_PAGE")?></a>
</li>
<?endif;?>
</ul>
<?} else {
// to show always first and last pages
$arResult["nStartPage"] = 1;
$arResult["nEndPage"] = $arResult["NavPageCount"];
$sPrevHref = '';
if($arResult["NavPageNomer"] > 1) {
$bPrevDisabled = false;
if($arResult["bSavePage"] || $arResult["NavPageNomer"] > 2) {
$sPrevHref = $arResult["sUrlPath"].'?'.$strNavQueryString.'PAGEN_'.$arResult["NavNum"].'='.($arResult["NavPageNomer"]-1);
} else {
$sPrevHref = $arResult["sUrlPath"].$strNavQueryStringFull;
}
} else {
$bPrevDisabled = true;
}
$sNextHref = '';
if($arResult["NavPageNomer"] < $arResult["NavPageCount"]) {
$bNextDisabled = false;
$sNextHref = $arResult["sUrlPath"].'?'.$strNavQueryString.'PAGEN_'.$arResult["NavNum"].'='.($arResult["NavPageNomer"]+1);
} else {
$bNextDisabled = true;
}?>
<ul>
<?if(!$bPrevDisabled):?>
<li class="first">
<a href="<?=$sPrevHref;?>" id="<?=$ClientID?>_previous_page"><?=GetMessage("PREVIOUS_PAGE")?></a>
</li>
<?endif;
$bFirst = true;
$bPoints = false;
do {
if($arResult["nStartPage"] <= 2 || $arResult["nEndPage"]-$arResult["nStartPage"] <= 1 || abs($arResult['nStartPage']-$arResult["NavPageNomer"])<=2) {
if($arResult["nStartPage"] == $arResult["NavPageNomer"]):?>
<li class="active">
<span class="nav-current-page"><?=$arResult["nStartPage"]?></span>
</li>
<?elseif($arResult["nStartPage"] == 1 && $arResult["bSavePage"] == false):?>
<li>
<a href="<?=$arResult["sUrlPath"]?><?=$strNavQueryStringFull?>"><?=$arResult["nStartPage"]?></a>
</li>
<?else:?>
<li>
<a href="<?=$arResult["sUrlPath"]?>?<?=$strNavQueryString?>PAGEN_<?=$arResult["NavNum"]?>=<?=$arResult["nStartPage"]?>"><?=$arResult["nStartPage"]?></a>
</li>
<?endif;
$bFirst = false;
$bPoints = true;
} else {
if($bPoints) {?>
<li class="points"><span>...</span></li>
<?$bPoints = false;
}
}
$arResult["nStartPage"]++;
}
while($arResult["nStartPage"] <= $arResult["nEndPage"]);
if(!$bNextDisabled):?>
<li class="last">
<a href="<?=$sNextHref;?>" id="<?=$ClientID?>_next_page"><?=GetMessage("NEXT_PAGE")?></a>
</li>
<?endif;?>
</ul>
<?}?>
</div>
<?CJSCore::Init();?>
<script type="text/javascript">
//<![CDATA[
BX.bind(document, "keydown", function (event) {
event = event || window.event;
if(!event.ctrlKey)
return;
var target = event.target || event.srcElement;
if(target && target.nodeName && (target.nodeName.toUpperCase() == "INPUT" || target.nodeName.toUpperCase() == "TEXTAREA"))
return;
var key = (event.keyCode ? event.keyCode : (event.which ? event.which : null));
if(!key)
return;
var link = null;
if(key == 39)
link = BX('<?=$ClientID?>_next_page');
else if(key == 37)
link = BX('<?=$ClientID?>_previous_page');
if(link && link.href)
document.location = link.href;
});
//]]>
</script>
вот это нужно в шаблоне вывода дописать?
или я что то не так делаю?(ибо так сделать не получилось)