-
Notifications
You must be signed in to change notification settings - Fork 20
/
boot.php
executable file
·32 lines (30 loc) · 1.19 KB
/
boot.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
<?php
/**
* @author Joachim Doerr
* @package redaxo5
* @license MIT
*/
if (rex_addon::exists('yform') &&
rex_addon::get('yform')->isAvailable() &&
rex_plugin::get('yform', 'manager')->isAvailable()) {
rex_yform::addTemplatePath(rex_path::addon('mform', 'ytemplates'));
rex_extension::register('MEDIA_IS_IN_USE', "FriendsOfRedaxo\\MformYformHelper::isMediaInUse");
}
if (rex::isBackend()) {
// add toggle files
rex_view::addCssFile($this->getAssetsUrl('toggle/toggle.css'));
rex_view::addJsFile($this->getAssetsUrl('toggle/toggle.js'));
// widgets
rex_view::addCssFile($this->getAssetsUrl('css/imglist.css'));
rex_view::addJsFile($this->getAssetsUrl('js/imglist.js'));
rex_view::addJsFile($this->getAssetsUrl('js/customlink.js'));
// add mform js / css
rex_view::addJsFile($this->getAssetsUrl('js/alpinejs.js'), [rex_view::JS_DEFERED => 'defer']);
rex_view::addJsFile($this->getAssetsUrl('repeater.js'));
rex_view::addJsFile($this->getAssetsUrl('mform.js'));
rex_view::addCssFile($this->getAssetsUrl('css/mform.css'));
// reset count per page init
if (rex_backend_login::hasSession()) {
rex_set_session('mform_count', 0);
}
}