Your IP : 3.128.202.252


Current Path : /var/www/www-root/data/webdav/www/www.monolith-realty.ru/bitrix/modules/landing/
Upload File :
Current File : /var/www/www-root/data/webdav/www/www.monolith-realty.ru/bitrix/modules/landing/include.php

<?php

use Bitrix\Landing\Manager;

$pathJS = '/bitrix/js/landing';
$pathTemplate24 = 'templates/';
$pathTemplate24 .= Manager::getTemplateId(
	Manager::getMainSiteId()
);
$pathTemplate24 = getLocalPath($pathTemplate24);
$pathCSS = '/bitrix/js/landing/css';
$pathLang = BX_ROOT . '/modules/landing/lang/' . LANGUAGE_ID;

$jsConfig = [
	'landing_master' => [
		'rel' => [
			'landing.master',
			'landing_icon_fonts',
		],
	],

	'landing_note' => [
		'js' => [
			$pathJS . '/ui/note/menu.js'
		],
		'rel' => [
			'sidepanel',
			'ui.notification'
		],
		'lang' => $pathLang . '/js/note.php'
	],

	'mediaplayer' => [
		'js' => [
			$pathJS . '/mediaplayer/base_mediaplayer.js',
			$pathJS . '/mediaplayer/youtube_mediaplayer.js',
			$pathJS . '/mediaplayer/mediaplayer_factory.js',
		],
		'rel' => [
			'landing.utils',
		]
	],

	'landing_inline_video' => [
		'js' => [
			$pathTemplate24 . '/assets/js/helpers/inline-video.js',
		],
		'lang' => $pathLang . '/js/video_alert.php',
		'rel' => ['mediaplayer', 'loader']
	],

	'polyfill' => [
		'js' => [
			$pathJS . '/polyfill.js',
		]
	],

	'action_dialog' => [
		'js' => [
			$pathJS . '/ui/tool/action_dialog.js'
		],
		'css' => [
			$pathCSS . '/ui/tool/action_dialog.css',
		],
		'rel' => [
			'polyfill',
			'popup'
		],
		'lang' => $pathLang . '/js/action_dialog.php'
	],

	'landing_public' => [
		'js' => [
			$pathJS . '/events/block_event.js',
			$pathJS . '/public.js',
		],
		'css' => [
			$pathCSS . '/landing_public.css',
		],
		'rel' => [
			'landing_event_tracker',
			'polyfill',
			'landing.utils',
		],
	],

	'landing_event_tracker' => [
		'js' => [
			$pathJS . '/event-tracker/event-tracker.js',
			$pathJS . '/event-tracker/services/base-service.js',
			$pathJS . '/event-tracker/services/google-analytics-service.js'
		],
		'rel' => [
			'landing.utils',
		],
	],

	// vendors scripts for ALL blocks, included always
	'landing_core' => [
		'js' => [
			$pathTemplate24 . '/assets/js/helpers/onscroll-animation_init.js',
		],
		'css' => [
			$pathTemplate24 . '/assets/vendor/bootstrap/bootstrap.css',
			$pathTemplate24 . '/theme.css',
			$pathTemplate24 . '/assets/css/custom.css',
			$pathTemplate24 . '/assets/vendor/animate.css',
		],
		'rel' => [
			'main.core',
			'main.polyfill.intersectionobserver',
			'landing.utils',
			'ui.fonts.opensans',
		],
	],

	'landing_critical_grid' => [
		'css' => [
			$pathTemplate24 . '/assets/vendor/bootstrap/bootstrap.css',
			$pathTemplate24 . '/theme.css',
			$pathCSS . '/landing_public.css',
		],
		'rel' => [
			'ui.fonts.opensans',
		],
	],

	'landing_jquery' => [
		'js' => [
			$pathTemplate24 . '/assets/vendor/jquery/jquery_landing.js',
			$pathTemplate24 . '/assets/vendor/jquery.easing/js/jquery.easing_landing.js',
		],
	],

	'landing_fancybox' => [
		'js' => [
			$pathTemplate24 . '/assets/vendor/fancybox/jquery.fancybox_landing.js',
		],
		'css' => [
			$pathTemplate24 . '/assets/vendor/fancybox/jquery.fancybox.css',
		],
		'rel' => ['landing_jquery']
	],

	'landing_popup_link' => [
		'js' => [
			$pathTemplate24 . '/assets/js/helpers/popup_init.js',
		],
		'rel' => ['mediaplayer', 'landing_fancybox'],
	],

	'landing_upper' => [
		'js' => [
			$pathTemplate24 . '/assets/js/helpers/upper_init.js',
		],
	],

	'landing_icon_fonts' => [
		'css' => [
			$pathTemplate24 . '/assets/vendor/icon/et-icon/style.css',
			$pathTemplate24 . '/assets/vendor/icon/et-icon/content.css',
			$pathTemplate24 . '/assets/vendor/icon/hs-icon/style.css',
			$pathTemplate24 . '/assets/vendor/icon/hs-icon/content.css',
			$pathTemplate24 . '/assets/vendor/icon/icon/style.css',
			$pathTemplate24 . '/assets/vendor/icon/icon/content.css',
			$pathTemplate24 . '/assets/vendor/icon/icon-christmas/style.css',
			$pathTemplate24 . '/assets/vendor/icon/icon-christmas/content.css',
			$pathTemplate24 . '/assets/vendor/icon/icon-clothes/style.css',
			$pathTemplate24 . '/assets/vendor/icon/icon-clothes/content.css',
			$pathTemplate24 . '/assets/vendor/icon/icon-communication/style.css',
			$pathTemplate24 . '/assets/vendor/icon/icon-communication/content.css',
			$pathTemplate24 . '/assets/vendor/icon/icon-education/style.css',
			$pathTemplate24 . '/assets/vendor/icon/icon-education/content.css',
			$pathTemplate24 . '/assets/vendor/icon/icon-electronics/style.css',
			$pathTemplate24 . '/assets/vendor/icon/icon-electronics/content.css',
			$pathTemplate24 . '/assets/vendor/icon/icon-finance/style.css',
			$pathTemplate24 . '/assets/vendor/icon/icon-finance/content.css',
			$pathTemplate24 . '/assets/vendor/icon/icon-food/style.css',
			$pathTemplate24 . '/assets/vendor/icon/icon-food/content.css',
			$pathTemplate24 . '/assets/vendor/icon/icon-furniture/style.css',
			$pathTemplate24 . '/assets/vendor/icon/icon-furniture/content.css',
			$pathTemplate24 . '/assets/vendor/icon/icon-hotel-restaurant/style.css',
			$pathTemplate24 . '/assets/vendor/icon/icon-hotel-restaurant/content.css',
			$pathTemplate24 . '/assets/vendor/icon/icon-media/style.css',
			$pathTemplate24 . '/assets/vendor/icon/icon-media/content.css',
			$pathTemplate24 . '/assets/vendor/icon/icon-medical/style.css',
			$pathTemplate24 . '/assets/vendor/icon/icon-medical/content.css',
			$pathTemplate24 . '/assets/vendor/icon/icon-music/style.css',
			$pathTemplate24 . '/assets/vendor/icon/icon-music/content.css',
			$pathTemplate24 . '/assets/vendor/icon/icon-real-estate/style.css',
			$pathTemplate24 . '/assets/vendor/icon/icon-real-estate/content.css',
			$pathTemplate24 . '/assets/vendor/icon/icon-science/style.css',
			$pathTemplate24 . '/assets/vendor/icon/icon-science/content.css',
			$pathTemplate24 . '/assets/vendor/icon/icon-sport/style.css',
			$pathTemplate24 . '/assets/vendor/icon/icon-sport/content.css',
			$pathTemplate24 . '/assets/vendor/icon/icon-transport/style.css',
			$pathTemplate24 . '/assets/vendor/icon/icon-transport/content.css',
			$pathTemplate24 . '/assets/vendor/icon/icon-travel/style.css',
			$pathTemplate24 . '/assets/vendor/icon/icon-travel/content.css',
			$pathTemplate24 . '/assets/vendor/icon/icon-weather/style.css',
			$pathTemplate24 . '/assets/vendor/icon/icon-weather/content.css',

			// one common styles for all FA types - for editor
			$pathTemplate24 . '/assets/vendor/icon/fa6/all.css',
			$pathTemplate24 . '/assets/vendor/icon/fa6/v4-shims.css',
			$pathTemplate24 . '/assets/vendor/icon/fab/style.css',
			$pathTemplate24 . '/assets/vendor/icon/fab/content.css',
		],
	],

	'landing_menu' => [
		'js' => [
			$pathTemplate24 . '/assets/vendor/bootstrap/js/dist/util.js',
			$pathTemplate24 . '/assets/vendor/bootstrap/js/dist/collapse.js',
			$pathTemplate24 . '/assets/js/helpers/menu/scrollspy.js',
			$pathTemplate24 . '/assets/js/helpers/menu/menu_init.js',
		],
		'css' => [
			$pathTemplate24 . '/assets/vendor/hamburgers/dist/hamburgers.css',
		],
		'lang' => $pathLang . '/js/navbars.php',
		// todo: jquery need just for collapse - to native
		'rel' => ['landing_core', 'landing_jquery'],
	],

	'landing_faq' => [
		'js' => [
			$pathTemplate24 . '/assets/js/helpers/faq/faq.js',
		],
		'css' => [
			$pathTemplate24 . '/assets/css/faq.css',
		],
	],

	'landing_header' => [
		'js' => [
			$pathTemplate24 . '/assets/js/helpers/menu/block-header-entry.js',
			$pathTemplate24 . '/assets/js/helpers/menu/block-header-init.js',
		],
		'rel' => ['landing_core'],
	],

	'landing_header_sidebar' => [
		'js' => [
			$pathTemplate24 . '/assets/js/helpers/header-sidebar.js',
		],
		'rel' => ['landing_core'],
	],

	'landing_form' => [
		'js' => [
			$pathTemplate24 . '/assets/js/helpers/form_init.js',
		],
		'lang' => $pathLang . '/js/webform_alerts.php',
		'rel' => ['landing.backend'],
	],

	'landing_gallery_cards' => [
		'js' => [
			$pathTemplate24 . '/assets/js/helpers/gallery_cards_init.js',
		],
		'rel' => ['landing_core', 'landing_fancybox'],
	],

	'landing_chat' => [
		'js' => [
			$pathTemplate24 . '/assets/js/helpers/chat_init.js',
		]
	],

	'landing_carousel' => [
		'js' => [
			$pathTemplate24 . '/assets/vendor/slick-carousel/slick/slick_landing.js',
			$pathTemplate24 . '/assets/js/components/hs.core_landing.js',
			$pathTemplate24 . '/assets/js/components/hs.carousel.js',
			$pathTemplate24 . '/assets/js/helpers/carousel/carousel_helper.js',
			$pathTemplate24 . '/assets/js/helpers/carousel/base_carousel_init.js',
		],
		'css' => [
			$pathTemplate24 . '/assets/vendor/slick-carousel/slick/slick.css',
			$pathTemplate24 . '/assets/vendor/slick-carousel/slick/landing-slick.css',
		],
		'rel' => ['landing_core','landing_jquery'],
	],

	'landing_countdown' => [
		'js' => [
			$pathTemplate24 . '/assets/vendor/jquery.countdown/jquery.countdown_landing.js',
			$pathTemplate24 . '/assets/js/components/hs.core_landing.js',
			$pathTemplate24 . '/assets/js/components/hs.countdown.js',
			$pathTemplate24 . '/assets/js/helpers/countdown_init.js',
		],
		'rel' => ['landing_core', 'landing_jquery'],
	],

	'landing_google_maps_new' => [
		'rel' => [
			'landing_map'
		]
	],

	'landing_map' => [
		'js' => [
			$pathTemplate24 . '/assets/js/helpers/map_init.js'
		],
		'rel' => [
			'landing.provider.map'
		]
	],

	'landing_lazyload' => [
		'js' => [
			$pathTemplate24 . '/assets/js/helpers/lazyload.js',
		],
		'rel' => [
			'main.polyfill.intersectionobserver',
		]
	],

	'landing_auto_font_scale' => [
		'js' => [
			$pathTemplate24 . '/assets/js/helpers/auto_font_scale_init.js',
		],
		'rel' => [
			'landing.ui.tool.auto_font_scale',
		]
	],

	'landing_backlinks' => [
		'js' => [
			$pathTemplate24 . '/assets/js/helpers/backlinks/backlinks.js',
		],
	],

	// todo: not used? can del?
	// 'landing_bootstrap_modal' => array(
	// 	'js' => array(
	// 		$pathTemplate24 . '/assets/vendor/bootstrap/js/dist/util.js',
	// 		$pathTemplate24 . '/assets/vendor/bootstrap/js/dist/modal.js',
	// 	),
	// 	'rel' => ['landing_core','landing_jquery'],
	// ),
];


foreach ($jsConfig as $code => $ext)
{
	\CJSCore::registerExt($code, $ext);
}