Your IP : 18.217.128.191


Current Path : /var/www/www-root/data/webdav/www/www.monolith-realty.ru/
Upload File :
Current File : /var/www/www-root/data/webdav/www/www.monolith-realty.ru/indexblocks_index1.php

<?
if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) die();
global $arMainPageOrder, $arTheme, $bigBannersIndexClass; //global array for order blocks

if($arMainPageOrder && is_array($arMainPageOrder)){
	$bActiveTheme = ($arTheme["THEME_SWITCHER"]["VALUE"] == 'Y');
	$indexType = $arTheme["INDEX_TYPE"]["VALUE"];
	$indexPageOptions = $arTheme['INDEX_TYPE']['SUB_PARAMS'][$indexType];
    $tizersBlock = false;

    $keyInc = 0;
	foreach($arMainPageOrder as $key => $optionCode){
		$bShowBlock = ($bActiveTheme || ($indexPageOptions[$optionCode]["VALUE"] != "N"));
		$bBlockIndexClass = ($indexPageOptions[$optionCode]["VALUE"] == 'Y' ? '' : 'hidden');

		if($optionCode === 'BIG_BANNER_INDEX'){
			$bigBannersIndexClass = $bBlockIndexClass;
		}
        if($optionCode === 'TIZERS'){
            $tizersBlock = true;
        }
        if($optionCode === 'CUSTOM_TEXT'){
            $catalogFileBlock = true;
        }
        if($optionCode === 'REVIEWS'){
            $reviewsBlock = true;
        }
		
		$currentBlockOptions = $indexPageOptions[$optionCode]['INDEX_BLOCK_OPTIONS'];
		$indexBlockClasses = CAllcorp3::getIndexBlockClasses($currentBlockOptions);

		$strTemplateName = $arTheme['TEMPLATE_PARAMS'][$arTheme['INDEX_TYPE']['VALUE']][$arTheme['INDEX_TYPE']['VALUE'].'_'.$optionCode.'_TEMPLATE']['VALUE'];
		$subtype = strtolower($optionCode);

		$bAjaxBlock = ($currentBlockOptions['AJAX']['ENABLE'] === 'Y' && $currentBlockOptions['AJAX']['FILE_PATH']);
		//echo SITE_DIR.$currentBlockOptions['AJAX']['FILE_PATH'].'/'.$subtype.'/'.$strTemplateName.'.php';exit;
		$ajaxPath = $bAjaxBlock ? str_replace('//', '/', SITE_DIR.$currentBlockOptions['AJAX']['FILE_PATH'].'/'.$subtype.'/'.$strTemplateName.'.php') : '';

		if($bShowBlock){
			?><div class="drag-block container <?=$optionCode?> <?=$bBlockIndexClass?>" data-class="<?=$subtype?>_drag" data-order="<?=++$key + $keyInc?>">
				<div class="<?=$indexBlockClasses?> " <?=($ajaxPath ? 'data-file="'.$ajaxPath.'"' : '')?>>
					<?=CAllcorp3::ShowPageType('mainpage', $subtype, $strTemplateName, true);?>
				</div>
			</div><?			
		}

        /*if($tizersBlock){
            ?><div class="drag-block container VIDEO_MAIN " data-class="<?=$subtype?>_drag" data-order="<?=++$key + $keyInc?>">
            <div class="index-block index-block--padding-top-80 index-block--padding-bottom-80" <?=($ajaxPath ? 'data-file="'.$ajaxPath.'"' : '')?>>
                <div class="maxwidth-theme">
                    <h2 class="index-block__title">Фильм для будущих инвесторов</h2>
                    <p class="index-block__preview index-block__preview--mb-66">Фильм для инвесторов и будущих владельцев домов, апартаментов, квартир.</p>
                    <iframe id="youvideo" width="1161px" height="650px" class="index-video index-video--main" src="https://www.youtube.com/embed/91oKntn5cqM?si=c1aGWI7vdYpgasba&amp;controls=0" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
<!--                    <video class="index-video index-video--main" data-src="/upload/video/main-video.mp4" playsinline="" allowfullscreen="" controlslist="nodownload" controls=""> <source type="video/mp4" src="/upload/video/main-video.mp4"></video>-->
                </div>
            </div>
            </div>
			<script>
			
			/*$(function(){
			  $('#youvideo').css({ width: '1161px', height: '650px' });

			  // If you want to keep full screen on window resize
			  $(window).resize(function(){
				$('#youvideo').css({ width: $(window).innerWidth() + 'px', height: $(window).innerHeight() + 'px' });
			  });
			});
			*//*?>
			</script>
			<?
        }
        */
		if($tizersBlock){
		?>
		<div class="drag-block container PODBORKA " data-class="<?=$subtype?>_drag" data-order="<?=++$key + $keyInc?>">
			<div class="index-block index-block--padding-top-40 index-block--padding-bottom-40 ">
				<div class="sections-list sections-list--items-offset sections-list--city .default-template">
					<div class="maxwidth-theme">
					<?$APPLICATION->IncludeComponent(
			"bitrix:news.list",
			"template_selections_filter",
			Array(
				"ACTIVE_DATE_FORMAT" => "d.m.Y",
				"ADD_SECTIONS_CHAIN" => "N",
				"AJAX_MODE" => "N",
				"AJAX_OPTION_ADDITIONAL" => "",
				"AJAX_OPTION_HISTORY" => "N",
				"AJAX_OPTION_JUMP" => "N",
				"AJAX_OPTION_STYLE" => "Y",
				"CACHE_FILTER" => "N",
				"CACHE_GROUPS" => "Y",
				"CACHE_TIME" => "36000000",
				"CACHE_TYPE" => "A",
				"CHECK_DATES" => "Y",
				"DETAIL_URL" => "",
				"DISPLAY_BOTTOM_PAGER" => "N",
				"DISPLAY_DATE" => "N",
				"DISPLAY_NAME" => "Y",
				"DISPLAY_PICTURE" => "Y",
				"DISPLAY_PREVIEW_TEXT" => "Y",
				"DISPLAY_TOP_PAGER" => "N",
				"FIELD_CODE" => array("SORT",""),
				"FILTER_NAME" => "",
				"HIDE_LINK_WHEN_NO_DETAIL" => "N",
				"IBLOCK_ID" => "157",
				"IBLOCK_TYPE" => "monolith_real_catalog",
				"INCLUDE_IBLOCK_INTO_CHAIN" => "N",
				"INCLUDE_SUBSECTIONS" => "N",
				"MESSAGE_404" => "",
				"NEWS_COUNT" => "20",
				"PAGER_BASE_LINK_ENABLE" => "N",
				"PAGER_DESC_NUMBERING" => "N",
				"PAGER_DESC_NUMBERING_CACHE_TIME" => "",
				"PAGER_SHOW_ALL" => "N",
				"PAGER_SHOW_ALWAYS" => "N",
				"PAGER_TEMPLATE" => ".default",
				"PAGER_TITLE" => "",
				"PARENT_SECTION" => "",
				"PARENT_SECTION_CODE" => "",
				"PREVIEW_TRUNCATE_LEN" => "",
				"PROPERTY_CODE" => array("ATTR_LINK_MAIN","ATTR_DISTRICT","ATTR_LINKS","ATTR_OFTEN_LOOKING",""),
				"SET_BROWSER_TITLE" => "N",
				"SET_LAST_MODIFIED" => "N",
				"SET_META_DESCRIPTION" => "N",
				"SET_META_KEYWORDS" => "N",
				"SET_STATUS_404" => "N",
				"SET_TITLE" => "N",
				"SHOW_404" => "N",
				"SORT_BY1" => "SORT",
				"SORT_BY2" => "SORT",
				"SORT_ORDER1" => "DESC",
				"SORT_ORDER2" => "ASC",
				"STRICT_SECTION_CHECK" => "N"
			)
		);?>
		</div></div></div></div>			
		<?/*$APPLICATION->IncludeComponent(
			"bitrix:news.list",
			"template_selections_filter",
			Array(
				"ACTIVE_DATE_FORMAT" => "d.m.Y",
				"ADD_SECTIONS_CHAIN" => "N",
				"AJAX_MODE" => "N",
				"AJAX_OPTION_ADDITIONAL" => "",
				"AJAX_OPTION_HISTORY" => "N",
				"AJAX_OPTION_JUMP" => "N",
				"AJAX_OPTION_STYLE" => "Y",
				"CACHE_FILTER" => "N",
				"CACHE_GROUPS" => "Y",
				"CACHE_TIME" => "36000000",
				"CACHE_TYPE" => "A",
				"CHECK_DATES" => "Y",
				"DETAIL_URL" => "",
				"DISPLAY_BOTTOM_PAGER" => "N",
				"DISPLAY_DATE" => "N",
				"DISPLAY_NAME" => "Y",
				"DISPLAY_PICTURE" => "Y",
				"DISPLAY_PREVIEW_TEXT" => "Y",
				"DISPLAY_TOP_PAGER" => "N",
				"FIELD_CODE" => array("SORT",""),
				"FILTER_NAME" => "",
				"HIDE_LINK_WHEN_NO_DETAIL" => "N",
				"IBLOCK_ID" => "157",
				"IBLOCK_TYPE" => "monolith_real_catalog",
				"INCLUDE_IBLOCK_INTO_CHAIN" => "N",
				"INCLUDE_SUBSECTIONS" => "N",
				"MESSAGE_404" => "",
				"NEWS_COUNT" => "20",
				"PAGER_BASE_LINK_ENABLE" => "N",
				"PAGER_DESC_NUMBERING" => "N",
				"PAGER_DESC_NUMBERING_CACHE_TIME" => "",
				"PAGER_SHOW_ALL" => "N",
				"PAGER_SHOW_ALWAYS" => "N",
				"PAGER_TEMPLATE" => ".default",
				"PAGER_TITLE" => "",
				"PARENT_SECTION" => "",
				"PARENT_SECTION_CODE" => "",
				"PREVIEW_TRUNCATE_LEN" => "",
				"PROPERTY_CODE" => array("ATTR_LINK_MAIN","ATTR_DISTRICT","ATTR_LINKS","ATTR_OFTEN_LOOKING",""),
				"SET_BROWSER_TITLE" => "N",
				"SET_LAST_MODIFIED" => "N",
				"SET_META_DESCRIPTION" => "N",
				"SET_META_KEYWORDS" => "N",
				"SET_STATUS_404" => "N",
				"SET_TITLE" => "N",
				"SHOW_404" => "N",
				"SORT_BY1" => "SORT",
				"SORT_BY2" => "SORT",
				"SORT_ORDER1" => "DESC",
				"SORT_ORDER2" => "ASC",
				"STRICT_SECTION_CHECK" => "N"
			)
		);*/?>
            
		<?
		}
		$tizersBlock = false;
		

        if($catalogFileBlock){?>
            <div class="drag-block container HELLO_BANNER " data-class="<?=$subtype?>_drag" data-order="<?=++$key + $keyInc?>">
            <div class="index-block index-block--padding-top-130 index-block--padding-bottom-80 " <?=($ajaxPath ? 'data-file="'.$ajaxPath.'"' : '')?>>
                <?$APPLICATION->IncludeComponent(
                    "aspro:com.banners.allcorp3",
                    "banners-fon",
                    array(
                        "IBLOCK_TYPE" => "aspro_allcorp3_adv",
                        "IBLOCK_ID" => CAllcorp3Cache::$arIBlocks[SITE_ID]["aspro_allcorp3_adv"]["aspro_allcorp3_banners_fon"][0],
                        "SECTION_ITEM_CODE" => "hello",
                        "TYPE_BANNERS_IBLOCK_ID" => CAllcorp3Cache::$arIBlocks[SITE_ID]["aspro_allcorp3_adv"]["aspro_allcorp3_banner_types"][0],
                        'BANNER_TYPE_THEME' => 'BANNER_IMG_FON1',
                        "NEWS_COUNT" => 1,
                        "SET_BANNER_FROM_TYPE" => "Y",
                        "SORT_BY1" => "SORT",
                        "SORT_ORDER1" => "ASC",
                        "SORT_BY2" => "ID",
                        "SORT_ORDER2" => "ASC",
                        "FILTER_NAME" => "",
                        "FIELD_CODE" => array(
                            0 => "NAME",
                            1 => "PREVIEW_TEXT",
                            2 => "PREVIEW_PICTURE",
                            3 => "DETAIL_PICTURE",
                            4 => "",
                        ),
                        "PROPERTY_CODE" => array(
                            0 => "TOP_TEXT",
                            1 => "BANNERTYPE",
                            2 => "URL",
                            3 => "BTN_TEXT",
                            4 => "BTN_LINK",
                            5 => "BTN_FORM_ID",
                        ),
                        "CHECK_DATES" => "Y",
                        "DETAIL_URL" => "",
                        "AJAX_MODE" => "N",
                        "AJAX_OPTION_JUMP" => "N",
                        "AJAX_OPTION_STYLE" => "Y",
                        "AJAX_OPTION_HISTORY" => "N",
                        "CACHE_TYPE" => "A",
                        "CACHE_TIME" => "3600000",
                        "CACHE_FILTER" => "Y",
                        "CACHE_GROUPS" => "N",
                        "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" => "N",
                        "PARENT_SECTION" => "",
                        "PARENT_SECTION_CODE" => "",
                        "INCLUDE_SUBSECTIONS" => "N",
                        "PAGER_TEMPLATE" => ".default",
                        "DISPLAY_TOP_PAGER" => "N",
                        "DISPLAY_BOTTOM_PAGER" => "N",
                        "PAGER_TITLE" => "Новости",
                        "PAGER_SHOW_ALWAYS" => "N",
                        "PAGER_DESC_NUMBERING" => "N",
                        "PAGER_DESC_NUMBERING_CACHE_TIME" => "3600000",
                        "PAGER_SHOW_ALL" => "N",
                        "AJAX_OPTION_ADDITIONAL" => "",
                        "COMPONENT_TEMPLATE" => "banners-fon",
                        "WIDE" => 'FROM_THEME',
                        "ITEMS_OFFSET" => 'FROM_THEME',
                        "LINES_COUNT" => 'FROM_THEME',
                        "CODE_BLOCK" => 'FLOAT_BANNERS',
                        "TYPE_BLOCK" => 'BIG_BANNER',
                        "SET_BROWSER_TITLE" => "N",
                        "SET_META_KEYWORDS" => "N",
                        "SET_META_DESCRIPTION" => "N",
                        "SET_LAST_MODIFIED" => "N",
                        "STRICT_SECTION_CHECK" => "N",
                        "PAGER_BASE_LINK_ENABLE" => "N",
                        "SHOW_404" => "N",
                        "MESSAGE_404" => "",
                    ),
                    false
                );?>
            </div>
            </div>
            <?}
        $catalogFileBlock = false;

        if($reviewsBlock){?>
            <div class="drag-block container CASES" data-class="cases_drag" data-order="<?=++$key + $keyInc?>">
                <div class="<?=$indexBlockClasses?> index-block--fon block--cases" data-file="/include/mainpage/components/cases/type_1.php">
					<?=CAllcorp3::ShowPageType('mainpage', 'cases', 'type_1', true);?>
                </div>
            </div>
        <?
			$keyInc = 1;
        }
        $reviewsBlock = false;
	}
	?>
<?}?>
<style>
.jqmWindow {
    filter: none !important;
}
.index-block--padding-bottom-80 .form__img--SIDE_IMG.form--static {
    aspect-ratio: 0.6735 / 1;
}
@media screen and (min-width: 993px) {
  .flexbox.flexbox--column-t991.blah1 {
    display: grid;
    grid-template-columns: 500px 1fr;
    gap: 24px;
  }
  .company-item--IMG_SIDE .company-item__heading .maxwidth-theme--half {
    padding-right: 0;
  }
  .maxwidth-theme--half .index-block__title {
    font-size: 30px;
    line-height: 120%;
  }
  .flexbox.flexbox--column-t991.blah1 .company-item__picture--no-fon.bg-fix {
    background-size: contain;
    max-width: 100%;
  }
}

@media (min-width: 992px) {
  #main.fixed_y .sticky-block{
    margin: 0 auto;
    max-width: 600px!important;
  }
  .company-item__picture-wrapper--wide {
      padding-top: 20%!important;
  }
}
.form-list-template .form-fon{
    background-position: center !important;
}
.index-block--padding-bottom-80 .form__img--SIDE_IMG.form--static {
    aspect-ratio: 1 / 1;
}
body .maxwidth-theme--half{
	padding-bottom: 0!important;
}
.YOUTUBE{
	display:none!important;
}
.index-block--fon{
    background: none;
}

.COMPANY_TEXT section{
	display:none!important;
}
.CATALOG_TAB .index-block__subtitle{
	display:none!important;
}
.CATALOG_TAB .index-block{
	padding-bottom:0px!important;
}
.banners-fon-list.banners-fon-template{
  padding-top: 0;
  margin-top: -100px; 
}
.REVIEWS {
  padding-top: 0;
  margin-top: -100px; 
}
</style>

<script>
	//$(".COMPANY_TEXT").empty('section');
	//$(".CATALOG_TAB .index-block").removeClass();
</script>