: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
api.ModuleBox=class extends api.Module{
custom_css: 'add_css_box'
content_box:'<p>'+i18n.bcont+'</p>'
const setting = data || this.get('mod_settings');
return api.Helper.limitString(setting.content_box);
static builderSave(settings){
if(!settings.appearance_box || settings.appearance_box==='|' || settings.appearance_box==='false'){
delete settings.appearance_box;
const module=createElement('','module module-box'),
text=createElement('','tb_text_wrap'),
color=data.color_box && data.color_box!=='default'?data.color_box:'tb_default_color',
classes=['ui','module-box-content',color],
constructor=this.constructor;
classes.push(data.add_css_box);
classes.push(data.appearance_box.split('|').join(' ') );
content.className=classes.join(' ');
constructor._setEditableContent(text,'content_box','',1);
text.innerHTML=this.shortcodeToHTML(html).content;
content.appendChild(text);
module.appendChild(constructor.getModuleTitle(data.mod_title_box,'mod_title_box'));
module.appendChild(content);