Файловый менеджер - Редактировать - /home/kunzqhe/www/wp-content/themes/themify-ultra/themify/customizer/js/themify.customize-preview.min.js
Назад
'use strict';(function(d){function t(a){if(!a.color||"undefined"===typeof a.color||"undefined"!==typeof a.transparent&&"transparent"===a.transparent)return!1;var b=a.opacity?a.opacity:1;if(1>b)var c=(c=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a.color))?{r:parseInt(c[1],16),g:parseInt(c[2],16),b:parseInt(c[3],16)}:null;return 1>b?"rgba( "+c.r+","+c.g+","+c.b+","+b+" )":"#"+a.color}function q(a){return a.auto&&"auto"===a.auto?a.auto:a.width?a.width+(a.unit&&"px"!==a.unit?a.unit:"px"):!1}function x(a){var b= t(a);return a.style&&"none"!==a.style&&a.width?a.width+"px "+a.style+(b?" "+b:""):a.style&&"none"===a.style?"none":!1}function l(a,b){b=b||parent.wp.customize.previewedDevice.get();a=JSON.parse(a)||{};var c=_.omit(a,["tablet_landscape","tablet","mobile"]),g,e;"desktop"!==b&&(g=a[b]||{});"mobile"===b?e=_.extend(c,a.tablet):"tablet"===b?e=_.extend(c,a.tablet_landscape):"tablet_landscape"===b&&(e=c);return"desktop"!==b?_.extend(e,g):a}function n(a){return d.trim(a).replace(/[^a-zA-Z0-9]/ig,"")}function y(a){a= a||"";var b=d("#themify-customize").get(0).sheet;if(""===a)return b;b=b.cssRules?b.cssRules:b.rules;if(""!==a){for(var c=0;c<b.length;c++)if(b[c].media&&-1<b[c].cssText.indexOf(a)){var g=b[c];break}return g}}function u(a){a=a||"";var b=d("#themify-customize").get(0).sheet;if(""===a)return b;b=b.cssRules?b.cssRules:b.rules;if(""!==a){for(var c=0;c<b.length;c++)if(b[c].media&&-1<b[c].cssText.indexOf(a)){var g=c;break}return g}}function p(a,b){a&&d.each(a,function(a,g){a=z.control.instance(a+"_ctrl"); _.isEmpty(a.setting.get())||(g=a.setting.get(),d.event.trigger(b,[a,g]))})}function w(a,b){f[a]||(f[a]=[]);_.each("font-family font-weight font-size font-style text-transform text-decoration text-align line-height".split(" "),function(b){f[a][b]=!1});if(b){if(b.family){if(b.family.fonttype&&("google"===b.family.fonttype||"cf"===b.family.fonttype)){var c=b.family.name;b.weight&&"normal"!==b.weight&&(c+=":normal,"+b.weight);if(0===d('link[href*="'+c.replace(/ /g,"+")+'"]').length){var g={};"google"=== b.family.fonttype?g.google={families:[c]}:g.custom={families:[c],urls:[themifyCustomizer.cf_api_url+c]};WebFont.load(g)}}f[a]["font-family"]=b.family.name}b.nostyle||(b.bold&&(f[a]["font-weight"]="bold"),b.italic?f[a]["font-style"]="italic":b.normal&&(f[a]["font-style"]="normal"),b.linethrough?f[a]["text-decoration"]="line-through":b.underline?f[a]["text-decoration"]="underline":(f[a]["font-weight"]=f[a]["font-style"]="normal",f[a]["text-decoration"]="none"),b.normal?f[a]["font-style"]="normal":(b.bold&& (f[a]["font-weight"]="bold"),b.italic&&(f[a]["font-style"]="italic")));b.texttransform&&(f[a]["text-transform"]="notexttransform"!==b.texttransform?b.texttransform:"none");b.align&&(f[a]["text-align"]="noalign"!==b.align?b.align:!1);0<b.sizenum&&(f[a]["font-size"]=b.sizenum+(b.sizeunit?b.sizeunit:"px"));b.letterspacing&&(f[a]["letter-spacing"]=b.letterspacing+(b.letterspacingunit?b.letterspacingunit:"px"));0<b.linenum&&(f[a]["line-height"]=b.linenum+(b.lineunit?b.lineunit:"px"));b.weight?f[a]["font-weight"]= b.weight:b.bold||(f[a]["font-weight"]=!1)}}var f=[],v=document.createElement("script");v.src=("https:"==document.location.protocol?"https":"http")+"://ajax.googleapis.com/ajax/libs/webfont/1.4.7/webfont.js";v.type="text/javascript";v.async="true";var A=document.getElementsByTagName("script")[0];A.parentNode.insertBefore(v,A);var h={init:function(){d(document).on("themify-responsive-preview-background",this.controlBackground).on("themify-responsive-preview-color-control",this.controlColor).on("themify-responsive-preview-fonts-control", this.controlFonts).on("themify-responsive-preview-border-control",this.controlBorder).on("themify-responsive-preview-margin-control",this.controlMargin).on("themify-responsive-preview-padding-control",this.controlMargin).on("themify-responsive-preview-logo-control",this.controlLogo).on("themify-responsive-preview-width-control",this.controlWidth)},controlBackground:function(a,b,c){var g=d(".color-transparent",b.container),e=d('.fixed-bg input[type="checkbox"]',b.container),f=d(".disable-control", b.container),m=d(".open-media-wrap, .image-label, .background-style, .background-position",b.container);a=d(".themify_control_preview",b.container);c=l(c,b.getCurrentDevice());var B="transparent"===c.transparent?!0:!1,C="fixed"===c.fixedbg,k="noimage"===c.noimage?!0:!1,n=c.src&&""!==c.src?!0:!1;h._colorChange(b,c);g.prop("checked",B);B?g.parent().prev().addClass("transparent"):g.parent().prev().removeClass("transparent");e.prop("checked",C);f.prop("checked",k);k?m.stop().hide():m.stop().show();h._dropdownChange(d(".position-style", b.container),c,"position");h._dropdownChange(d(".image-style",b.container),c,"style");n?(b=d('<a href="#" class="remove-image ti-close"></a><img src="'+c.src+'" />').css("display","inline-block"),a.html(b).show()):a.html("")},controlColor:function(a,b,c){a=l(c,b.getCurrentDevice());h._colorChange(b,a)},controlFonts:function(a,b,c){a=l(c,b.getCurrentDevice());h._fontStyleChange(b,a);h._textTransformChange(b,a);h._textAlign(b,a);h._inputChange(d(".font_size_num",b.container),a,"sizenum");h._dropdownChange(d(".font_size_unit", b.container),a,"sizeunit");h._fontFamilyChange(d(".themify_font_family",b.container),a);h._inputChange(d(".font_line_num",b.container),a,"linenum");h._dropdownChange(d(".font_line_unit",b.container),a,"lineunit");h._inputChange(d(".letter_spacing",b.container),a,"letterspacing");h._dropdownChange(d(".letter_spacing_unit",b.container),a,"letterspacingunit");h._dropdownChange(d(".font_weight_select",b.container),a,"weight")},controlBorder:function(a,b,c){a=l(c,b.getCurrentDevice());h._hideComponentSameChange(d(".same", b.container),b,a);h._borderColorChange(b,a);h._dropdownBorderSameChange(d(".border-style",b.container),b,a);h._dimensionSameChange(d(".dimension-width",b.container),b,a)},controlMargin:function(a,b,c){a=l(c,b.getCurrentDevice());h._dimensionSameChange(d(".dimension-width",b.container),b,a);h._dropdownSameChange(d(".dimension-unit",b.container),a,"unit");h._hideComponentSameChange(d(".same",b.container),b,a);h._autoSameChange(d(".auto-prop",b.container),b,a)},controlLogo:function(a,b,c){a=l(c,b.getCurrentDevice()); c=l(c,"desktop").mode;h._colorChange(b,a);h._logoMode(b,a,c)},controlWidth:function(a,b,c){a=l(c,b.getCurrentDevice());c="undefined"!==typeof b.params.label?d('[data-customize-setting-link="'+b.id.slice(0,-5)+'"]',b.container).parent():b.container;h._dimensionChange(d(".dimension-width",c),b,a);h._dropdownChange(d(".dimension-unit",c),a,"unit");h._autoChange(d(".auto-prop",c),b,a)},_colorChange:function(a,b){a=d("#"+a.id+"_color_picker",a.container);var c=b.color||"";a.minicolors("value",c);a.minicolors("opacity", b.opacity||"");_.isEmpty(c)?a.closest(".color-picker").find(".remove-color").hide():a.closest(".color-picker").find(".remove-color").show()},_borderColorChange:function(a,b){var c=d(".color-select",a.container),g=d('.color-select[data-side="top"]',a.container),e=d(".same",a.container);e.prop("checked")?(g.val().replace("#","")===b.color&&e.prop("checked")&&a.isResponsiveStyling()&&(_.isUndefined(a.value[a.id][a.getCurrentDevice()])&&(a.value[a.id][a.getCurrentDevice()]={}),a.value[a.id][a.getCurrentDevice()].color= b.color,a.value[a.id][a.getCurrentDevice()].opacity=b.opacity,a.setting.set(JSON.stringify(a.value[a.id]))),g.minicolors("value",b.color||""),g.minicolors("opacity",b.opacity||"")):c.each(function(){var e=d(this).data("side");_.isUndefined(b[e])&&(b[e]={});"top"==e&&_.isEmpty(b[e].color)&&(b[e].color=b.color,b[e].opacity=b.opacity);d('.color-select[data-side="'+e+'"]',a.container).minicolors("value",b[e].color||"");d('.color-select[data-side="'+e+'"]',a.container).minicolors("opacity",b[e].opacity|| "");_.isEmpty(b[e].color)&&d(this).closest(".color-picker").find(".remove-color").hide()})},_fontStyleChange:function(a,b){d(".themify_font_style",a.container).find(".button").each(function(){b[d(this).data("style")]&&!_.isEmpty(b[d(this).data("style")])?d(this).addClass("selected"):d(this).removeClass("selected")})},_textTransformChange:function(a,b){a=d(".themify_text_transform",a.container);b.texttransform?a.find('.button[data-texttransform="'+b.texttransform+'"]').addClass("selected").siblings().removeClass("selected"): a.find(".button").removeClass("selected")},_textAlign:function(a,b){a=d(".themify_font_align",a.container);b.align?a.find('.button[data-align="'+b.align+'"]').addClass("selected").siblings().removeClass("selected"):a.find(".button").removeClass("selected")},_dropdownChange:function(a,b,c){b=b[c]&&!_.isEmpty(b[c])?b[c]:"";b=a.find('option[value="'+b+'"]');b.length?b.prop("selected",!0):a.find("option").prop("selected",!1);a.trigger("change")},_dropdownSameChange:function(a,b,c){a.each(function(){var a= d(this).data("side");a=b[a][c]&&!_.isEmpty(b[a][c])?b[a][c]:"";a=d(this).find('option[value="'+a+'"]');a.length?a.prop("selected",!0):d(this).find("option").prop("selected",!1)})},_inputChange:function(a,b,c){b=b[c]&&!_.isEmpty(b[c])?b[c]:"";a.val(b)},_fontFamilyChange:function(a,b){a.trigger("focus");b.family&&!_.isEmpty(b.family)?(a.find('option[data-value="'+b.family.name+'"]').prop("selected",!0).trigger("change"),a.data("selected",b.family.name)):(a.find("option").first().prop("selected",!0).trigger("change"), a.data("selected",""))},_hideComponentSameChange:function(a,b,c){var g=d(".component",b.container);b=d(".dimension-row-label:not(.same-label)",b.container);var e=a.parent().parent().find(".same-label");c.same&&"same"==c.same||""!==c.same?(a.prop("checked",!0),g.hide(),b.hide(),e.text(e.data("same"))):(a.prop("checked",!1),g.show(),b.show(),e.text(e.data("notsame")))},_dropdownBorderSameChange:function(a,b,c){var g=d(".same",b.container);a.each(function(){var a=d(this).data("side");"top"==a&&_.isEmpty(c[a].style)&& (c[a].style=c.style);c[a].style&&!_.isEmpty(c[a].style)?(d(this).val()===c[a].style&&g.prop("checked")&&"top"===a&&b.isResponsiveStyling()&&(_.isUndefined(b.value[b.id][b.getCurrentDevice()])&&(b.value[b.id][b.getCurrentDevice()]={}),b.value[b.id][b.getCurrentDevice()].style=c[a].style,b.value[b.id][b.getCurrentDevice()].same="same",b.setting.set(JSON.stringify(b.value[b.id]))),d(this).val(c[a].style)):d(this).find("option").prop("selected",!1)})},_dimensionChange:function(a,b,c){a.each(function(){var a= b.value[b.id],e=b.getCurrentDevice();b.isResponsiveStyling()&&(_.isUndefined(a[e])&&(a[e]={}),a[e].width=c.width,b.setting.set(JSON.stringify(a)));d(this).val(c.width)})},_dimensionSameChange:function(a,b,c){var g=d(".same",b.container);a.each(function(){var a=d(this).data("side");_.isUndefined(c[a])&&(c[a]={});"top"===a&&(c[a].width=c.width);d(this).val()===c[a].width&&g.prop("checked")&&"top"===a&&b.isResponsiveStyling()&&(_.isUndefined(b.value[b.id][b.getCurrentDevice()])&&(b.value[b.id][b.getCurrentDevice()]= {}),b.value[b.id][b.getCurrentDevice()].width=c[a].width,b.setting.set(JSON.stringify(b.value[b.id])));d(this).val(c[a].width)})},_autoChange:function(a,b,c){a.each(function(){var a=d(this).data("hide");d(this).prop("checked","auto"===c.auto);d("."+a,b.container).toggleClass("hide-horizontally","auto"===c.auto)})},_autoSameChange:function(a,b,c){a.each(function(){var a=d(this).data("side"),e=d(this).data("hide");_.isUndefined(c[a])&&(c[a]={});"top"===a&&(c[a].auto=c.auto);"auto"===c[a].auto?(d(this).prop("checked", !0),d("."+e,b.container).addClass("hide-horizontally")):(d(this).prop("checked",!1),d("."+e,b.container).removeClass("hide-horizontally"))})},_logoMode:function(a,b,c){var g=d(".logo-modes .logo-mode",a.container),e=b.mode||"",f=g.closest(".customize-control"),m=c;a.isResponsiveStyling()?(d(".remove-image, .open-media",a.container).hide(),m=f.data("deskValue")||m):(d(".remove-image, .open-media",a.container).show(),m=e,f.data("deskValue",e));"image"==m&&(a=b.imgwidth||"",b=b.imgheight||"",f.find(".img-width").val(a), f.find(".img-height").val(b));g.each(function(){var b=d(this),a=b.val()==m;b.prop("checked",a);a&&b.trigger("click")})}},k=wp.customize,z=parent.wp.customize,D=d("body");k("header_textcolor",function(a){a.bind(function(b){d("#header a, .site-title a, .site-description").css("color",b)})});k("link_color",function(a){a.bind(function(b){d("a").css("color",b)})});k("text_color",function(a){a.bind(function(b){D.css("color",b)})});themifyCustomizer&&(d(document).on("themify.customizer",function(a,b,c){a= "themify-customizer-css-"+b;0<d("#"+a).length&&d("#"+a).remove();var g=f[b],e="";a=parent.wp.customize.previewedDevice.get();"desktop"!==a&&(e="screen and (max-width: "+themifyCustomizer.breakpoints[a]+"px)");var r=e||"";0==d("#themify-customize").length&&d("body").append('<style id="themify-customize"></style>');var m=d("#themify-customize").get(0).sheet;m=m.cssRules?m.cssRules:m.rules;if(""===r)for(var h=0;h<m.length;h++){if(!_.isUndefined(m[h].selectorText)&&m[h].selectorText.toLowerCase()==c){var k= m[h];break}}else for(h=0;h<m.length;h++)if(m[h].media&&-1<m[h].cssText.indexOf(r)){r=m[h].cssRules?m[h].cssRules:m[h].rules;for(m=0;m<r.length;m++)if(!_.isUndefined(r[m].selectorText)&&r[m].selectorText.toLowerCase()==c){k=r[m];break}break}if(_.isUndefined(k)){k="";for(l in g)g[l]&&(k+=l+":"+g[l]+";");l=y();c=c+"{"+k+"}";g=Math.max(l.cssRules.length-3,0);""!==e&&(g=y(e),_.isUndefined(g)?(c="@media "+e+" { "+c+" }",e=_.values(themifyCustomizer.breakpoints),(g=l.cssRules.length)&&l.cssRules[l.cssRules.length- 1].media&&("tablet_landscape"===a&&(k=u("screen and (max-width: "+e[1]+"px)"),_.isUndefined(k)?(k=u("screen and (max-width: "+e[2]+"px)"),_.isUndefined(k)||(g=k)):g=k),"tablet"===a&&(a=u("screen and (max-width: "+e[0]+"px)"),_.isUndefined(a)?(k=u("screen and (max-width: "+e[2]+"px)"),_.isUndefined(k)||(g=k)):g=a+1))):(l=g,g=g.cssRules.length));l.insertRule(c,g)}else for(var l in g)k.style[l]=g[l]?g[l]:"";"sitelogo"===b&&"undefined"!==typeof f[b].color&&(a=f[b].color,b+="a",f[b]||(f[b]=[]),f[b].color= a,d.event.trigger("themify.customizer",[b,"#site-logo a"]))}),z.previewedDevice.bind("change",function(a){p(themifyCustomizer.backgroundControls,"themify-responsive-preview-background");p(themifyCustomizer.colorControls,"themify-responsive-preview-color-control");p(themifyCustomizer.fontControls,"themify-responsive-preview-fonts-control");p(themifyCustomizer.borderControls,"themify-responsive-preview-border-control");p(themifyCustomizer.marginControls,"themify-responsive-preview-margin-control"); p(themifyCustomizer.paddingControls,"themify-responsive-preview-padding-control");p(themifyCustomizer.logoControls,"themify-responsive-preview-logo-control");p(themifyCustomizer.widthControls,"themify-responsive-preview-width-control")}),d(window).on("message",function(a){if(a.originalEvent&&a.originalEvent.data&&!_.isEmpty(a.originalEvent.data)){try{var b=d.parseJSON(a.originalEvent.data)||{}}catch(c){b={}}"themify-customize-clearall"===b.id&&(f=[],d("#themify-customize").remove())}}),themifyCustomizer.fontControls&& d.each(themifyCustomizer.fontControls,function(a,b){k(a,function(a){a.bind(function(a){a=l(a);var e=n(b);w(e,a);d.event.trigger("themify.customizer",[e,b])})})}),themifyCustomizer.logoControls&&d.each(themifyCustomizer.logoControls,function(a,b){k(a,function(a){a.bind(function(a){var e=l(a);a=d(b);var c=n(b);f[c]||(f[c]=[]);w(c,e);if(e.mode&&"none"===e.mode)f[c].display="none";else{f[c].display="block";var g=d("img:not(.tf_sticky_logo)",a);0<g.length&&g.remove();e.mode&&"image"===e.mode?(a.find("span").hide(), "undefined"!==typeof e.src&&e.src&&(0<d("a",a).length?(a.find("a").append('<img src="'+e.src+'" />'),e.link&&a.find("a").attr("href",e.link)):a.append('<img src="'+e.src+'" />')),g=e.imgwidth?e.imgwidth:"",e=e.imgheight?e.imgheight:"",a.find("img:not(.tf_sticky_logo)").css({width:g,height:e})):(a.find("span").show(),0<a.length&&(e.link&&a.find("a").attr("href",e.link),f[c].color=t(e)),d.post(themifyCustomizer.ajaxurl,{action:"themify_customizer_get_option",option:"blogname",nonce:themifyCustomizer.nonce}, function(a){"notfound"!==a&&d("#site-logo, #footer-logo").find("span").text(a)}))}d.event.trigger("themify.customizer",[c,b])})})}),themifyCustomizer.taglineControls&&d.each(themifyCustomizer.taglineControls,function(a,b){k(a,function(a){a.bind(function(a){var e=d.parseJSON(a),c=d(b);a=n(b);f[a]||(f[a]=[]);w(a,e);if(e.mode&&"none"===e.mode)f[a].display="none";else if("none"!==e.mode){f[a].display="block";var g=d("img",c);0<g.length&&g.remove();e.mode&&"image"===e.mode?(c.find("span").hide(),"undefined"!== typeof e.src&&e.src&&(c.prepend('<img src="'+e.src+'" />'),g=e.imgwidth?e.imgwidth:"",e=e.imgheight?e.imgheight:"",c.find("img").css({width:g,height:e}))):(c.find("span").show(),f[a].color=t(e),d.post(themifyCustomizer.ajaxurl,{action:"themify_customizer_get_option",option:"blogdescription",nonce:themifyCustomizer.nonce},function(a){"notfound"!=a&&c.find("span").text(a)}))}d.event.trigger("themify.customizer",[a,b])})})}),themifyCustomizer.backgroundControls&&d.each(themifyCustomizer.backgroundControls, function(a,b){k(a,function(a){a.bind(function(a){a=l(a);var e=n(b);f[e]||(f[e]=[]);_.each(["image","color","repeat","size","position"],function(a){f[e]["background-"+a]=!1});a&&"noimage"!==a.noimage&&"undefined"!==typeof a.src&&(f[e]["background-image"]="url("+a.src+")");"undefined"!==typeof a.style&&a.style&&("fullcover"===a.style?(f[e]["background-size"]="cover",f[e]["background-repeat"]="no-repeat"):(f[e]["background-size"]="auto",f[e]["background-repeat"]=a.style));"undefined"!==typeof a.position&& a.position&&(f[e]["background-position"]=a.position);f[e]["background-color"]=t(a);d.event.trigger("themify.customizer",[e,b])})})}),themifyCustomizer.colorControls&&d.each(themifyCustomizer.colorControls,function(a,b){k(a,function(a){a.bind(function(a){a=l(a);var e=n(b);f[e]||(f[e]=[]);f[e].color=t(a);d.event.trigger("themify.customizer",[e,b])})})}),themifyCustomizer.borderColorControls&&d.each(themifyCustomizer.borderColorControls,function(a,b){k(a,function(a){a.bind(function(a){a=l(a);var e=n(b); f[e]||(f[e]=[]);f[e]["border-color"]=t(a);d.event.trigger("themify.customizer",[e,b])})})}),themifyCustomizer.imageselectControls&&d.each(themifyCustomizer.imageselectControls,function(a,b){k(a,function(a){a.bind(function(a){if(a=d.parseJSON(a)){var b=d(".tf_sticky_logo");0<b.length&&b.remove();if(a.src){b='<img class="tf_sticky_logo" src="'+a.src+'"';var c="";a.imgwidth&&(b+=' width="'+a.imgwidth+'"',c+="width: "+a.imgwidth+"px;");a.imgheight&&(b+=' height="'+a.imgheight+'"',c+="height: "+a.imgheight+ "px;");b+=' style="'+c+'" />';d("#headerwrap #site-logo a").prepend(b)}}})})}),themifyCustomizer.borderControls&&d.each(themifyCustomizer.borderControls,function(a,b){k(a,function(a){a.bind(function(a){var e=l(a),c=n(b);f[c]||(f[c]=[]);_.each("border border-color border-top border-left border-bottom border-right border-width border-style".split(" "),function(a){delete f[c][a]});e&&"disabled"!==e.disabled&&("same"!==e.same?_.each(["top","left","bottom","right"],function(a){e[a]&&("top"===a&&_.extend(e[a], _.pick(e,_.keys(e[a]))),f[c]["border-"+a]=x(e[a]))}):f[c].border=x(e));d.event.trigger("themify.customizer",[c,b])})})}),themifyCustomizer.marginControls&&d.each(themifyCustomizer.marginControls,function(a,b){k(a,function(a){a.bind(function(a){var e=l(a),c=n(b);f[c]||(f[c]=[]);_.each(["margin","margin-top","margin-left","margin-bottom","margin-right"],function(a){delete f[c][a]});e&&"disabled"!==e.disabled&&("same"!==e.same?_.each(["top","left","bottom","right"],function(a){e[a]&&("top"===a&&_.extend(e[a], _.pick(e,_.keys(e[a]))),f[c]["margin-"+a]=q(e[a]))}):f[c].margin=q(e));d.event.trigger("themify.customizer",[c,b])})})}),themifyCustomizer.paddingControls&&d.each(themifyCustomizer.paddingControls,function(a,b){k(a,function(a){a.bind(function(a){var c=l(a),g=n(b);f[g]||(f[g]=[]);_.each(["padding","padding-top","padding-left","padding-bottom","padding-right"],function(a){delete f[g][a]});c&&"disabled"!==c.disabled&&("same"!==c.same?_.each(["top","left","bottom","right"],function(a){c[a]&&("top"=== a&&_.extend(c[a],_.pick(c,_.keys(c[a]))),f[g]["padding-"+a]=q(c[a]))}):f[g].padding=q(c));d.event.trigger("themify.customizer",[g,b])})})}),themifyCustomizer.widthControls&&d.each(themifyCustomizer.widthControls,function(a,b){k(a,function(a){a.bind(function(a){a=l(a);var c=n(b);f[c]||(f[c]=[]);f[c].width=q(a);d.event.trigger("themify.customizer",[c,b])})})}),themifyCustomizer.heightControls&&d.each(themifyCustomizer.heightControls,function(a,b){k(a,function(a){a.bind(function(a){a=d.parseJSON(a); var c=n(b);f[c]||(f[c]=[]);f[c].height=q(a);d.event.trigger("themify.customizer",[c,b])})})}),themifyCustomizer.positionControls&&d.each(themifyCustomizer.positionControls,function(a,b){k(a,function(a){a.bind(function(a){var c=d.parseJSON(a),g=n(b);f[g]||(f[g]=[]);_.each(["position","top","left","bottom","right"],function(a){f[g][a]=!1});c&&c.position&&(f[g].position=c.position,_.each(["top","right","bottom","left"],function(a){c[a]&&(f[g][a]=q(c[a]))}));d.event.trigger("themify.customizer",[g,b])})})}), themifyCustomizer.customcssControls&&d.each(themifyCustomizer.customcssControls,function(a,b){k(a,function(a){a.bind(function(a){var b=d("#themify-customize-customcss");0<b.length&&b.remove();a&&(a=a.replace(/[\n]/g,"").replace(/[\r]/g,"").replace(/[\t]/g,""),d("head").append('<style type="text/css" id="themify-customize-customcss">'+a+"</style>"))})})}),h.init())})(jQuery);
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка