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