: 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
this.selectSwatch = function (id) {
const swatch = themifyCM.gradients[id];
this.setAngle(swatch.setting.angle);
this.setRadialCircle(swatch.setting.circle);
this.setType(swatch.setting.type);
this.settings.gradient = swatch.gradient;
const container = element.parentElement,
type = container.tfClass('themify-gradient-type')[0],
circle = container.querySelector('input[type="checkbox"]'),
angle = container.tfClass('tb_angle_input')[0];
type.value = swatch.setting.type;
Themify.triggerEvent(type, 'change');
circle.checked = swatch.setting.circle;
Themify.triggerEvent(circle, 'change');
angle.value = swatch.setting.angle;
Themify.triggerEvent(angle, 'change');
this.initSwatches = function(){
const swatches = Object.keys(themifyCM.gradients),
themifyCM.gradients = len>0 ? themifyCM.gradients : {};
for(let i = 0; i <len ; ++i) {
this.addSwatch(themifyCM.gradients[swatches[i]],true);
return this.__constructor();
$.ThemifyGradient.default = '0% rgba(0,0,0, 1)|100% rgba(255,255,255,1)';
$.fn.ThemifyGradient = function (options) {
return this.each(function () {
if ($(this).data('themifyGradient') === undefined) {
$(this).data('themifyGradient', new $.ThemifyGradient(this, options));
})(jQuery,tb_app,bodyCl,_CLICK_);