feat: initial ACRIB WordPress deployment
- WordPress 6.9.4 (es_ES) with Kadence theme - Homepage: Hero, La Asociación, Pilares, Beneficios, Eventos, Miembros, Hazte Miembro, Contacto - Brand identity: #13294b navy, #a12932 burgundy, #c69c48 gold - Fonts: Raleway (headings) + Source Sans 3 (body) + Lato (UI) - Plugins: Kadence Blocks, Polylang, Contact Form 7 - Custom CSS with full brand styling and responsive layout - HTTPS enforced via wp-config.php proxy detection
This commit is contained in:
1
wp-content/themes/kadence/assets/js/admin-activate.min.js
vendored
Normal file
1
wp-content/themes/kadence/assets/js/admin-activate.min.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
(function(a){"use strict";a(function(){function b(){var b=new FormData;b.append("action","kadence_dismiss_notice"),b.append("security",kadenceStarterInstall.ajax_nonce),a.ajax({url:kadenceStarterInstall.ajax_url,method:"POST",data:b,contentType:!1,processData:!1})}a("#kadence-notice-starter-templates .notice-dismiss").on("click",function(){b()}),a("#kadence-notice-starter-templates .kadence-install-starter-btn").on("click",function(c){function d(){a.ajax({method:"POST",url:kadenceStarterInstall.ajax_url,data:j,contentType:!1,processData:!1,beforeSend:function(){f(i.data("installing-label"))},success:function(a){a.success?(h(i.data("installed-label")),g(i.data("activated-label")),b(),location.replace(i.data("redirect-url"))):(console.log(a),g(a.data))},error:function(a){console.log(a.responseText),g("Error")}})}function e(){a.ajax({url:kadenceStarterInstall.ajax_url,method:"POST",data:j,contentType:!1,processData:!1,beforeSend:function(){f(i.data("activating-label"))},success:function(a){a.success?(g(i.data("activated-label")),b(),location.replace(i.data("redirect-url"))):(console.log(a),g(a.data))},error:function(a){console.log(a.responseText),g("Error")}})}function f(a){i.addClass("updating-message").removeClass("button-disabled kt-not-installed installed").text(a)}function g(a){i.removeClass("updating-message kt-not-installed installed").addClass("button-disabled").text(a)}function h(a){i.removeClass("updating-message kt-not-installed").addClass("installed").text(a)}var i=a(c.target);if(c.preventDefault(),!(i.hasClass("updating-message")||i.hasClass("button-disabled"))){var j=new FormData;j.append("action","kadence_install_starter"),j.append("security",kadenceStarterInstall.ajax_nonce),j.append("status",kadenceStarterInstall.status),"install"===kadenceStarterInstall.status?d():"activate"===kadenceStarterInstall.status&&e()}})})})(jQuery,window,document);
|
||||
@@ -0,0 +1 @@
|
||||
<?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-block-editor', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => 'cf3c95abc3cc22112b0d');
|
||||
2
wp-content/themes/kadence/assets/js/admin/customizer.js
Normal file
2
wp-content/themes/kadence/assets/js/admin/customizer.js
Normal file
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
<?php return array('dependencies' => array('wp-components', 'wp-element', 'wp-i18n'), 'version' => '23c13c1f3cab49569340');
|
||||
1
wp-content/themes/kadence/assets/js/admin/dashboard.js
Normal file
1
wp-content/themes/kadence/assets/js/admin/dashboard.js
Normal file
File diff suppressed because one or more lines are too long
1
wp-content/themes/kadence/assets/js/admin/meta.asset.php
Normal file
1
wp-content/themes/kadence/assets/js/admin/meta.asset.php
Normal file
@@ -0,0 +1 @@
|
||||
<?php return array('dependencies' => array('wp-components', 'wp-compose', 'wp-data', 'wp-edit-post', 'wp-element', 'wp-i18n', 'wp-plugins'), 'version' => '34aa1325fa1a80488f34');
|
||||
1
wp-content/themes/kadence/assets/js/admin/meta.js
Normal file
1
wp-content/themes/kadence/assets/js/admin/meta.js
Normal file
File diff suppressed because one or more lines are too long
1
wp-content/themes/kadence/assets/js/cart-update.min.js
vendored
Normal file
1
wp-content/themes/kadence/assets/js/cart-update.min.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
jQuery(function(a){a(document.body).on("removed_from_cart",function(){a(document).trigger("wc_update_cart")})});
|
||||
7
wp-content/themes/kadence/assets/js/css-vars-ponyfill.min.js
vendored
Normal file
7
wp-content/themes/kadence/assets/js/css-vars-ponyfill.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
wp-content/themes/kadence/assets/js/custom-color-picker.min.js
vendored
Normal file
1
wp-content/themes/kadence/assets/js/custom-color-picker.min.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
jQuery(document).ready(function(a){a(".color-field").wpColorPicker()});
|
||||
1
wp-content/themes/kadence/assets/js/gutenberg-notice.min.js
vendored
Normal file
1
wp-content/themes/kadence/assets/js/gutenberg-notice.min.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
(function(a){"use strict";a(function(){function b(){var b=new FormData;b.append("action","kadence_dismiss_gutenberg_notice"),b.append("security",kadenceGutenbergDeactivate.ajax_nonce),a.ajax({url:kadenceGutenbergDeactivate.ajax_url,method:"POST",data:b,contentType:!1,processData:!1})}a("#kadence-notice-gutenberg-plugin .notice-dismiss").on("click",function(){b()})})})(jQuery,window,document);
|
||||
1
wp-content/themes/kadence/assets/js/ie.min.js
vendored
Normal file
1
wp-content/themes/kadence/assets/js/ie.min.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
(function(){"use strict";window.kadenceIE={initAll:function(){cssVars({rootElement:document,shadowDOM:!1,include:"link[rel=stylesheet],style",exclude:"",variables:{},onlyLegacy:!0,preserveStatic:!0,preserveVars:!1,silent:!1,updateDOM:!0,updateURLs:!0,watch:!1})},init:function(){if("function"==typeof cssVars)window.kadenceIE.initAll();else var a=setInterval(function(){"function"==typeof cssVars&&(window.kadenceIE.initAll(),clearInterval(a))},200)}},"loading"===document.readyState?document.addEventListener("DOMContentLoaded",window.kadenceIE.init):window.kadenceIE.init()})();
|
||||
1
wp-content/themes/kadence/assets/js/lightbox-init.min.js
vendored
Normal file
1
wp-content/themes/kadence/assets/js/lightbox-init.min.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
(function(){"use strict";var a={checkImage:function(a){return /(png|jpg|jpeg|gif|tiff|bmp|webp|avif)$/.test(a.getAttribute("href").toLowerCase().split("?")[0].split("#")[0])},findImages:function(){var b=document.querySelectorAll("a[href]:not(.kt-no-lightbox):not(.custom-link):not(.kb-gallery-item-link):not(.kt-core-gallery-lightbox)");if(b.length&&b)for(let c=0;c<b.length;c++)a.checkImage(b[c])&&!b[c].classList.contains("kt-lightbox")&&(b[c].classList.add("kt-lightbox"),new SimpleLightbox({elements:[b[c]]}))},findGalleries:function(){var b=document.querySelectorAll(".wp-block-gallery");if(b.length&&b)for(let d=0;d<b.length;d++){var c=b[d].querySelectorAll(".blocks-gallery-item a");if(!c.length)return;if(c)for(let b=0;b<c.length;b++)a.checkImage(c[b])&&c[b].classList.add("kt-core-gallery-lightbox");b[d]&&new SimpleLightbox({elements:b[d].querySelectorAll(".blocks-gallery-item a")})}},initAll:function(){a.findGalleries(),a.findImages()},init:function(){if("function"==typeof SimpleLightbox)a.initAll();else var b=setInterval(function(){"function"==typeof SimpleLightbox&&(a.initAll(),clearInterval(b))},200)}};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",a.init):a.init(),document.addEventListener("kb-query-loaded",a.init),document.addEventListener("kadenceJSInitReload",a.init)})();
|
||||
1
wp-content/themes/kadence/assets/js/navigation-lite.min.js
vendored
Normal file
1
wp-content/themes/kadence/assets/js/navigation-lite.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
wp-content/themes/kadence/assets/js/navigation.min.js
vendored
Normal file
1
wp-content/themes/kadence/assets/js/navigation.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
wp-content/themes/kadence/assets/js/product-cls.min.js
vendored
Normal file
1
wp-content/themes/kadence/assets/js/product-cls.min.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
jQuery(function(a){a(".woocommerce-product-gallery.gallery-has-thumbnails").each(function(){var b=a(this);b.height(b.height()),b.on("wc-product-gallery-after-init",function(){setTimeout(function(){b.height("")},500)})})});
|
||||
1
wp-content/themes/kadence/assets/js/shop-spinner.min.js
vendored
Normal file
1
wp-content/themes/kadence/assets/js/shop-spinner.min.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
jQuery(function(a){a("div.quantity:not(.spinners-added):has(input[type=\"number\"])").addClass("spinners-added").append("<input type=\"button\" value=\"+\" class=\"plus\" />").prepend("<input type=\"button\" value=\"-\" class=\"minus\" />"),a(document).on("updated_cart_totals",function(){a("div.quantity:not(.spinners-added):has(input[type=\"number\"])").addClass("spinners-added").append("<input type=\"button\" value=\"+\" class=\"plus\" />").prepend("<input type=\"button\" value=\"-\" class=\"minus\" />")}),a("body").on("quick-view-displayed",function(){a("div.quantity:not(.spinners-added):has(input[type=\"number\"])").addClass("spinners-added").append("<input type=\"button\" value=\"+\" class=\"plus\" />").prepend("<input type=\"button\" value=\"-\" class=\"minus\" />")}),a(document).on("click",".plus, .minus",function(){var b=a(this).closest(".quantity").find(".qty"),c=parseFloat(b.val()),d=parseFloat(b.attr("max")),e=parseFloat(b.attr("min")),f=b.attr("step");c&&""!==c&&"NaN"!==c||(c=0),(""===d||"NaN"===d)&&(d=""),(""===e||"NaN"===e)&&(e=0),("any"===f||""===f||f===void 0||"NaN"===parseFloat(f))&&(f=1),a(this).is(".plus")?d&&(d==c||c>d)?b.val(d):b.val(c+parseFloat(f)):e&&(e==c||c<e)?b.val(e):0<c&&b.val(c-parseFloat(f)),b.trigger("change")})});
|
||||
1
wp-content/themes/kadence/assets/js/shop-toggle.min.js
vendored
Normal file
1
wp-content/themes/kadence/assets/js/shop-toggle.min.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
(function(){"use strict";window.kadenceShop={createCookie:function(a,b,c,d){if(c){var e=new Date;"minutes"==d?e.setTime(e.getTime()+1e3*(60*c)):"hours"==d?e.setTime(e.getTime()+1e3*(60*(60*c))):e.setTime(e.getTime()+1e3*(60*(60*(24*c))));var f="; expires="+e.toGMTString()}else var f="";document.cookie=kadenceShopConfig.siteSlug+"-"+a+"="+b+f+"; path=/"},getCookie:function(a){var b="; "+document.cookie,c=b.split("; "+kadenceShopConfig.siteSlug+"-"+a+"=");if(2==c.length)return c.pop().split(";").shift()},initShopToggle:function(){if(document.body.classList.contains("woocommerce")||document.body.classList.contains("archive")){var a=document.querySelectorAll(".kadence-toggle-shop-layout");if(a.length){var b=window.kadenceShop.getCookie("shopLayout");if(b&&("grid"===b||"list"===b)){var c=document.querySelector(".kadence-toggle-"+b);window.kadenceShop.toggleShop(c)}for(let b=0;b<a.length;b++)a[b].addEventListener("click",function(c){c.preventDefault(),window.kadenceShop.toggleShop(a[b])})}}},toggleShop:function(a){if(a.classList.contains("toggle-active")||(a.classList.add("toggle-active"),window.kadenceShop.createCookie("shopLayout",a.dataset.archiveToggle,30,"days")),"grid"===a.dataset.archiveToggle)var b=document.querySelector(".kadence-toggle-list");else var b=document.querySelector(".kadence-toggle-grid");if(b.classList.remove("toggle-active"),"grid"===a.dataset.archiveToggle)var c=document.querySelector(".woo-archive-loop.products-list-view");else var c=document.querySelector(".woo-archive-loop.products-grid-view");c||(c=document.querySelector(".woo-archive-loop")),c.classList.remove("products-list-view"),c.classList.remove("products-grid-view"),c.classList.add("products-"+a.dataset.archiveToggle+"-view")},initShopCatToggle:function(){var a=document.querySelectorAll(".widget_product_categories");if(a.length)for(let d=0;d<a.length;d++){var b=a[d].querySelectorAll(".cat-parent");if(b.length)for(let a=0;a<b.length;a++){var c=document.createElement("button");c.setAttribute("aria-label",kadenceConfig.screenReader.expand),c.classList.add("kadence-cat-toggle-sub"),(b[a].classList.contains("current-cat")||b[a].classList.contains("current-cat-parent"))&&(c.classList.add("toggle-active"),c.setAttribute("aria-label",kadenceConfig.screenReader.collapse),b[a].classList.add("sub-toggle-active")),b[a].appendChild(c),c.addEventListener("click",function(a){a.preventDefault(),window.kadenceShop.toggleCatShop(a)})}}},toggleCatShop:function(a){var b=a.srcElement;b.classList.contains("toggle-active")?b.classList.remove("toggle-active"):b.classList.add("toggle-active"),b.parentNode.classList.contains("sub-toggle-active")?b.parentNode.classList.remove("sub-toggle-active"):b.parentNode.classList.add("sub-toggle-active")},init:function(){window.kadenceShop.initShopToggle(),window.kadenceShop.initShopCatToggle()}},"loading"===document.readyState?document.addEventListener("DOMContentLoaded",window.kadenceShop.init):window.kadenceShop.init()})();
|
||||
1
wp-content/themes/kadence/assets/js/simplelightbox.min.js
vendored
Normal file
1
wp-content/themes/kadence/assets/js/simplelightbox.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
wp-content/themes/kadence/assets/js/slide-init.min.js
vendored
Normal file
1
wp-content/themes/kadence/assets/js/slide-init.min.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
(function(){"use strict";window.kadenceSlide={start:function(a){var b="ltr",c=a.getAttribute("data-slider-next-label"),d=a.getAttribute("data-slider-prev-label"),e=a.getAttribute("data-slider-slide-label"),f=a.getAttribute("data-slider-type"),g=parseInt(a.getAttribute("data-slider-speed")),h=parseInt(a.getAttribute("data-slider-anim-speed")),i=a.getAttribute("data-slider-arrows"),j=a.getAttribute("data-slider-dots"),k=a.getAttribute("data-slider-pause-hover"),l=a.getAttribute("data-slider-loop"),m=a.getAttribute("data-slider-auto"),n=parseInt(a.getAttribute("data-columns-xxl")),o=parseInt(a.getAttribute("data-columns-xl")),p=parseInt(a.getAttribute("data-columns-md")),q=parseInt(a.getAttribute("data-columns-sm")),r=parseInt(a.getAttribute("data-columns-xs")),s=parseInt(a.getAttribute("data-columns-ss")),t=parseInt(a.getAttribute("data-slider-gutter")),u=parseInt(a.getAttribute("data-slider-scroll")),v=a.getAttribute("data-slider-center-mode");c||(c=kadenceSlideConfig.next),d||(d=kadenceSlideConfig.next),e||(e=kadenceSlideConfig.slide),document.body.classList.contains("rtl")&&(b="rtl"),1!==u&&(u="page");tns({container:a,items:s,slideBy:u,preventScrollOnTouch:"auto",autoplay:!("true"!==m),speed:h,autoplayTimeout:g,autoplayHoverPause:!("true"!==k),controls:"false"!==i,nav:"false"!==j,gutter:t,slideLabel:e,ofLabel:kadenceSlideConfig.of,toLabel:kadenceSlideConfig.to,controlsPosition:"bottom",navPosition:"bottom",useLocalStorage:!1,textDirection:b,controlsText:[d,c],loop:"false"!==l,rewind:!("false"!==l),responsive:{543:{items:r},767:{items:q},991:{items:p},1199:{items:o},1499:{items:n}}})},initAll:function(){document.querySelectorAll(".kadence-slide-init").forEach(function(a){window.kadenceSlide.start(a)})},init:function(){if("function"==typeof tns)window.kadenceSlide.initAll();else var a=setInterval(function(){"function"==typeof tns&&(window.kadenceSlide.initAll(),clearInterval(a))},200)}},"loading"===document.readyState?document.addEventListener("DOMContentLoaded",window.kadenceSlide.init):window.kadenceSlide.init()})();
|
||||
1
wp-content/themes/kadence/assets/js/splide-init.min.js
vendored
Normal file
1
wp-content/themes/kadence/assets/js/splide-init.min.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
(function(){"use strict";window.kadenceSlide={start:function(a){var b="ltr",c=a.getAttribute("data-slider-next-label"),d=a.getAttribute("data-slider-prev-label"),e=a.getAttribute("data-slider-slide-label"),f=parseInt(a.getAttribute("data-slider-speed")),g=parseInt(a.getAttribute("data-slider-anim-speed")),h=a.getAttribute("data-slider-arrows"),i=a.getAttribute("data-slider-dots"),j=a.getAttribute("data-slider-pause-hover"),k=a.getAttribute("data-slider-loop"),l=a.getAttribute("data-slider-auto"),m=parseInt(a.getAttribute("data-columns-xxl")),n=parseInt(a.getAttribute("data-columns-xl")),o=parseInt(a.getAttribute("data-columns-md")),p=parseInt(a.getAttribute("data-columns-sm")),q=parseInt(a.getAttribute("data-columns-xs")),r=parseInt(a.getAttribute("data-columns-ss")),s=parseInt(a.getAttribute("data-slider-gutter")),t=parseInt(a.getAttribute("data-slider-scroll"));c||(c=kadenceSlideConfig.next),d||(d=kadenceSlideConfig.next),e||(e=kadenceSlideConfig.slide),document.querySelector("html[dir=\"rtl\"]")&&(b="rtl"),1!==t&&(t="page");var u=m,v=n,w=o,x=p,y=q,z=r;1===t&&(u=1,v=1,w=1,x=1,y=1,z=1);var A=!1,B=a.querySelector(".splide__list").childElementCount;544>window.innerWidth?B>r&&(A=!0):768>window.innerWidth?B>q&&(A=!0):992>window.innerWidth?B>p&&(A=!0):1200>window.innerWidth?B>o&&(A=!0):1500>window.innerWidth?B>n&&(A=!0):B>m&&(A=!0),A&&a.classList.add("splide-initial");var C={perPage:m,type:"false"===k?"slide":"loop",slideFocus:!1,perMove:u,autoplay:"false"!=l,easing:void 0!==g&&1e3<g?"linear":"cubic-bezier(0.25, 1, 0.5, 1)",speed:void 0===g?400:g,interval:void 0===f?7e3:f,autoplayHoverPause:!("true"!==j),arrows:"false"!=h,pagination:"false"!=i,gap:s+"px",direction:b,rewind:!("false"!=k),focus:0,perMove:u,i18n:{carousel:e,prev:d,next:c,slideLabel:"%s "+kadenceSlideConfig.of+" %s"},breakpoints:{543:{perPage:r,perMove:z},767:{perPage:q,perMove:y},991:{perPage:p,perMove:x},1199:{perPage:o,perMove:w},1499:{perPage:n,perMove:v}}},D=new Splide(a,C);A&&(D.on("mounted",function(){var b=a.querySelectorAll(".splide__pagination__page");b.forEach(function(a){a.addEventListener("keydown",function(a){if(" "===a.key||"Enter"===a.key){a.preventDefault();var b=D?.index||0,c=D?.Components?.Slides?.getAt(b)?.slide;c&&(c.setAttribute("tabindex","0"),c.focus())}})})}),D.on("mounted updated pagination:updated scrolled moved resized active",function(){var b=a.querySelectorAll("a[aria-hidden=\"true\"]");b.forEach(function(a){a.setAttribute("tabindex","-1")})}),D.mount())},initAll:function(){document.querySelectorAll(".kadence-slide-init").forEach(function(a){window.kadenceSlide.start(a)})},init:function(){if("function"==typeof Splide)window.kadenceSlide.initAll();else var a=setInterval(function(){"function"==typeof Splide&&(window.kadenceSlide.initAll(),clearInterval(a))},200)}},"loading"===document.readyState?document.addEventListener("DOMContentLoaded",window.kadenceSlide.init):window.kadenceSlide.init()})();
|
||||
8
wp-content/themes/kadence/assets/js/splide.min.js
vendored
Normal file
8
wp-content/themes/kadence/assets/js/splide.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
wp-content/themes/kadence/assets/js/style-guide-controls.min.js
vendored
Normal file
1
wp-content/themes/kadence/assets/js/style-guide-controls.min.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
(function(a,b){jQuery(document).ready(function(a){let c=jQuery("#customize-header-actions"),d=jQuery("<button name=\"kadence-tour\" id=\"kadence-tour\" class=\"button-secondary button\"> <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\" class=\"bi bi-palette2\" viewBox=\"0 0 16 16\"><path d=\"M0 .5A.5.5 0 0 1 .5 0h5a.5.5 0 0 1 .5.5v5.277l4.147-4.131a.5.5 0 0 1 .707 0l3.535 3.536a.5.5 0 0 1 0 .708L10.261 10H15.5a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-.5.5H3a3 3 0 0 1-2.121-.879A3 3 0 0 1 0 13.044m6-.21 7.328-7.3-2.829-2.828L6 7.188zM4.5 13a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0M15 15v-4H9.258l-4.015 4zM0 .5v12.495zm0 12.495V13z\"/></svg><div class=\"kt-style-guide-tooltip\">Style Guide</div></button>"),e=a("<span class=\"indicator-dot\"></span>");c.append(e),c.append(d),function(){let a=localStorage.getItem("customizerVisitCount");a=a?parseInt(a,10):0,5>a?(e.show(),a++,localStorage.setItem("customizerVisitCount",a)):e.hide()}(),d.on("click",function(c){c.preventDefault(),c.stopPropagation();var d=a("#customize-preview").find("iframe").contents().find("body");d.toggleClass("kt-sg-loaded"),b.state.create("kadence-style-guide-status"),b.state("kadence-style-guide-status").set("loaded")});const f=new URLSearchParams(window.location.search),g=f.get("autofocus");if("kadence-tour"===g){let a=!1;wp.customize.previewer.bind("ready",()=>{a||(d.trigger("click"),a=!0)})}}),a("#customize-preview iframe").on("load",function(){var b=a("#customize-preview").find("iframe").contents().find("body");b.addClass("kt-sg-loaded")})})(jQuery,wp.customize);
|
||||
1
wp-content/themes/kadence/assets/js/style-guide-previewer.min.js
vendored
Normal file
1
wp-content/themes/kadence/assets/js/style-guide-previewer.min.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
(function(a){var b=a(document);jQuery(document).ready(function(a){document.addEventListener("KadenceStyleGuideElementUpdated",function(b){let c=a(document.body).find(b.detail.selector),d=b.detail.value;if("object"==typeof d){let a=d.desktop,b=d.tablet,e=d.mobile;c.find(".kt-sg-desktop").html(a),c.find(".kt-sg-tablet").html(b),c.find(".kt-sg-mobile").html(e)}else c.html(d)});let b=a(".kt-close-tour");b.on("click",function(b){b.preventDefault(),b.stopPropagation(),a(document.body).removeClass("kt-sg-loaded")})}),wp.customize.bind("preview-ready",function(){var c=window.parent===window?null:window.parent;b.on("click",".kt-quick-tour-item-trigger",function(b){b.preventDefault(),b.stopPropagation();const d=a(this),e=d.attr("data-type")?d.attr("data-type"):"section",f=d.attr("data-name")?d.attr("data-name"):"",g=d.attr("data-context")?d.attr("data-context"):"general",h=d.attr("data-reference")?d.attr("data-reference"):"";if(f&&e)switch(e){case"section":c.wp.customize.section(f)&&c.wp.customize.section(f).focus();break;case"control":c.wp.customize.control(f)&&(c.wp.customize.control(f).focus(),"kadence_color_palette"==f?setTimeout(()=>{c.wp.customize.control(f).container.find(".kadence-color-picker-wrap."+h+" .kadence-color-icon-indicate")[0].click()},500):("base_font"==f||"heading_font"==f||"h1_font"==f||"h2_font"==f||"h3_font"==f||"h4_font"==f||"h5_font"==f||"h6_font"==f)&&setTimeout(()=>{c.wp.customize.control(f).container.find(".kadence-typography-size-indicate")[0].click()},500));break;case"panel":c.wp.customize.panel(f)&&c.wp.customize.panel(f).focus();break;default:}})})})(jQuery,wp.customize);
|
||||
1
wp-content/themes/kadence/assets/js/text-widgets.min.js
vendored
Normal file
1
wp-content/themes/kadence/assets/js/text-widgets.min.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
(function(a){"use strict";wp.textWidgets.TextWidgetControl=Backbone.View.extend({events:{},initialize:function(b){var c=this;if(!b.el)throw new Error("Missing options.el");if(!b.syncContainer)throw new Error("Missing options.syncContainer");Backbone.View.prototype.initialize.call(c,b),c.syncContainer=b.syncContainer,c.$el.addClass("text-widget-fields"),c.$el.html(wp.template("widget-text-control-fields")),c.customHtmlWidgetPointer=c.$el.find(".wp-pointer.custom-html-widget-pointer"),c.customHtmlWidgetPointer.length&&(c.customHtmlWidgetPointer.find(".close").on("click",function(b){b.preventDefault(),c.customHtmlWidgetPointer.hide(),a("#"+c.fields.text.attr("id")+"-html").focus(),c.dismissPointers(["text_widget_custom_html"])}),c.customHtmlWidgetPointer.find(".add-widget").on("click",function(a){a.preventDefault(),c.customHtmlWidgetPointer.hide(),c.openAvailableWidgetsPanel()})),c.pasteHtmlPointer=c.$el.find(".wp-pointer.paste-html-pointer"),c.pasteHtmlPointer.length&&c.pasteHtmlPointer.find(".close").on("click",function(a){a.preventDefault(),c.pasteHtmlPointer.hide(),c.editor.focus(),c.dismissPointers(["text_widget_custom_html","text_widget_paste_html"])}),c.fields={title:c.$el.find(".title"),text:c.$el.find(".text")},_.each(c.fields,function(a,b){a.on("input change",function(){var d=c.syncContainer.find(".sync-input."+b);d.val()!==a.val()&&(d.val(a.val()),d.trigger("change"))}),a.val(c.syncContainer.find(".sync-input."+b).val())})},dismissPointers:function(a){_.each(a,function(a){wp.ajax.post("dismiss-wp-pointer",{pointer:a}),wp.textWidgets.dismissedPointers.push(a)})},openAvailableWidgetsPanel:function(){var a;wp.customize.section.each(function(b){b.extended(wp.customize.Widgets.SidebarSection)&&b.expanded()&&(a=wp.customize.control("sidebars_widgets["+b.params.sidebarId+"]"))});a&&setTimeout(function(){wp.customize.Widgets.availableWidgetsPanel.open(a),wp.customize.Widgets.availableWidgetsPanel.$search.val("HTML").trigger("keyup")})},updateFields:function(){var a,b=this;b.fields.title.is(document.activeElement)||(a=b.syncContainer.find(".sync-input.title"),b.fields.title.val(a.val())),a=b.syncContainer.find(".sync-input.text"),b.fields.text.is(":visible")?!b.fields.text.is(document.activeElement)&&b.fields.text.val(a.val()):b.editor&&!b.editorFocused&&a.val()!==b.fields.text.val()&&b.editor.setContent(wp.oldEditor.autop(a.val()))},initializeEditor:function(){function b(){var d,f,j;if(document.getElementById(c)){if("undefined"==typeof window.tinymce)return void wp.oldEditor.initialize(c,{quicktags:!0,mediaButtons:!0});if(tinymce.get(c)&&(h=tinymce.get(c).isHidden(),wp.oldEditor.remove(c)),a(document).one("wp-before-tinymce-init.text-widget-init",function(a,b){!b.plugins||/\bwpview\b/.test(b.plugins)||(b.plugins+=",wpview")}),wp.oldEditor.initialize(c,{tinymce:{wpautop:!0},quicktags:!0,mediaButtons:!0}),j=function(b){b.show(),b.find(".close").focus(),wp.a11y.speak(b.find("h3, p").map(function(){return a(this).text()}).get().join("\n\n"))},d=window.tinymce.get(c),!d)throw new Error("Failed to initialize editor");f=function(){a(d.getWin()).on("unload",function(){_.defer(b)}),h&&switchEditors.go(c,"html"),a("#"+c+"-html").on("click",function(){g.pasteHtmlPointer.hide(),-1!==wp.textWidgets.dismissedPointers.indexOf("text_widget_custom_html")||j(g.customHtmlWidgetPointer)}),a("#"+c+"-tmce").on("click",function(){g.customHtmlWidgetPointer.hide()}),d.on("pastepreprocess",function(a){var b=a.content;-1===wp.textWidgets.dismissedPointers.indexOf("text_widget_paste_html")&&b&&/<\w+.*?>/.test(b)&&_.delay(function(){j(g.pasteHtmlPointer)},250)})},d.initialized?f():d.on("init",f),g.editorFocused=!1,d.on("focus",function(){g.editorFocused=!0}),d.on("paste",function(){d.setDirty(!0),e()}),d.on("NodeChange",function(){i=!0}),d.on("NodeChange",_.debounce(e,1000)),d.on("blur hide",function(){g.editorFocused=!1,e()}),g.editor=d}}var c,d,e,f,g=this,h=!1,i=!1;d=g.fields.text,c=d.attr("id"),f=d.val(),e=function(){g.editor.isDirty()&&(wp.customize&&wp.customize.state&&(wp.customize.state("processing").set(wp.customize.state("processing").get()+1),_.delay(function(){wp.customize.state("processing").set(wp.customize.state("processing").get()-1)},300)),!g.editor.isHidden()&&g.editor.save()),i&&f!==d.val()&&(d.trigger("change"),i=!1,f=d.val())},g.syncContainer.closest(".widget").find("[name=savewidget]:first").on("click",function(){e()}),b()}})})(jQuery);
|
||||
Reference in New Issue
Block a user