SetTitle('Компьютерное обучение в России на ACADEMICA.RU'); ?> 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' => '/kompjuternye-kursy/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['PAGE_N'])) { $breadcrumb = acPcCoursesList_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']); } } } ?> IncludeComponent( 'bitrix:breadcrumb', 'bread_alllink', array( 'START_FROM' => 1, // skip "/" 'SITE_ID' => 's1' ) ); ?>
IncludeComponent( "academica:filter.pc.courses", ".default", array( //"IBLOCK_ID_SUBJ" => "76", //"IBLOCK_ID_CITY" => "35", //"CACHE_TYPE" => "A", //"CACHE_TIME" => "36000", "SET_TITLE" => "Y", "FORM_ACTION"=>"/kompjuternye-kursy/" ), false ); ?> IncludeComponent( 'academica:vuz.list.pc.courses', '.default', array( //'IBLOCK_ID_COURSES' => '75', //'IBLOCK_ID_VUZ' => '27', //'IBLOCK_ID_CITIES' => '35', //'IBLOCK_ID_SUBJ' => '76', 'CACHE_TYPE' => 'A', 'CACHE_TIME' => 3600, 'FAVORITE_IBLOCK_ID' => 56, 'FAVORITE_TYPE_ID' => 727889, 'PAGE_SIZE' => 10, //'PAGER_TEMPLATE' => 'pc_pager', 'SUBJECT' => $_GET['SUBJECT'], 'PAGE_NUMBER' => $_GET['PAGE_N'], 'COURSES_VISIBLE_COUNT' => 4, ), false ); if ($_GET["PAGE_N"] == 1) { if ($GLOBALS['CURRENT_CITY']) { $APPLICATION->IncludeComponent( 'academica:pccourses.article_link', '', array( 'cityId' => $GLOBALS['CURRENT_CITY']['ID'], 'subjectId' => $componentResult['SUBJECT'], 'count' => 3, 'cacheTime' => 7*24*60*60 ) ); } $GLOBALS['arFilterComponent']['SECTION_ID'] = 23070; $GLOBALS['arFilterComponent']['PROPERTY_307'] = $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" => "SUBJECT_COMP", "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" => "" ) ); }; } else { // стартовая страница раздела $yandexStatIdRight = 33; // Id среза для Яндекс.Директ ?>
IncludeComponent( 'academica:review.review_list_preview', '', array( 'TITLE' => 'Последние отзывы', 'FILTER_CASCADE' => array( array('cityId'=>$cityId_, 'learnSection'=>'pc_courses', 'moderateStatus'=>'approved'), array('!cityId'=>$cityId_, 'learnSection'=>'pc_courses', 'moderateStatus'=>'approved'), ), 'LIMIT' => 3 ) ); } else { $APPLICATION->IncludeComponent( 'academica:review.review_list_preview', '', array( 'TITLE' => 'Последние отзывы', 'FILTER' => array('learnSection'=>'pc_courses', 'moderateStatus'=>'approved'), 'LIMIT' => 3 ) ); } ?>
IncludeComponent( 'bitrix:breadcrumb', 'bread_alllink', array( 'START_FROM' => 1, // skip "/" 'SITE_ID' => 's1' ) ); ?>