| Current Path : /var/www/homesaver/www/local/templates/aspro_next/components/bitrix/news/services/ |
| Current File : /var/www/homesaver/www/local/templates/aspro_next/components/bitrix/news/services/news.php |
<?if( !defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true ) die();?>
<?$this->setFrameMode(true);?>
<?// intro text?>
<div class="text_before_items">
<?$APPLICATION->IncludeComponent(
"bitrix:main.include",
"",
Array(
"AREA_FILE_SHOW" => "page",
"AREA_FILE_SUFFIX" => "inc",
"EDIT_TEMPLATE" => ""
)
);?>
</div>
<?if((isset($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') || (strtolower($_REQUEST['ajax']) == 'y'))
{
$APPLICATION->RestartBuffer();
}?>
<?
// get section items count and subsections
$arItemFilter = CNext::GetCurrentSectionElementFilter($arResult["VARIABLES"], $arParams, false);
$arSubSectionFilter = CNext::GetCurrentSectionSubSectionFilter($arResult["VARIABLES"], $arParams, false);
$itemsCnt = CNextCache::CIBlockElement_GetList(array("CACHE" => array("TAG" => CNextCache::GetIBlockCacheTag($arParams["IBLOCK_ID"]), "CACHE_GROUP" => array($arParams["CACHE_GROUPS"]==="N"? false: $USER->GetGroups()))), $arItemFilter, array());
$arSubSections = CNextCache::CIBlockSection_GetList(array("CACHE" => array("TAG" => CNextCache::GetIBlockCacheTag($arParams["IBLOCK_ID"]), "MULTI" => "Y", "CACHE_GROUP" => array($arParams["CACHE_GROUPS"]==="N"? false: $USER->GetGroups()))), $arSubSectionFilter, false, array("ID"));
// rss
if($arParams['USE_RSS'] !== 'N'){
CNext::ShowRSSIcon($arResult['FOLDER'].$arResult['URL_TEMPLATES']['rss']);
}
?>
<?if(!$itemsCnt && !$arSubSections):?>
<div class="alert alert-warning"><?=GetMessage("SECTION_EMPTY")?></div>
<?else:?>
<?// sections?>
<?@include_once('page_blocks/'.$arParams["SECTIONS_TYPE_VIEW"].'.php');?>
<?// section elements?>
<?if(strlen($arParams["FILTER_NAME"])):?>
<?$arTmpFilter = $GLOBALS[$arParams["FILTER_NAME"]];?>
<?$GLOBALS[$arParams["FILTER_NAME"]] = array_merge((array)$GLOBALS[$arParams["FILTER_NAME"]], $arItemFilter);?>
<?else:?>
<?$arParams["FILTER_NAME"] = "arrFilterServ";?>
<?$GLOBALS[$arParams["FILTER_NAME"]] = $arItemFilter;?>
<?endif;?>
<?@include_once('page_blocks/'.$arParams["SECTION_ELEMENTS_TYPE_VIEW"].'.php');?>
<?if(strlen($arParams["FILTER_NAME"])):?>
<?$GLOBALS[$arParams["FILTER_NAME"]] = $arTmpFilter;?>
<?endif;?>
<?endif;?>