: 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
wrap.appendChild(createElement('span',{role:'button',class:'tb_del_btn tb_del_micon tf_close tb_disable_sorting',title:'Delete Button'}));
const module = createElement(),
{content_icon:arr=[],icon_position,icon_arrangement,icon_style,icon_size,css_icon} = data,
classes = ['module', 'module-icon'];
classes.push(icon_style);
classes.push(icon_arrangement);
if (icon_position && icon_position !== 'undefined') {
classes.push('tf_text' + icon_position.replace('icon_position_', '')[0]);
if(cl.contains('tb_add_micon') || cl.contains('tb_del_micon')){
if(cl.contains('tb_add_micon')){
if(api.activeModel?.id===this.id){
Themify.triggerEvent(api.LightBox.el.tfClass('add_new')[0],e.type);
api.undoManager.start('inlineAdd');
const settings=this.get('mod_settings'),
def=this.constructor.default().content_icon?.[0] || {},
item=this._getItem(def,settings);
settings.content_icon??=[];
settings.content_icon.push(def);
target.parentNode.after(item);
item.appendChild(target);
this.set('mod_settings',settings);
api.undoManager.end('inlineAdd');
const item=target.closest('.module-icon-item'),
index=Themify.convert(item.parentNode.tfClass('module-icon-item')).indexOf(item);
if(api.activeModel?.id===this.id){
Themify.triggerEvent(api.LightBox.el.tfClass('tb_delete_row')[index],e.type);
api.undoManager.start('inlineDelete');
const settings=this.get('mod_settings'),
addBtn=item.tfClass('tb_add_micon')[0];
settings.content_icon.splice(index, 1);
this.set('mod_settings',settings);
item.previousElementSibling?.appendChild(addBtn);
api.undoManager.end('inlineDelete');
.className = classes.join(' ');
for (let i = 0,len=arr.length; i < len; ++i) {
let item=this._getItem(arr[i],data);
item.appendChild(createElement('span',{role:'button',class:'tb_add_btn tb_add_micon tf_plus_icon tb_disable_sorting',title:'Add Button'}));
module.appendChild(item);