Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/wp-conte.../plugins/themify-.../js/editor/componen...
File: gradient.mjs
this.selectSwatch = function (id) {
[500] Fix | Delete
const swatch = themifyCM.gradients[id];
[501] Fix | Delete
this.setAngle(swatch.setting.angle);
[502] Fix | Delete
this.setRadialCircle(swatch.setting.circle);
[503] Fix | Delete
this.setType(swatch.setting.type);
[504] Fix | Delete
this.settings.gradient = swatch.gradient;
[505] Fix | Delete
this.update();
[506] Fix | Delete
const container = element.parentElement,
[507] Fix | Delete
type = container.tfClass('themify-gradient-type')[0],
[508] Fix | Delete
circle = container.querySelector('input[type="checkbox"]'),
[509] Fix | Delete
angle = container.tfClass('tb_angle_input')[0];
[510] Fix | Delete
type.value = swatch.setting.type;
[511] Fix | Delete
Themify.triggerEvent(type, 'change');
[512] Fix | Delete
circle.checked = swatch.setting.circle;
[513] Fix | Delete
Themify.triggerEvent(circle, 'change');
[514] Fix | Delete
angle.value = swatch.setting.angle;
[515] Fix | Delete
Themify.triggerEvent(angle, 'change');
[516] Fix | Delete
};
[517] Fix | Delete
this.initSwatches = function(){
[518] Fix | Delete
const swatches = Object.keys(themifyCM.gradients),
[519] Fix | Delete
len=swatches.length;
[520] Fix | Delete
themifyCM.gradients = len>0 ? themifyCM.gradients : {};
[521] Fix | Delete
for(let i = 0; i <len ; ++i) {
[522] Fix | Delete
this.addSwatch(themifyCM.gradients[swatches[i]],true);
[523] Fix | Delete
}
[524] Fix | Delete
};
[525] Fix | Delete
return this.__constructor();
[526] Fix | Delete
};
[527] Fix | Delete
$.ThemifyGradient.default = '0% rgba(0,0,0, 1)|100% rgba(255,255,255,1)';
[528] Fix | Delete
$.fn.ThemifyGradient = function (options) {
[529] Fix | Delete
return this.each(function () {
[530] Fix | Delete
if ($(this).data('themifyGradient') === undefined) {
[531] Fix | Delete
$(this).data('themifyGradient', new $.ThemifyGradient(this, options));
[532] Fix | Delete
}
[533] Fix | Delete
});
[534] Fix | Delete
};
[535] Fix | Delete
})(jQuery,tb_app,bodyCl,_CLICK_);
[536] Fix | Delete
[537] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function