- WordPress core y plugins - Tema Twenty Twenty-Four configurado - Plugin allow-unfiltered-html.php simplificado - .gitignore configurado para excluir wp-config.php y uploads 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 line
7.0 KiB
JavaScript
Executable File
1 line
7.0 KiB
JavaScript
Executable File
(()=>{function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}var e,n,o,i;window.TVE_Ult=window.TVE_Ult||{},window.TVE_Ult_Data=window.TVE_Ult_Data||{},window.ThriveGlobal=window.ThriveGlobal||{$j:jQuery.noConflict()},e=ThriveGlobal.$j,o=[],i={},TVE_Ult.add_page_css=function(t){e.each(t,(function(t,n){e("#"+(t+="-css")).length||e('<link rel="stylesheet" id="'+t+'" type="text/css" href="'+n+'"/>').prependTo("head")}))},TVE_Ult.add_head_script=function(t,n,o){var i=document.createElement("script"),a=e("head")[0];i.async=!0,"function"==typeof o&&(i.onload=i.onreadystatechange=o),void 0!==n&&(i.id=n),i.src=t,a.insertBefore(i,a.firstChild)},TVE_Ult.add_page_js=function(t,n){"function"!=typeof n&&(n=function(){});var o=0,i=0;function a(){e.each(t,(function(t,n){if("tve_frontend"===t&&"undefined"!=typeof TCB_Front)return!0;if("tve_leads_frontend"===t&&"undefined"!=typeof TL_Front&&TL_Front.add_page_css)return!0;if(t+="-js",n&&0===e("#"+t).length){if(o++,-1!==n.indexOf("connect.facebook.net"))return TVE_Ult.add_head_script(n,t,(function(){o--})),!0;e.getScript(n,(function(){o--})).fail((function(){console.log("Failed to load: "+n),console.log(arguments)}))}})),s()}function s(){i++,0!==o?100!==i&&setTimeout(s,50):n()}"undefined"==typeof TCB_Front?e.getScript(t.tve_frontend).done(a):a()},e((function(){var a=!1,s=!1;function r(r,d){void 0!==d&&d.lazy_load_conditional_preview&&tcb_condition_sets&&d.lazy_load_conditional_preview.forEach((function(t){-1===tcb_condition_sets.findIndex((function(e){return e.key===t.key}))&&tcb_condition_sets.push(t)})),setTimeout((function(){if(function(r){if(r){if(e.each(r,(function(t,a){t=parseInt(t),a.display_position&&Object.keys(a.display_position).map((function(t){return i[t]=a.display_position[t]})),isNaN(t)||(e.each(a.html,(function(i,s){var r=e(s),d=r.find(".thrv_countdown_timer,.tve-countdown");if(e.each(a.timer_components,(function(t,e){d.attr("data-"+t,e)})),r.data("campaign_id",t),"widget"===i){var l=e("#tve-ult-widget-container"),c=l.data("widget-id");return!l.length||(r.attr("data-widget-id",c),l.find("#tve-ult-widget-placeholder").replaceWith(r),l.hasClass("tve-ult-preload-form")&&l.find(".widget_tve_ult_widget").addClass("tve-ult-preload-form").attr("style",l.attr("style")),l.children().unwrap(),!0)}if("header-bar"===i)o.push(TVE_Ult.top_ribbon_show);else if(-1!==i.indexOf("shortcode"))return TVE_Ult.shortcodesHtml=TVE_Ult.shortcodesHtml||{},TVE_Ult.shortcodesHtml[i]=r,TVE_Ult.insertShortcode(i,r),!0;var _=e("#tve-ult-"+i);_.length?_.html(r):n.append(r)})),a.resources&&(a.resources.css&&TVE_Ult.add_page_css(a.resources.css),a.resources.fonts&&TVE_Ult.add_page_css(a.resources.fonts),a.resources.localize&&e.each(a.resources.localize,(function(t,e){void 0===window[t]&&(window[t]=e)}))))})),r.body_end){var d=e(r.body_end);d.find(".tve_wistia_popover").each((function(){e("#"+this.id).length&&this.parentNode.removeChild(this)})),n.append(d)}r.resources&&r.resources.js&&TVE_Ult.add_page_js(r.resources.js,(function(){a=!0})),r.resources&&r.resources.css&&TVE_Ult.add_page_css(r.resources.css),setTimeout((function i(){if(a&&s){TCB_Front.onDOMReady(),TCB_Front.event_triggers(ThriveGlobal.$j("body"));var r=e(".tve-ult-design").css("display","");setTimeout((function(){r.addClass("tvu-triggered").closest(".tve-ult-preload-form").removeClass("tve-ult-preload-form"),setTimeout((function(){e.each(o,(function(t,e){e.call(null,r),setTimeout((function(){e.call(null,r)}),5e3)}))}),200)}),200),e('[class*="tu-shortcode"]').closest(".thrive_ultimatum_shortcode,.tve-ult-preload-form").remove(),r.find(".thrv_responsive_video").length&&TCB_Front.changeAutoplayVideo(r),n.on("click",".tve-ult-bar-close,.tve-ult-bar-close-editable",TVE_Ult.hide_design),TCB_Front.$window.on("conditional_display_loaded",(function(){var t=Object.keys(TVE_Ult.shortcodesHtml||{});t.length&&t.forEach((function(t){TVE_Ult.insertShortcode(t,TVE_Ult.shortcodesHtml[t])}))})),e(".tve-ult-design").on("tve.countdown-finished",(function(n){var o;n&&n.target&&(o=e(n.target).parents(".tve-ult-design"));var i=TVE_Ult_Data.evergreen_redirects[o.data("campaign_id")];o&&o.length&&o.data("campaign_id")&&i&&("string"==typeof i?window.location=i:"object"===t(i)&&i.promotion_page&&i.redirect_url&&i.promotion_page.includes(TVE_Ult_Data.post_id)&&(window.location=i.redirect_url))}))}else setTimeout(i,50)}),50)}}(r),r.lightspeed)if(r.lightspeed.js&&"undefined"==typeof TCB_Front)var d=setInterval((function(){"undefined"!=typeof TCB_Front&&(clearInterval(d),l(r.lightspeed))}),100);else l(r.lightspeed)}),200)}n=e("body");var d={action:TVE_Ult_Data.ajax_load_action,campaign_ids:TVE_Ult_Data.campaign_ids,matched_display_settings:TVE_Ult_Data.matched_display_settings,post_id:TVE_Ult_Data.post_id,is_singular:TVE_Ult_Data.is_singular,tu_em:TVE_Ult_Data.tu_em,shortcode_campaign_ids:TVE_Ult_Data.shortcode_campaign_ids};function l(t){var n=function(){return e('link[href*="thrive_flat.css"]').length>0},o=[];if(t.css){if(t.css.files)for(var i in t.css.files){var a="flat"===i;(!n()&&a||!a)&&e('<link rel="stylesheet" href="'+t.css.files[i]+'"/>').prependTo("head")}t.css.inline&&t.css.inline.length&&t.css.inline.forEach((function(t){n()||e(t).prependTo("head")}))}if(t.js)for(var r in t.js)TCB_Front&&!TCB_Front.isModuleLoaded(r)&&o.push(r);!function e(){if(o.length){var n=o.shift();TVE_Ult.add_head_script(t.js[n],"tu-lightspeed-"+n,e)}else s=!0}()}window.TVE_Dash&&!TVE_Dash.ajax_sent?e(document).on("tve-dash.load",(function(){TVE_Dash.add_load_item("tu_lazy_load",d,r)})):e.ajax({url:TVE_Ult_Data.ajaxurl,type:"post",data:e.extend(d,{hard_ajax:!0})}).done(r)})),TVE_Ult.top_ribbon_show=function(t){var o=t.filter(".tvu-header");if(o.length&&!TCB_Front.inlineCssVariable(o,"--tve-ult-design-hidden")){var a=0;if("push_content"===(i["header-bar"]||"push_content")){var s=o.outerHeight(!0);n.data("tvu-original-margin",n.css("margin-top")).animate({marginTop:"+"+s+"px"},300);var r=n.find(".thrv_header.tve-scroll-sticky");r.length&&TCB_Front.inlineCssVariable(r,"--tcb-header-extra-offset",s+"px"),a=301}setTimeout((function(){e(window).trigger("ultimatum.form.display",{show:!0,type:"ribbon"})}),a)}},TVE_Ult.insertShortcode=function(t,n){var o=e(".tu-".concat(t));o.length&&(o.removeClass("tu-".concat(t)),o.hasClass("tve-ult-preload-form")?o.html(n):o.replaceWith(n))},TVE_Ult.hide_design=function(t){var o,a="ribbon";if((o=t&&t.target?e(t.target).parents(".tve-ult-design"):e(".tve-ult-design")).removeClass("tvu-triggered").css("--tve-ult-design-hidden",1),o.hasClass("tvu-header")&&(!i["header-bar"]||"push_content"===i["header-bar"])){n.animate({marginTop:0},300);var s=n.find(".thrv_header.tve-scroll-sticky");if(s.length){var r=parseFloat(TCB_Front.inlineCssVariable(s,"--tcb-header-extra-offset"))-o.outerHeight(!0)+"px";s.css("--tcb-header-extra-offset",r)}}o.is(".tve-ult-widget")&&(o.parents("#"+o.data("widget-id")).slideUp(),a="widget"),setTimeout((function(){e(window).trigger("ultimatum.form.display",{show:!1,type:a})}),301)}})(); |