require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");
?>
$url_ = $_SERVER['REQUEST_URI'];
$url_ = str_replace('index.php', '', $url_);
$url_ = parse_url($url_, PHP_URL_PATH);
$url_ = trim($url_, '/');
if ($url_ === 'vysshee-obrazovanie') {
// Заглавная страница раздела
$yandexStatIdRight = 4; // Id среза для Яндекс.Директ
}
else {
// Выборка учебных программ
$yandexStatIdRight = 5; // Id среза для Яндекс.Директ
}
?>
$APPLICATION->IncludeComponent(
'bitrix:breadcrumb',
'bread_alllink',
array(
'START_FROM' => 2, // skip "/" and "vysshee-obrazovanie"
'SITE_ID' => 's1'
)
);
?>
$APPLICATION->IncludeComponent(
'academica:firsthigh.filter',
'',
array(
'SET_TITLE' => 'Y',
'SET_BREADCRUMB' => 'Y',
//'CACHE_TYPE' => 'A',
'CACHE_TIME' => 3600,
),
false
);
?>
$router_ = new Ac_Router_FirstHigh();
$request_ = $router_->request();
if (array_key_exists('page', $request_) && $request_['page']===null) {
?>
// Последние отзывы
$cityId_ = isset($GLOBALS['CURRENT_CITY'])? (int)$GLOBALS['CURRENT_CITY']['ID']: null;
if ($cityId_) {
$APPLICATION->IncludeComponent(
'academica:review.review_list_preview',
'',
array(
'TITLE' => 'Последние отзывы',
'FILTER_CASCADE' => array(
array('cityId'=>$cityId_, 'learnSection'=>'first_high', 'moderateStatus'=>'approved'),
array('!cityId'=>$cityId_, 'learnSection'=>'first_high', 'moderateStatus'=>'approved'),
),
'LIMIT' => 3
)
);
}
else {
$APPLICATION->IncludeComponent(
'academica:review.review_list_preview',
'',
array(
'TITLE' => 'Последние отзывы',
'FILTER' => array('learnSection'=>'first_high', 'moderateStatus'=>'approved'),
'LIMIT' => 3
)
);
}
?>
include('../bitrix/templates/academica/inc/news-list-short.php');
include('../bitrix/templates/academica/inc/ctn-article.php');
}
else {
Ac_Lib::setPageNumberCanonicalUrl();
$APPLICATION->IncludeComponent(
'academica:firsthigh.list',
'',
array(
//'CACHE_TYPE' => 'A',
'CACHE_TIME' => 3600,
//'PAGE_SIZE' => '10',
),
false
);
}
?>