-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathinclude.php
39 lines (36 loc) · 1.55 KB
/
include.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
use Bitrix\Main\Localization\Loc;
Loc::loadMessages(__FILE__);
$arJsLibs = [
'WindowEntityPrepareForm' => [
'js' => '/bitrix/themes/ylab.ddata/js/WindowEntityPrepareForm.js',
'lang' => '/bitrix/themes/ylab.ddata/lang/' . LANGUAGE_ID . '/WindowEntityPrepareForm.php',
'rel' => ['ajax', 'window']
],
'WindowEntityDataForm' => [
'js' => '/bitrix/themes/ylab.ddata/js/WindowEntityDataForm.js',
'lang' => '/bitrix/themes/ylab.ddata/lang/' . LANGUAGE_ID . '/WindowEntityDataForm.php',
'rel' => ['ajax', 'window']
],
'WindowEntityProfileGen' => [
'js' => '/bitrix/themes/ylab.ddata/js/WindowEntityProfileGen.js',
'lang' => '/bitrix/themes/ylab.ddata/lang/' . LANGUAGE_ID . '/WindowEntityProfileGen.php',
'rel' => ['ajax', 'window']
],
'ErrorChecking' => [
'js' => '/bitrix/themes/ylab.ddata/js/ErrorChecking.js'
],
'ImportProfile' => [
'js' => '/bitrix/themes/ylab.ddata/js/ImportProfile.js',
'lang' => '/bitrix/themes/ylab.ddata/lang/' . LANGUAGE_ID . '/ImportProfile.php',
'rel' => ['ajax']
],
'SettingsForm' => [
'js' => '/bitrix/themes/ylab.ddata/js/SettingsForm.js',
'lang' => '/bitrix/themes/ylab.ddata/lang/' . LANGUAGE_ID . '/SettingsForm.php'
]
];
foreach ($arJsLibs as $jsLib => $arJsLib) {
CJSCore::RegisterExt($jsLib, $arJsLib);
}
define('LANG_ROOT', \Bitrix\Main\Application::getInstance()->getContext()->getServer()->getDocumentRoot() . \Ylab\Ddata\Helpers::getModulePath(true) . '/include.php');