1 | <?php |
||||
2 | xoops_load('XoopsFormRendererBootstrap3'); |
||||
3 | XoopsFormRenderer::getInstance()->set(new XoopsFormRendererBootstrap3()); |
||||
4 | |||||
5 | /* Check if tinyMce 5 is seleected in system configuration */ |
||||
6 | $editor = xoops_getModuleOption('blocks_editor', 'system'); |
||||
0 ignored issues
–
show
Deprecated Code
introduced
by
Loading history...
|
|||||
7 | if ($editor != 'tinymce5') { |
||||
8 | $editor = xoops_getModuleOption('comments_editor', 'system'); |
||||
0 ignored issues
–
show
The function
xoops_getModuleOption() has been deprecated.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||
9 | if ($editor != 'tinymce5') { |
||||
10 | $editor = xoops_getModuleOption('general_editor', 'system'); |
||||
0 ignored issues
–
show
The function
xoops_getModuleOption() has been deprecated.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||
11 | } |
||||
12 | } |
||||
13 | if ($editor == 'tinymce5') { |
||||
14 | $GLOBALS['xoTheme']->addStylesheet( XOOPS_URL . '/class/xoopseditor/tinymce5/tinymce5/jscripts/tiny_mce/plugins/xoopscode/css/prism.css' ); |
||||
15 | $GLOBALS['xoTheme']->addScript( XOOPS_URL . '/class/xoopseditor/tinymce5/tinymce5/jscripts/tiny_mce/plugins/xoopscode/js/prism.js' ); |
||||
16 | } |
||||
17 |