: 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.ModuleIcon = class extends api.Module {
wrap_class: 'tb_group_element_image',
wrap_class: 'tb_group_element_icon',
wrap_class: 'tb_group_element_l',
selector: '.module-icon-item>span'
wrap_class: ' tb_compact_radios'
wrap_class: 'tb_group_element_lightbox'
default:'icon_horizontal',
img: 'horizontal_button',
value: 'icon_horizontal',
static builderSave(settings) {
icon_arrangement: 'icon_horizontal',
icons = settings.content_icon,
units=['f_s_i','f_s_i_h'];
if(settings.icon_position === 'undefined'){
delete settings.icon_position;
if (settings[key] === def[key]) {
lightbox_width_unit: 'px',
lightbox_height_unit: 'px',
for (let i = icons.length - 1; i > -1; --i) {
iconType = icon.icon_type;
for (let key in iconDef) {
if (icon[key] === iconDef[key]) {
if (iconType === 'image' || iconType === 'l') {
if (iconType === 'image') {
delete icon.icon_color_bg;
for (let i = lottieDel.length - 1; i > -1; --i) {
if (icon[lottieDel[i]] !== undefined) {
delete icon[lottieDel[i]];
delete icon.link_options;
if (icon.link_options !== 'lightbox') {
delete icon.lightbox_width;
delete icon.lightbox_height;
if (!icon.lightbox_width) {
delete icon.lightbox_width_unit;
if (!icon.lightbox_height) {
delete icon.lightbox_height_unit;
if (!icon.hide_label || !icon.label || icon.hide_label==='|' || icon.hide_label==='false') {
for(let bps=api.breakpointsReverse,i=bps.length-1;i>-1;--i){
this.clearImageGradient('background_image','background_color','background_repeat','background_position',bp,settings);
this.clearImageGradient('b_i_h','bg_c_h','b_r_h','b_p_h',bp,settings);
this.clearFontColor('font_color_type','font_color','font_gradient_color',bp,settings);
this.clearFontColor('f_c_t_f_c_h','f_c_f_c_h','f_g_c_f_c_h',bp,settings);
this.clearShadow('text-shadow',0,bp,settings);
this.clearShadow('t_sh_h',0,bp,settings);
this.clearPadding('padding',bp,settings);
this.clearPadding('p_h',bp,settings);
this.clearPadding('p_ctn',bp,settings);
this.clearPadding('p_ctn_h',bp,settings);
this.clearPadding('p_i',bp,settings);
this.clearPadding('p_i_h',bp,settings);
this.clearPadding('margin',bp,settings);
this.clearPadding('m_h',bp,settings);
this.clearPadding('m_ctn',bp,settings);
this.clearPadding('m_ctn_h',bp,settings);
this.clearPadding('m_i',bp,settings);
this.clearPadding('m_i_h',bp,settings);
this.clearPadding('b_ra',bp,settings);
this.clearPadding('r_c_h',bp,settings);
this.clearPadding('r_c_ctn',bp,settings);
this.clearPadding('r_c_ctn_h',bp,settings);
this.clearPadding('r_c_i',bp,settings);
this.clearPadding('r_c_i_h',bp,settings);
this.clearBorder('border',bp,settings);
this.clearBorder('b_h',bp,settings);
this.clearBorder('b_ctn',bp,settings);
this.clearBorder('b_ctn_h',bp,settings);
this.clearFilter('bl_m','css_f',bp,settings);
this.clearFilter('_h','css_f_h',bp,settings);
this.clearWidth('w',bp,settings);
this.clearWidth('ht',bp,settings,1);
this.clearShadow('b_sh',1,bp,settings);
this.clearShadow('sh_h',1,bp,settings);
this.clearShadow('b_sh_ctn',1,bp,settings);
this.clearShadow('b_sh_ctn_h',1,bp,settings);
this.clearShadow('b_sh_i',1,bp,settings);
this.clearShadow('b_sh_i_h',1,bp,settings);
this.clearPosition('po',bp,settings);
this.clearTransform('tr',bp,settings);
this.clearTransform('tr-h',bp,settings);
this.clearUnits(units,bp,settings);
super.builderSave(settings);
let iconType = item.icon_type || 'icon',
icon = iconType !== 'image' ? (iconType !== 'l' ? (item.icon ? api.Helper.getIcon(item.icon) : '') : api.Helper.getLottie(item, 'parent')) : item.image,
label = item.label && item.hide_label !== 'hide' ? createElement('span') : null,
wrap = createElement('', 'module-icon-item tf_rel tb_is_repeat'),
constructor=this.constructor;
if (iconType === 'image') {
iconItem = constructor.setEditableImage(createElement('img',{class:'tf_box','data-globalsize':0}),'image','w_i','h_i',item,'content_icon');
color_bg = item.icon_color_bg && item.icon_color_bg !== 'default' ?' '+item.icon_color_bg : '';
iconItem = createElement('em','tf_box' + color_bg);
st.push('background:' + api.Helper.toRGBA(item.bg));
st.push('color:' + api.Helper.toRGBA(item.c));
iconItem.style = st.join(';');
iconItem.appendChild(icon);
label.dataset.noUpdate = 1;
constructor._setEditableContent(label,'label',item.label,'','content_icon');
let linkOptions = item.link_options;
link = createElement('a');
if (linkOptions === 'newtab') {
else if (linkOptions === 'lightbox') {
link.className = 'lightbox-builder themify_lightbox';
if (item.lightbox_width || item.lightbox_height) {
link.dataset.zoomConfig = item.lightbox_width + item.lightbox_width_unit + '|' + item.lightbox_height + item.lightbox_height_unit;
link.appendChild(iconItem);
wrap.appendChild(iconItem);