-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinclude.php
More file actions
19 lines (17 loc) · 713 Bytes
/
Copy pathinclude.php
File metadata and controls
19 lines (17 loc) · 713 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
use Bitrix\Main\Application;
use Bitrix\Main\Loader;
defined('B_PROLOG_INCLUDED') and (B_PROLOG_INCLUDED === true) or die();
define('INSTALL_MODULE_ID', 'nm.webcam.widget');
$dirPath = strpos(__DIR__, "\\");
$currentDirectory = $dirPath ? str_replace('\\', '/', __DIR__) : __DIR__;
$sModulePath = str_ireplace(Application::getDocumentRoot(),'', $currentDirectory);
Loader::registerAutoLoadClasses(INSTALL_MODULE_ID, []);
CJSCore::RegisterExt(INSTALL_MODULE_ID, [
'js' => $sModulePath . '/assets/js/main.js',
'css' => $sModulePath . '/assets/css/main.css',
'rel' => ['playerjs_core']
]);
CJSCore::RegisterExt('playerjs_core', [
'js' => $sModulePath . '/assets/js/player.js',
]);