Your IP : 216.73.216.28


Current Path : /var/www/amortar/data/www/a-mortar/bitrix/modules/intec.constructor/classes/
Upload File :
Current File : /var/www/amortar/data/www/a-mortar/bitrix/modules/intec.constructor/classes/web.php

<?php
use intec\Core;
use intec\core\helpers\FileHelper;
use intec\core\bitrix\web\JavaScriptExtension as Extension;

$js = Core::$app->web->js;
$directory = Core::getAlias('@intec/constructor/resources');

if (FileHelper::isDirectory($directory)) {
    $js->addExtensions([
        new Extension([
            'id' => 'intec_constructor',
            'script' => $directory.'/js/constructor.js',
            'dependencies' => ['intec']
        ]),
        new Extension([
            'id' => 'intec_constructor_blocks',
            'script' => $directory.'/js/blocks.js',
            'dependencies' => ['intec']
        ])
    ]);
}

CUtil::InitJSCore( array('ajax' , 'popup' ));