require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");
//$APPLICATION->SetPageProperty("NOT_SHOW_NAV_CHAIN", "Y");
$APPLICATION->SetTitle('');
?>
// breadcrumb
function acSecHighList_getBreadcrumb($request) {
$out = array();
$cityId = isset($request['cityId'])? $request['cityId']: null;
$subjectCode = isset($request['subjectCode'])? $request['subjectCode']: null;
if (!$subjectCode) {
return $out;
}
$subject = null;
if ($subjectCode) {
$mapper_ = new Ac_Mapper_Subject_SecHigh;
$subjects_ = $mapper_->loads(array('CODE'=>$subjectCode), array('PROPERTY_TEXT_BREADCRUMB'), null, 1);
if ($subjects_) {
$subject = $subjects_[0];
}
}
if (!$subject || !$subject->PROPERTY_TEXT_BREADCRUMB) {
return $out;
}
$city = null;
if ($cityId) {
$mapper_ = new Ac_Mapper_City;
$city = $mapper_->load($cityId, array('NAME', 'PROPERTY_NAME_GEN_CASE', 'PROPERTY_NAME_PREP_CASE'));
}
$cityPrepName = $city? $GLOBALS['obAcademica']->getPrepositionOfCity($city->PROPERTY_NAME_PREP_CASE): 'в России';
$out[] = array(
'name' => 'Дополнительное образование '.$cityPrepName,
'url' => '/dopolnitelnoe-i-poslediplomnoe-obrazovanie/stranitsa_1/'
);
$name_ = $subject->PROPERTY_TEXT_BREADCRUMB;
$name_ = str_replace('#CITY#', $city?$city->NAME:'Россия', $name_);
$name_ = str_replace('#CITY_GEN#', $city?$city->PROPERTY_NAME_GEN_CASE:'России', $name_);
//$name_ = str_replace('#CITY_PREP#', $city?$city->PROPERTY_NAME_PREP_CASE:'России', $name_);
$name_ = str_replace('#CITY_PREP#', $cityPrepName, $name_);
$out[] = array(
'name' => $name_,
'url' => ''
);
return $out;
}
//~
if (isset($_GET['PAGEN_7'])) {
$breadcrumb = acSecHighList_getBreadcrumb(array(
'cityId' => isset($CURRENT_CITY['ID'])? $CURRENT_CITY['ID']: null,
'subjectCode' => isset($_GET['SUBJECT'])? $_GET['SUBJECT']: null
));
if ($breadcrumb) {
foreach ($breadcrumb as $item_) {
$APPLICATION->AddChainItem($item_['name'], $item_['url']);
}
}
}
?>
$APPLICATION->IncludeComponent(
'bitrix:breadcrumb',
'bread_alllink',
array(
'START_FROM' => 1, // skip "/"
'SITE_ID' => 's1'
)
);
?>
/* FILTER [start] */
$componentResult = $APPLICATION->IncludeComponent(
'academica:filter.further.education',
'.default',
array(),
false
);
/* FILTER [end] */
if ($_GET["filter"] == "Y") {
$yandexStatIdRight = 30; // Id среза для Яндекс.Директ
}
else {
$yandexStatIdRight = 12; // Id среза для Яндекс.Директ
}
if ($_GET['filter'] == 'Y') {
Ac_Lib::setPageNumberCanonicalUrl();
}
/* PROGRAMS LIST [start] */
$APPLICATION->IncludeComponent(
'academica:further.education.list.all',
'.default',
array(
'CACHE_TIME'=>3600
),
false
);
/* PROGRAMS LIST [end] */
if ($_REQUEST['PAGEN_7'] == 1) {
if ($GLOBALS['CURRENT_CITY']) {
$APPLICATION->IncludeComponent(
'academica:sechigh.article_link',
'',
array(
'cityId' => $GLOBALS['CURRENT_CITY']['ID'],
'subjectCode' => $_GET['SUBJECT'],
'count' => 3,
'cacheTime' => 7*24*60*60
)
);
}
$GLOBALS['arFilterComponent']['SECTION_ID'] = 23068;
$GLOBALS['arFilterComponent']['PROPERTY_303'] = $componentResult['SUBJECT'];
$GLOBALS['arFilterComponent']['PROPERTY_308'] = $componentResult['CITY'];
$APPLICATION->IncludeComponent("bitrix:news.list","text.block",
Array(
"DISPLAY_DATE" => "N",
"DISPLAY_NAME" => "Y",
"DISPLAY_PICTURE" => "N",
"DISPLAY_PREVIEW_TEXT" => "Y",
"AJAX_MODE" => "N",
"IBLOCK_TYPE" => "ui_elements",
"IBLOCK_ID" => "84",
"NEWS_COUNT" => "1",
"SORT_BY1" => "PROPERTY_SUBJECT_PROF",
"SORT_ORDER1" => "ASC",
"SORT_BY2" => "SORT",
"SORT_ORDER2" => "ASC",
"FILTER_NAME" => "arFilterComponent",
"FIELD_CODE" => Array(),
"PROPERTY_CODE" => Array(),
"CHECK_DATES" => "N",
"DETAIL_URL" => "",
"PREVIEW_TRUNCATE_LEN" => "",
"ACTIVE_DATE_FORMAT" => "d.m.Y",
"SET_TITLE" => "N",
"SET_STATUS_404" => "N",
"INCLUDE_IBLOCK_INTO_CHAIN" => "N",
"ADD_SECTIONS_CHAIN" => "N",
"HIDE_LINK_WHEN_NO_DETAIL" => "Y",
"PARENT_SECTION" => "",
"PARENT_SECTION_CODE" => "",
"CACHE_TYPE" => "N",
"CACHE_TIME" => "360000",
"CACHE_FILTER" => "N",
"CACHE_GROUPS" => "N",
"DISPLAY_TOP_PAGER" => "N",
"DISPLAY_BOTTOM_PAGER" => "N",
"PAGER_TITLE" => "",
"PAGER_SHOW_ALWAYS" => "N",
"PAGER_TEMPLATE" => "",
"PAGER_DESC_NUMBERING" => "N",
"PAGER_DESC_NUMBERING_CACHE_TIME" => "36000",
"PAGER_SHOW_ALL" => "N",
"AJAX_OPTION_JUMP" => "N",
"AJAX_OPTION_STYLE" => "Y",
"AJAX_OPTION_HISTORY" => "N",
"AJAX_OPTION_ADDITIONAL" => ""
)
);
}
?>
$APPLICATION->IncludeComponent(
'bitrix:breadcrumb',
'bread_alllink',
array(
'START_FROM' => 1, // skip "/"
'SITE_ID' => 's1'
)
);
?>
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/footer.php"); ?>