-
Notifications
You must be signed in to change notification settings - Fork 1
/
boot.php
18 lines (15 loc) · 834 Bytes
/
boot.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
$addon = rex_addon::get('yform_flexible_content');
if (rex::isBackend() && rex::getUser()) {
rex_yform::addTemplatePath($this->getPath('ytemplates'));
if ('index.php?page=yform/manager/table_field' === rex_url::currentBackendPage() ||
'index.php?page=yform/manager/data_edit' === rex_url::currentBackendPage()) {
rex_view::addJsFile($addon->getAssetsUrl('yform-flexible-content.js'));
// rex_view::addJsFile('https://cdn.tailwindcss.com');
rex_view::addCssFile($addon->getAssetsUrl('yform-flexible-content.css'));
rex_view::setJsProperty('yform_flexible_content', [
'delete_group' => rex_i18n::msg('yform_flexible_content_confirm_delete_group'),
'delete_field' => rex_i18n::msg('yform_flexible_content_confirm_delete_field'),
]);
}
}