Changeset 3050336
- Timestamp:
- 03/13/2024 09:10:58 AM (2 years ago)
- Location:
- advanced-ads
- Files:
-
- 16 added
- 38 edited
- 1 copied
-
tags/1.51.2 (copied) (copied from advanced-ads/trunk)
-
tags/1.51.2/admin/views/support.php (modified) (1 diff)
-
tags/1.51.2/advanced-ads.php (modified) (2 diffs)
-
tags/1.51.2/assets/css/app.css (modified) (1 diff)
-
tags/1.51.2/assets/js/app.js (modified) (1 diff)
-
tags/1.51.2/assets/scss/partials/_tailwind.scss (modified) (1 diff)
-
tags/1.51.2/includes/admin/pages/class-groups.php (modified) (2 diffs)
-
tags/1.51.2/includes/utilities/class-wordpress.php (modified) (1 diff)
-
tags/1.51.2/languages/advanced-ads.pot (modified) (4 diffs)
-
tags/1.51.2/lib/composer/autoload_classmap.php (modified) (1 diff)
-
tags/1.51.2/lib/composer/autoload_static.php (modified) (1 diff)
-
tags/1.51.2/modules/adblock-finder/public/ga-adblock-counter.min.js (modified) (1 diff)
-
tags/1.51.2/modules/gadsense/includes/adsense-report-data.php (modified) (4 diffs)
-
tags/1.51.2/modules/pef (added)
-
tags/1.51.2/modules/pef/assets (added)
-
tags/1.51.2/modules/pef/assets/aa-pef-bg.svg (added)
-
tags/1.51.2/modules/pef/assets/aa-pef-deco.svg (added)
-
tags/1.51.2/modules/pef/class-module.php (added)
-
tags/1.51.2/modules/pef/main.php (added)
-
tags/1.51.2/modules/pef/views (added)
-
tags/1.51.2/modules/pef/views/template.php (added)
-
tags/1.51.2/packages/composer/autoload_classmap.php (modified) (1 diff)
-
tags/1.51.2/packages/composer/autoload_static.php (modified) (1 diff)
-
tags/1.51.2/packages/composer/installed.php (modified) (2 diffs)
-
tags/1.51.2/public/assets/js/advanced.min.js (modified) (1 diff)
-
tags/1.51.2/public/class-advanced-ads.php (modified) (1 diff)
-
tags/1.51.2/readme.txt (modified) (2 diffs)
-
tags/1.51.2/views/admin/screens/dashboard.php (modified) (1 diff)
-
trunk/admin/views/support.php (modified) (1 diff)
-
trunk/advanced-ads.php (modified) (2 diffs)
-
trunk/assets/css/app.css (modified) (1 diff)
-
trunk/assets/js/app.js (modified) (1 diff)
-
trunk/assets/scss/partials/_tailwind.scss (modified) (1 diff)
-
trunk/includes/admin/pages/class-groups.php (modified) (2 diffs)
-
trunk/includes/utilities/class-wordpress.php (modified) (1 diff)
-
trunk/languages/advanced-ads.pot (modified) (4 diffs)
-
trunk/lib/composer/autoload_classmap.php (modified) (1 diff)
-
trunk/lib/composer/autoload_static.php (modified) (1 diff)
-
trunk/modules/adblock-finder/public/ga-adblock-counter.min.js (modified) (1 diff)
-
trunk/modules/gadsense/includes/adsense-report-data.php (modified) (4 diffs)
-
trunk/modules/pef (added)
-
trunk/modules/pef/assets (added)
-
trunk/modules/pef/assets/aa-pef-bg.svg (added)
-
trunk/modules/pef/assets/aa-pef-deco.svg (added)
-
trunk/modules/pef/class-module.php (added)
-
trunk/modules/pef/main.php (added)
-
trunk/modules/pef/views (added)
-
trunk/modules/pef/views/template.php (added)
-
trunk/packages/composer/autoload_classmap.php (modified) (1 diff)
-
trunk/packages/composer/autoload_static.php (modified) (1 diff)
-
trunk/packages/composer/installed.php (modified) (2 diffs)
-
trunk/public/assets/js/advanced.min.js (modified) (1 diff)
-
trunk/public/class-advanced-ads.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/views/admin/screens/dashboard.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
advanced-ads/tags/1.51.2/admin/views/support.php
r2986093 r3050336 68 68 <?php endif; ?> 69 69 </div> 70 <?php AdvancedAds\Modules\ProductExperimentationFramework\Module::get_instance()->render( 'support' ); ?> -
advanced-ads/tags/1.51.2/advanced-ads.php
r3043146 r3050336 13 13 * Plugin URI: https://wpadvancedads.com 14 14 * Description: Manage and optimize your ads in WordPress 15 * Version: 1.51. 115 * Version: 1.51.2 16 16 * Author: Advanced Ads GmbH 17 17 * Author URI: https://wpadvancedads.com … … 34 34 35 35 define( 'ADVADS_FILE', __FILE__ ); 36 define( 'ADVADS_VERSION', '1.51. 1' );36 define( 'ADVADS_VERSION', '1.51.2' ); 37 37 38 38 // Load the autoloader. -
advanced-ads/tags/1.51.2/assets/css/app.css
r3041809 r3050336 1 /*! tailwindcss v3.3.7 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-feature-settings:normal;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:initial}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:initial;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:initial}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*,::backdrop,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.\!mr-2{margin-right:.5rem!important}.\!mt-1{margin-top:.25rem!important}.mb-6{margin-bottom:1.5rem}.inline{display:inline}.flex{display:flex}.table{display:table}.grid{display:grid}.hidden{display:none}.w-full{width:100%}.items-center{align-items:center}.gap-x-4{column-gap:1rem}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.self-start{align-self:flex-start}.text-base{font-size:1rem;line-height:1.5rem}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.lds-ripple{display:none;height:40px;position:relative;width:40px}.lds-ripple.show{display:inline-block}.lds-ripple div{animation:lds-ripple 1s cubic-bezier(0,.2,.8,1) infinite;border:4px solid #ccc;border-radius:50%;opacity:1;position:absolute}.lds-ripple div:nth-child(2){animation-delay:-.5s}@keyframes lds-ripple{0%{height:0;left:20px;opacity:0;top:20px;width:0}4.9%{height:0;left:20px;opacity:0;top:20px;width:0}5%{height:0;left:20px;opacity:1;top:20px;width:0}to{height:40px;left:0;opacity:0;top:0;width:40px}}.advads-ui-switch{align-items:center;cursor:pointer;display:inline-flex;position:relative}.advads-ui-switch-list>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1.25rem*var(--tw-space-y-reverse));margin-top:calc(1.25rem*(1 - var(--tw-space-y-reverse)))}.advads-ui-switch input{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.advads-ui-switch input:checked~div{--tw-bg-opacity:1;background-color:rgb(4 116 162/var(--tw-bg-opacity))}.advads-ui-switch input:checked~div:after{--tw-translate-x:100%;--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity));content:var(--tw-content);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.advads-ui-switch input:disabled~div:after{--tw-border-opacity:1;--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity));border-color:rgb(229 231 235/var(--tw-border-opacity));content:var(--tw-content)}.advads-ui-switch div{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity));border-radius:9999px;height:1.5rem;width:2.75rem}.advads-ui-switch div:after{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-content:"";background-color:rgb(255 255 255/var(--tw-bg-opacity));border-color:rgb(209 213 219/var(--tw-border-opacity));border-radius:9999px;border-width:1px;content:var(--tw-content);height:1.25rem;left:2px;position:absolute;top:.125rem;transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);width:1.25rem}.advads-ui-switch span{font-size:.875rem;font-weight:500;line-height:1.25rem;margin-left:.75rem}#advads-m2-connect{display:none}#advads-m2-connect a{--tw-text-opacity:1;color:rgb(4 116 162/var(--tw-text-opacity))}1 .sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.\!mr-2{margin-right:.5rem!important}.\!mt-1{margin-top:.25rem!important}.mb-6{margin-bottom:1.5rem}.inline{display:inline}.flex{display:flex}.table{display:table}.grid{display:grid}.hidden{display:none}.w-full{width:100%}.items-center{align-items:center}.gap-x-4{column-gap:1rem}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.self-start{align-self:flex-start}.text-base{font-size:1rem;line-height:1.5rem}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.lds-ripple{display:none;height:40px;position:relative;width:40px}.lds-ripple.show{display:inline-block}.lds-ripple div{animation:lds-ripple 1s cubic-bezier(0,.2,.8,1) infinite;border:4px solid #ccc;border-radius:50%;opacity:1;position:absolute}.lds-ripple div:nth-child(2){animation-delay:-.5s}@keyframes lds-ripple{0%{height:0;left:20px;opacity:0;top:20px;width:0}4.9%{height:0;left:20px;opacity:0;top:20px;width:0}5%{height:0;left:20px;opacity:1;top:20px;width:0}to{height:40px;left:0;opacity:0;top:0;width:40px}}.advads-ui-switch{align-items:center;cursor:pointer;display:inline-flex;position:relative}.advads-ui-switch-list>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1.25rem*var(--tw-space-y-reverse));margin-top:calc(1.25rem*(1 - var(--tw-space-y-reverse)))}.advads-ui-switch input{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.advads-ui-switch input:checked~div{--tw-bg-opacity:1;background-color:rgb(4 116 162/var(--tw-bg-opacity))}.advads-ui-switch input:checked~div:after{--tw-translate-x:100%;--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity));content:var(--tw-content);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.advads-ui-switch input:disabled~div:after{--tw-border-opacity:1;--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity));border-color:rgb(229 231 235/var(--tw-border-opacity));content:var(--tw-content)}.advads-ui-switch div{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity));border-radius:9999px;height:1.5rem;width:2.75rem}.advads-ui-switch div:after{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-content:"";background-color:rgb(255 255 255/var(--tw-bg-opacity));border-color:rgb(209 213 219/var(--tw-border-opacity));border-radius:9999px;border-width:1px;content:var(--tw-content);height:1.25rem;left:2px;position:absolute;top:.125rem;transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);width:1.25rem}.advads-ui-switch span{font-size:.875rem;font-weight:500;line-height:1.25rem;margin-left:.75rem}#advads-m2-connect{display:none}#advads-m2-connect a{--tw-text-opacity:1;color:rgb(4 116 162/var(--tw-text-opacity))} -
advanced-ads/tags/1.51.2/assets/js/app.js
r3041809 r3050336 1 (()=>{"use strict";var t,e={999:(t,e,n)=>{const a=jQuery;var o=n.n(a);function s(){var t,e,n,a,s;t=o()(".js-pubguru-connect"),e=t.next(".aa-spinner"),n=o()("#advads-m2-connect"),o()(".js-m2-show-consent").on("click",".button",(function(t){t.preventDefault();var e=o()(this).closest("tr");n.show(),e.addClass("hidden"),e.next().removeClass("hidden")})),o()(".js-pubguru-disconnect").on("click",".button",(function(t){t.preventDefault();var e=o()(this).closest("tr");n.hide(),e.addClass("hidden"),e.prev().removeClass("hidden"),o().ajax({type:"POST",url:ajaxurl,data:{action:"pubguru_disconnect",nonce:advadsglobal.ajax_nonce},dataType:"json"}).done((function(t){if(t.success){var n=o()('<div class="notice notice-success" />');n.html("<p>"+t.data.message+"</p>"),e.closest(".postbox").after(n),setTimeout((function(){n.fadeOut(500,(function(){n.remove()}))}),3e3)}}))})),o()("#m2-connect-consent").on("change",(function(){var e=o()(this);t.prop("disabled",!e.is(":checked"))})),o()("#advads-overview").on("click",".notice-dismiss",(function(t){t.preventDefault();var e=o()(this).parent();e.fadeOut(500,(function(){e.remove()}))})),t.on("click",(function(n){n.preventDefault(),e.addClass("show"),o().ajax({type:"POST",url:ajaxurl,data:{action:"pubguru_connect",nonce:advadsglobal.ajax_nonce},dataType:"json"}).done((function(t){t.success&&(o()(".pubguru-not-connected").hide(),o()(".pubguru-connected").removeClass("hidden"),o()(".pg-tc-trail").toggle(!t.data.hasTrafficCop),o()(".pg-tc-install").toggle(t.data.hasTrafficCop))})).fail((function(e){var n=e.responseJSON,a=o()('<div class="notice notice-error is-dismissible" />');a.html("<p>"+n.data+'</p><button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button>'),t.closest(".postbox").after(a)})).complete((function(){return e.removeClass("show")}))})),a=o()("#pubguru-modules"),s=o()("#pubguru-notices"),a.on("input","input:checkbox",(function(){var t=o()(this),e=t.attr("name"),n=t.is(":checked");o().ajax({url:a.attr("action"),method:"POST",data:{action:"pubguru_module_change",security:a.data("security"),module:e,status:n}}).done((function(t){var e=t.data.notice,n=void 0===e?"":e;s.html(""),""!==n&&s.html(n)}))})),s.on("click",".js-btn-backup-adstxt",(function(){var t=o()(this);t.prop("disabled",!0),t.html(t.data("loading")),o().ajax({url:a.attr("action"),method:"POST",data:{action:"pubguru_backup_ads_txt",security:t.data("security")}}).done((function(e){e.success?(t.html(t.data("done")),setTimeout((function(){s.fadeOut("slow",(function(){s.html("")}))}),4e3)):t.html(t.data("text"))})).fail((function(){t.html(t.data("text"))}))}))}o()((function(){s()}))},51:()=>{}},n={};function a(t){var o=n[t];if(void 0!==o)return o.exports;var s=n[t]={exports:{}};return e[t](s,s.exports,a),s.exports}a.m=e,t=[],a.O=(e,n,o,s)=>{if(!n){var c=1/0;for(d=0;d<t.length;d++){for(var[n,o,s]=t[d],i=!0,r=0;r<n.length;r++)(!1&s||c>=s)&&Object.keys(a.O).every((t=>a.O[t](n[r])))?n.splice(r--,1):(i=!1,s<c&&(c=s));if(i){t.splice(d--,1);var u=o();void 0!==u&&(e=u)}}return e}s=s||0;for(var d=t.length;d>0&&t[d-1][2]>s;d--)t[d]=t[d-1];t[d]=[n,o,s]},a.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return a.d(e,{a:e}),e},a.d=(t,e)=>{for(var n in e)a.o(e,n)&&!a.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t={449:0,464:0};a.O.j=e=>0===t[e];var e=(e,n)=>{var o,s,[c,i,r]=n,u=0;if(c.some((e=>0!==t[e]))){for(o in i)a.o(i,o)&&(a.m[o]=i[o]);if(r)var d=r(a)}for(e&&e(n);u<c.length;u++)s=c[u],a.o(t,s)&&t[s]&&t[s][0](),t[s]=0;return a.O(d)},n=globalThis.webpackChunkadvanced_ads=globalThis.webpackChunkadvanced_ads||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))})(),a.O(void 0,[464],(()=>a(999)));var o=a.O(void 0,[464],(()=>a(51)));o=a.O(o)})();1 !function(){"use strict";var t,n={999:function(t,n,e){var a=jQuery,o=e.n(a);function c(){var t,n,e,a,c;t=o()(".js-pubguru-connect"),n=t.next(".aa-spinner"),e=o()("#advads-m2-connect"),o()(".js-m2-show-consent").on("click",".button",(function(t){t.preventDefault();var n=o()(this).closest("tr");e.show(),n.addClass("hidden"),n.next().removeClass("hidden")})),o()(".js-pubguru-disconnect").on("click",".button",(function(t){t.preventDefault();var n=o()(this).closest("tr");e.hide(),n.addClass("hidden"),n.prev().removeClass("hidden"),o().ajax({type:"POST",url:ajaxurl,data:{action:"pubguru_disconnect",nonce:advadsglobal.ajax_nonce},dataType:"json"}).done((function(t){if(t.success){var e=o()('<div class="notice notice-success" />');e.html("<p>"+t.data.message+"</p>"),n.closest(".postbox").after(e),setTimeout((function(){e.fadeOut(500,(function(){e.remove()}))}),3e3)}}))})),o()("#m2-connect-consent").on("change",(function(){var n=o()(this);t.prop("disabled",!n.is(":checked"))})),o()("#advads-overview").on("click",".notice-dismiss",(function(t){t.preventDefault();var n=o()(this).parent();n.fadeOut(500,(function(){n.remove()}))})),t.on("click",(function(e){e.preventDefault(),n.addClass("show"),o().ajax({type:"POST",url:ajaxurl,data:{action:"pubguru_connect",nonce:advadsglobal.ajax_nonce},dataType:"json"}).done((function(t){t.success&&(o()(".pubguru-not-connected").hide(),o()(".pubguru-connected").removeClass("hidden"),o()(".pg-tc-trail").toggle(!t.data.hasTrafficCop),o()(".pg-tc-install").toggle(t.data.hasTrafficCop))})).fail((function(n){var e=n.responseJSON,a=o()('<div class="notice notice-error is-dismissible" />');a.html("<p>"+e.data+'</p><button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button>'),t.closest(".postbox").after(a)})).complete((function(){return n.removeClass("show")}))})),a=o()("#pubguru-modules"),c=o()("#pubguru-notices"),a.on("input","input:checkbox",(function(){var t=o()(this),n=t.attr("name"),e=t.is(":checked");o().ajax({url:a.attr("action"),method:"POST",data:{action:"pubguru_module_change",security:a.data("security"),module:n,status:e}}).done((function(t){var n=t.data.notice,e=void 0===n?"":n;c.html(""),""!==e&&c.html(e)}))})),c.on("click",".js-btn-backup-adstxt",(function(){var t=o()(this);t.prop("disabled",!0),t.html(t.data("loading")),o().ajax({url:a.attr("action"),method:"POST",data:{action:"pubguru_backup_ads_txt",security:t.data("security")}}).done((function(n){n.success?(t.html(t.data("done")),setTimeout((function(){c.fadeOut("slow",(function(){c.html("")}))}),4e3)):t.html(t.data("text"))})).fail((function(){t.html(t.data("text"))}))}))}o()((function(){c()}))},51:function(){}},e={};function a(t){var o=e[t];if(void 0!==o)return o.exports;var c=e[t]={exports:{}};return n[t](c,c.exports,a),c.exports}a.m=n,t=[],a.O=function(n,e,o,c){if(!e){var u=1/0;for(d=0;d<t.length;d++){e=t[d][0],o=t[d][1],c=t[d][2];for(var s=!0,i=0;i<e.length;i++)(!1&c||u>=c)&&Object.keys(a.O).every((function(t){return a.O[t](e[i])}))?e.splice(i--,1):(s=!1,c<u&&(u=c));if(s){t.splice(d--,1);var r=o();void 0!==r&&(n=r)}}return n}c=c||0;for(var d=t.length;d>0&&t[d-1][2]>c;d--)t[d]=t[d-1];t[d]=[e,o,c]},a.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(n,{a:n}),n},a.d=function(t,n){for(var e in n)a.o(n,e)&&!a.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})},a.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},function(){var t={449:0,464:0};a.O.j=function(n){return 0===t[n]};var n=function(n,e){var o,c,u=e[0],s=e[1],i=e[2],r=0;if(u.some((function(n){return 0!==t[n]}))){for(o in s)a.o(s,o)&&(a.m[o]=s[o]);if(i)var d=i(a)}for(n&&n(e);r<u.length;r++)c=u[r],a.o(t,c)&&t[c]&&t[c][0](),t[c]=0;return a.O(d)},e=self.webpackChunkadvanced_ads=self.webpackChunkadvanced_ads||[];e.forEach(n.bind(null,0)),e.push=n.bind(null,e.push.bind(e))}(),a.O(void 0,[464],(function(){return a(999)}));var o=a.O(void 0,[464],(function(){return a(51)}));o=a.O(o)}(); -
advanced-ads/tags/1.51.2/assets/scss/partials/_tailwind.scss
r3041809 r3050336 1 @tailwind base;2 1 @tailwind components; 3 2 @tailwind utilities; -
advanced-ads/tags/1.51.2/includes/admin/pages/class-groups.php
r3043146 r3050336 50 50 51 51 add_action( 'in_admin_header', [ $this, 'get_list_table' ] ); 52 add_action( 'admin_init', [ $this, 'admin_init' ] ); 52 if ( 'advanced-ads-groups' === Params::get( 'page' ) ) { 53 add_action( 'admin_init', [ $this, 'admin_init' ] ); 54 } 53 55 } 54 56 … … 60 62 public function admin_init() { 61 63 if ( 62 ( ! Params::post( 'advads-group-update-nonce' ) && ! Params::post( 'advads-group-add-nonce' ) ) 63 || ( 'delete' === Params::get( 'action' ) && 'advanced-ads-groups' !== Params::get( 'page' ) ) 64 'advanced-ads-groups' !== Params::get( 'page' ) 65 && ! Params::post( 'advads-group-update-nonce' ) 66 && ! Params::post( 'advads-group-add-nonce' ) 67 && 'delete' === Params::get( 'action' ) 64 68 ) { 65 69 // Just skip if no group created, deleted, or edited. -
advanced-ads/tags/1.51.2/includes/utilities/class-wordpress.php
r3041809 r3050336 89 89 return $domain; 90 90 } 91 92 /** 93 * Returns true if the current request is a REST request. 94 * 95 * @return bool 96 */ 97 public static function is_rest_request(): bool { 98 $request = Params::server( 'REQUEST_URI' ); 99 if ( empty( $request ) ) { 100 return false; 101 } 102 103 return false !== strpos( $request, trailingslashit( rest_get_url_prefix() ) ); 104 } 105 106 /** 107 * Returns true if a REST request has an Advanced Ads endpoint. 108 * 109 * @return bool 110 */ 111 public static function is_gutenberg_writing_request(): bool { 112 global $wp; 113 $rest_route = $wp->query_vars['rest_route'] ?? ''; 114 115 $is_writing = in_array( Params::server( 'REQUEST_METHOD' ), [ 'POST', 'PUT' ], true ); 116 $is_gutenberg = strpos( $rest_route, '/wp/v2/posts' ) !== false || strpos( $rest_route, '/wp/v2/pages' ) !== false; 117 118 return $is_gutenberg && $is_writing; 119 } 91 120 } -
advanced-ads/tags/1.51.2/languages/advanced-ads.pot
r3043146 r3050336 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Advanced Ads 1.51. 0\n"5 "Project-Id-Version: Advanced Ads 1.51.1\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/advanced-ads/\n" 7 7 "Last-Translator: Thomas Maier <[email protected]>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2024-0 2-29T12:31:19+00:00\n"12 "POT-Creation-Date: 2024-03-13T09:10:08+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.6.0\n" … … 2934 2934 msgstr "" 2935 2935 2936 #: includes/admin/pages/class-groups.php:10 52936 #: includes/admin/pages/class-groups.php:109 2937 2937 msgid "Ad Group successfully created" 2938 2938 msgstr "" 2939 2939 2940 #: includes/admin/pages/class-groups.php:11 52940 #: includes/admin/pages/class-groups.php:119 2941 2941 msgid "Ad Groups successfully updated" 2942 2942 msgstr "" 2943 2943 2944 #: includes/admin/pages/class-groups.php:21 02945 #: includes/admin/pages/class-groups.php:2 392944 #: includes/admin/pages/class-groups.php:214 2945 #: includes/admin/pages/class-groups.php:243 2946 2946 msgid "Sorry, you are not allowed to access this feature." 2947 2947 msgstr "" 2948 2948 2949 #: includes/admin/pages/class-groups.php:22 12949 #: includes/admin/pages/class-groups.php:225 2950 2950 msgid "You attempted to edit an ad group that doesn’t exist. Perhaps it was deleted?" 2951 msgstr ""2952 2953 #: includes/admin/pages/class-groups.php:2512954 #: includes/admin/pages/class-groups.php:2792955 msgid "Invalid Ad Group"2956 2951 msgstr "" 2957 2952 2958 2953 #: includes/admin/pages/class-groups.php:255 2959 2954 #: includes/admin/pages/class-groups.php:283 2955 msgid "Invalid Ad Group" 2956 msgstr "" 2957 2958 #: includes/admin/pages/class-groups.php:259 2959 #: includes/admin/pages/class-groups.php:287 2960 2960 msgid "You don’t have permission to change the ad groups" 2961 2961 msgstr "" 2962 2962 2963 #: includes/admin/pages/class-groups.php:2 882963 #: includes/admin/pages/class-groups.php:292 2964 2964 msgid "No ad group created" 2965 2965 msgstr "" … … 4270 4270 msgstr "" 4271 4271 4272 #: public/class-advanced-ads.php:88 44272 #: public/class-advanced-ads.php:889 4273 4273 msgctxt "label above ads" 4274 4274 msgid "Advertisements" -
advanced-ads/tags/1.51.2/lib/composer/autoload_classmap.php
r3041809 r3050336 78 78 'AdvancedAds\\Modules\\OneClick\\Traffic_Cop' => $baseDir . '/modules/one-click/modules/class-traffic-cop.php', 79 79 'AdvancedAds\\Modules\\OneClick\\Workflow' => $baseDir . '/modules/one-click/modules/class-workflow.php', 80 'AdvancedAds\\Modules\\ProductExperimentationFramework\\Module' => $baseDir . '/modules/pef/class-module.php', 80 81 'AdvancedAds\\Plugin' => $baseDir . '/includes/class-plugin.php', 81 82 'AdvancedAds\\Utilities\\Conditional' => $baseDir . '/includes/utilities/class-conditional.php', -
advanced-ads/tags/1.51.2/lib/composer/autoload_static.php
r3041809 r3050336 108 108 'AdvancedAds\\Modules\\OneClick\\Traffic_Cop' => __DIR__ . '/../..' . '/modules/one-click/modules/class-traffic-cop.php', 109 109 'AdvancedAds\\Modules\\OneClick\\Workflow' => __DIR__ . '/../..' . '/modules/one-click/modules/class-workflow.php', 110 'AdvancedAds\\Modules\\ProductExperimentationFramework\\Module' => __DIR__ . '/../..' . '/modules/pef/class-module.php', 110 111 'AdvancedAds\\Plugin' => __DIR__ . '/../..' . '/includes/class-plugin.php', 111 112 'AdvancedAds\\Utilities\\Conditional' => __DIR__ . '/../..' . '/includes/utilities/class-conditional.php', -
advanced-ads/tags/1.51.2/modules/adblock-finder/public/ga-adblock-counter.min.js
r3041809 r3050336 1 window.advanced_ads_check_adblocker=function(t){var n=[],e=null;function a(t){var n=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(t){return setTimeout(t,16)};n.call(window,t)}return a((function(){var t=document.createElement("div");t.innerHTML=" ",t.setAttribute("class","ad_unit ad-unit text-ad text_ad pub_300x250"),t.setAttribute("style","width: 1px !important; height: 1px !important; position: absolute !important; left: 0px !important; top: 0px !important; overflow: hidden !important;"),document.body.appendChild(t),a((function(){var a,o,i=null===(a=(o=window).getComputedStyle)||void 0===a?void 0:a.call(o,t),d=null==i?void 0:i.getPropertyValue("-moz-binding");e=i&&"none"===i.getPropertyValue("display")||"string"==typeof d&&-1!==d.indexOf("about:");for(var c=0,r=n.length;c<r;c++)n[c](e);n=[]}))})),function(t){"undefined"==typeof advanced_ads_adblocker_test&&(e=!0),null!==e?t(e):n.push(t)}}(), (()=>{function t(t){this.UID=t,this.analyticsObject="function"==typeof gtag;var n=this;return this.count=function(){gtag("event","AdBlock",{event_category:"Advanced Ads",event_label:"Yes",non_interaction:!0,send_to:n.UID})},function(){if(!n.analyticsObject){var e=document.createElement("script");e.src="https://www.googletagmanager.com/gtag/js?id="+t,e.async=!0,document.body.appendChild(e),window.dataLayer=window.dataLayer||[],window.gtag=function(){dataLayer.push(arguments)},n.analyticsObject=!0,gtag("js",new Date)}var a={send_page_view:!1,transport_type:"beacon"};window.advanced_ads_ga_anonymIP&&(a.anonymize_ip=!0),gtag("config",t,a)}(),this}advanced_ads_check_adblocker((function(n){n&&new t(advanced_ads_ga_UID).count()}))})();1 window.advanced_ads_check_adblocker=function(t){var n=[],e=null;function a(t){var n=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(t){return setTimeout(t,16)};n.call(window,t)}return a((function(){var t=document.createElement("div");t.innerHTML=" ",t.setAttribute("class","ad_unit ad-unit text-ad text_ad pub_300x250"),t.setAttribute("style","width: 1px !important; height: 1px !important; position: absolute !important; left: 0px !important; top: 0px !important; overflow: hidden !important;"),document.body.appendChild(t),a((function(){var a,o,i=null===(a=(o=window).getComputedStyle)||void 0===a?void 0:a.call(o,t),d=null==i?void 0:i.getPropertyValue("-moz-binding");e=i&&"none"===i.getPropertyValue("display")||"string"==typeof d&&-1!==d.indexOf("about:");for(var c=0,r=n.length;c<r;c++)n[c](e);n=[]}))})),function(t){"undefined"==typeof advanced_ads_adblocker_test&&(e=!0),null!==e?t(e):n.push(t)}}(),function(){function t(t){this.UID=t,this.analyticsObject="function"==typeof gtag;var n=this;return this.count=function(){gtag("event","AdBlock",{event_category:"Advanced Ads",event_label:"Yes",non_interaction:!0,send_to:n.UID})},function(){if(!n.analyticsObject){var e=document.createElement("script");e.src="https://www.googletagmanager.com/gtag/js?id="+t,e.async=!0,document.body.appendChild(e),window.dataLayer=window.dataLayer||[],window.gtag=function(){dataLayer.push(arguments)},n.analyticsObject=!0,gtag("js",new Date)}var a={send_page_view:!1,transport_type:"beacon"};window.advanced_ads_ga_anonymIP&&(a.anonymize_ip=!0),gtag("config",t,a)}(),this}advanced_ads_check_adblocker((function(n){n&&new t(advanced_ads_ga_UID).count()}))}(); -
advanced-ads/tags/1.51.2/modules/gadsense/includes/adsense-report-data.php
r2821980 r3050336 106 106 107 107 /** 108 * Returns serialized object properties.109 * 110 * @return string the serialized data.111 */ 112 public function serialize() {113 return serialize([108 * Serialize an instance of this class into a string. For PHP version >= 7.4 109 * 110 * @return array 111 */ 112 public function __serialize() { 113 return [ 114 114 'earnings' => $this->earnings, 115 115 'type' => $this->type, … … 117 117 'currency' => $this->currency, 118 118 'domains' => $this->domains, 119 ] ); 120 } 121 122 /** 123 * Set object properties from serialized data string. 119 ]; 120 } 121 122 /** 123 * Recreate an instance of this class from a string. For PHP version >= 7.4 124 * 125 * @param array $data the array from __serialize. 126 * 127 * @return void 128 */ 129 public function __unserialize( $data ) { 130 $this->earnings = $data['earnings'] ?? null; 131 $this->type = $data['type'] ?? null; 132 $this->timestamp = $data['timestamp'] ?? 0; 133 $this->currency = $data['currency'] ?? ''; 134 $this->domains = $data['domains'] ?? []; 135 } 136 137 /** 138 * Returns serialized object properties. For PHP version < 7.4 139 * 140 * @return string the serialized data. 141 */ 142 public function serialize() { 143 return serialize( 144 [ 145 'earnings' => $this->earnings, 146 'type' => $this->type, 147 'timestamp' => $this->timestamp, 148 'currency' => $this->currency, 149 'domains' => $this->domains, 150 ] 151 ); 152 } 153 154 /** 155 * Set object properties from serialized data string. For PHP version < 7.4 124 156 * 125 157 * @param string $data serilaized data from DB. … … 131 163 $unwrapped = []; 132 164 } 133 134 $this->earnings = isset( $unwrapped['earnings'] ) ? $unwrapped['earnings'] : null; 135 $this->type = isset( $unwrapped['type'] ) ? $unwrapped['type'] : null; 136 $this->timestamp = isset( $unwrapped['timestamp'] ) ? $unwrapped['timestamp'] : 0; 137 $this->currency = isset( $unwrapped['currency'] ) ? $unwrapped['currency'] : ''; 138 $this->domains = isset( $unwrapped['domains'] ) ? $unwrapped['domains'] : []; 165 $this->__unserialize( $unwrapped ); 139 166 } 140 167 … … 201 228 return new self( $type ); 202 229 } 230 231 // PHP version < 7.4. 232 if ( $option instanceof self ) { 233 return $option; 234 } 235 203 236 try { 204 237 $unserialized = unserialize( $option ); -
advanced-ads/tags/1.51.2/packages/composer/autoload_classmap.php
r3041809 r3050336 73 73 'AdvancedAds\\Modules\\OneClick\\Traffic_Cop' => $baseDir . '/modules/one-click/modules/class-traffic-cop.php', 74 74 'AdvancedAds\\Modules\\OneClick\\Workflow' => $baseDir . '/modules/one-click/modules/class-workflow.php', 75 'AdvancedAds\\Modules\\ProductExperimentationFramework\\Module' => $baseDir . '/modules/pef/class-module.php', 75 76 'AdvancedAds\\Plugin' => $baseDir . '/includes/class-plugin.php', 76 77 'AdvancedAds\\Utilities\\Conditional' => $baseDir . '/includes/utilities/class-conditional.php', -
advanced-ads/tags/1.51.2/packages/composer/autoload_static.php
r3041809 r3050336 102 102 'AdvancedAds\\Modules\\OneClick\\Traffic_Cop' => __DIR__ . '/../..' . '/modules/one-click/modules/class-traffic-cop.php', 103 103 'AdvancedAds\\Modules\\OneClick\\Workflow' => __DIR__ . '/../..' . '/modules/one-click/modules/class-workflow.php', 104 'AdvancedAds\\Modules\\ProductExperimentationFramework\\Module' => __DIR__ . '/../..' . '/modules/pef/class-module.php', 104 105 'AdvancedAds\\Plugin' => __DIR__ . '/../..' . '/includes/class-plugin.php', 105 106 'AdvancedAds\\Utilities\\Conditional' => __DIR__ . '/../..' . '/includes/utilities/class-conditional.php', -
advanced-ads/tags/1.51.2/packages/composer/installed.php
r3041809 r3050336 4 4 'pretty_version' => '1.42.1', 5 5 'version' => '1.42.1.0', 6 'reference' => null,6 'reference' => NULL, 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 34 34 'pretty_version' => '1.42.1', 35 35 'version' => '1.42.1.0', 36 'reference' => null,36 'reference' => NULL, 37 37 'type' => 'wordpress-plugin', 38 38 'install_path' => __DIR__ . '/../../', -
advanced-ads/tags/1.51.2/public/assets/js/advanced.min.js
r3041809 r3050336 1 (()=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}!function(){if("function"!=typeof window.CustomEvent){window.CustomEvent=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:null};var o=document.createEvent("CustomEvent");return o.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),o}}function t(){var t,o=this.parentNode,a=arguments.length;if(o)for(a||o.removeChild(this);a--;)"object"!==e(t=arguments[a])?t=this.ownerDocument.createTextNode(t):t.parentNode&&t.parentNode.removeChild(t),a?o.insertBefore(t,this.nextSibling):o.replaceChild(t,this)}Element.prototype.replaceWith||(Element.prototype.replaceWith=t),CharacterData.prototype.replaceWith||(CharacterData.prototype.replaceWith=t),DocumentType.prototype.replaceWith||(DocumentType.prototype.replaceWith=t),window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(e,t){var o,a=this.length;for(t=t||window,o=0;o<a;o++)e.call(t,this[o],o,this)})}(),advads={supports_localstorage:function(){"use strict";try{return!(!window||void 0===window.localStorage)&&(window.localStorage.setItem("x","x"),window.localStorage.removeItem("x"),!0)}catch(e){return!1}},max_per_session:function(e,t){var o=1;if(void 0!==t&&0!==parseInt(t)||(t=1),this.cookie_exists(e)){if(this.get_cookie(e)>=t)return!0;o+=parseInt(this.get_cookie(e))}return this.set_cookie(e,o),!1},count_up:function(e,t){var o=1;this.cookie_exists(e)&&(o+=parseInt(this.get_cookie(e))),this.set_cookie(e,o)},set_cookie_exists:function(e){return!!get_cookie(e)||(set_cookie(e,"",0),!1)},get_cookie:function(e){var t,o,a,n=document.cookie.split(";");for(t=0;t<n.length;t++)if(o=n[t].substr(0,n[t].indexOf("=")),a=n[t].substr(n[t].indexOf("=")+1),(o=o.replace(/^\s+|\s+$/g,""))===e)return decodeURIComponent(a)},set_cookie:function(e,t,o,a,n,i){var s=null==o?null:24*o*60*60;this.set_cookie_sec(e,t,s,a,n,i)},set_cookie_sec:function(e,t,o,a,n,i){var s=new Date;s.setSeconds(s.getSeconds()+parseInt(o)),document.cookie=e+"="+encodeURIComponent(t)+(null==o?"":"; expires="+s.toUTCString())+(null==a?"; path=/":"; path="+a)+(null==n?"":"; domain="+n)+(null==i?"":"; secure")},cookie_exists:function(e){var t=this.get_cookie(e);return null!==t&&""!==t&&void 0!==t},move:function(e,t,o){var a=jQuery(e),n=t;if(void 0===o&&(o={}),void 0===o.css&&(o.css={}),void 0===o.method&&(o.method="prependTo"),""===t&&void 0!==o.target&&"wrapper"===o.target){var i="left";void 0!==o.offset&&(i=o.offset),t=this.find_wrapper(e,i)}switch((t=void 0===o.moveintohidden?jQuery(t).filter(":visible"):jQuery(t)).length>1&&console.log("Advanced Ads: element '"+n+"' found "+t.length+" times."),o.method){case"insertBefore":a.insertBefore(t);break;case"insertAfter":a.insertAfter(t);break;case"appendTo":a.appendTo(t);break;default:a.prependTo(t)}},set_parent_relative:function(e,t){t=void 0!==t?t:{};var o=jQuery(e).parent();t.use_grandparent&&(o=o.parent()),"static"!==o.css("position")&&""!==o.css("position")||o.css("position","relative")},fix_element:function(e,t){t=void 0!==t?t:{};var o=jQuery(e);t.use_grandparent?this.set_parent_relative(o.parent()):this.set_parent_relative(o),t.is_invisible&&o.show();var a=parseInt(o.offset().top),n=parseInt(o.offset().left);if(t.is_invisible&&o.hide(),"left"===t.offset){var i=jQuery(window).width()-n-o.outerWidth();o.css("position","fixed").css("top",a+"px").css("right",i+"px").css("left","")}else o.css("position","fixed").css("top",a+"px").css("left",n+"px").css("right","")},find_wrapper:function(e,t){var o;return jQuery("body").children().each((function(a,n){if(n.id!==e.substring(1)){var i=jQuery(n);if("right"===t&&i.offset().left+jQuery(i).width()<jQuery(window).width()||"left"===t&&i.offset().left>0)return"static"!==i.css("position")&&""!==i.css("position")||i.css("position","relative"),o=n,!1}})),o},center_fixed_element:function(e){var t=jQuery(e),o=jQuery(window).width()/2-parseInt(t.css("width"))/2;t.css("left",o+"px")},center_vertically:function(e){var t=jQuery(e),o=jQuery(window).height()/2-parseInt(t.css("height"))/2;"fixed"!==t.css("position")&&(o-=topoffset=parseInt(t.offset().top)),t.css("top",o+"px")},close:function(e){jQuery(e).remove()},wait_for_images:function(e,t){var o=0,a=[];e.find('img[src][src!=""]').each((function(){a.push(this.src)})),0===a.length&&t.call(e),jQuery.each(a,(function(n,i){var s=new Image;s.src=i;var r="load error";jQuery(s).one(r,(function n(i){if(jQuery(this).off(r,n),++o==a.length)return t.call(e[0]),!1}))}))},privacy:{state:"unknown",state_executed:!1,get_state:function(){if("unknown"!==window.advads_options.privacy.state)return advads.privacy.state_executed||(advads.privacy.state_executed=!0,advads.privacy.dispatch_event(window.advads_options.privacy.state,!1)),advads.privacy.state;if("custom"===window.advads_options.privacy["consent-method"]){var e=new RegExp(".*?"+window.advads_options.privacy["custom-cookie-value"]+"[^;]*?"),t=advads.get_cookie(window.advads_options.privacy["custom-cookie-name"])||"";advads.privacy.state_executed||(advads.privacy.state_executed=!0,advads.privacy.dispatch_event(t.match(e)?"accepted":"unknown",!0))}advads.privacy.state_executed=!0;var o=0,a=setInterval((function(){switch(600==++o&&clearInterval(a),window.advads_options.privacy["consent-method"]){case"custom":(advads.get_cookie(window.advads_options.privacy["custom-cookie-name"])||"").match(e)&&(clearInterval(a),"accepted"!==advads.privacy.state&&advads.privacy.dispatch_event("accepted",!0));break;case"iab_tcf_20":if(void 0===window.__tcfapi)return;clearInterval(a),window.__tcfapi("addEventListener",2,(function(e,t){if(t&&("tcloaded"===e.eventStatus||"useractioncomplete"===e.eventStatus||null===e.eventStatus&&void 0!==window.googlefc&&(void 0!==e.purpose||!e.gdprApplies))){var o="useractioncomplete"===e.eventStatus;if(!e.gdprApplies)return void("not_needed"!==advads.privacy.state&&advads.privacy.dispatch_event("not_needed",o));if(e.purpose.consents[1])return void("accepted"!==advads.privacy.state&&advads.privacy.dispatch_event("accepted",o));"rejected"!==advads.privacy.state&&advads.privacy.dispatch_event("rejected",o)}}))}}),100);return advads.privacy.state},is_adsense_npa_enabled:function(){return!window.advads_options||!window.advads_options.privacy||!(!window.advads_options.privacy["show-non-personalized-adsense"]||"custom"!==window.advads_options.privacy["consent-method"])},dispatch_event:function(e,t){var o=advads.privacy.state;advads.privacy.state=e,console.log({state:e,previousState:o,userAction:t}),window.advanced_ads_ready_queue.push((function(){document.dispatchEvent(new CustomEvent("advanced_ads_privacy",{detail:{state:e,previousState:o,userAction:t}}))}))},is_ad_decoded:function(e){return null===document.querySelector('script[data-tcf="waiting-for-consent"][data-id="'+e+'"]')},decode_ad:function(e,t){t="boolean"!=typeof t||t;var o=decodeURIComponent(Array.prototype.map.call(atob(e.textContent),(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""));if(!t)return o;e.replaceWith(document.createRange().createContextualFragment(o))}}},window.advanced_ads_ready_queue.push(advads.privacy.get_state),document.addEventListener("advanced_ads_privacy",(function(e){"accepted"!==e.detail.state&&"not_needed"!==e.detail.state||e.detail.userAction||"loading"===document.readyState||document.querySelectorAll('script[type="text/plain"][data-tcf="waiting-for-consent"]').forEach(advads.privacy.decode_ad)}))})();1 !function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}!function(){if("function"!=typeof window.CustomEvent){window.CustomEvent=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:null};var o=document.createEvent("CustomEvent");return o.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),o}}function t(){var t,o=this.parentNode,a=arguments.length;if(o)for(a||o.removeChild(this);a--;)"object"!==e(t=arguments[a])?t=this.ownerDocument.createTextNode(t):t.parentNode&&t.parentNode.removeChild(t),a?o.insertBefore(t,this.nextSibling):o.replaceChild(t,this)}Element.prototype.replaceWith||(Element.prototype.replaceWith=t),CharacterData.prototype.replaceWith||(CharacterData.prototype.replaceWith=t),DocumentType.prototype.replaceWith||(DocumentType.prototype.replaceWith=t),window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(e,t){var o,a=this.length;for(t=t||window,o=0;o<a;o++)e.call(t,this[o],o,this)})}(),advads={supports_localstorage:function(){"use strict";try{return!(!window||void 0===window.localStorage)&&(window.localStorage.setItem("x","x"),window.localStorage.removeItem("x"),!0)}catch(e){return!1}},max_per_session:function(e,t){var o=1;if(void 0!==t&&0!==parseInt(t)||(t=1),this.cookie_exists(e)){if(this.get_cookie(e)>=t)return!0;o+=parseInt(this.get_cookie(e))}return this.set_cookie(e,o),!1},count_up:function(e,t){var o=1;this.cookie_exists(e)&&(o+=parseInt(this.get_cookie(e))),this.set_cookie(e,o)},set_cookie_exists:function(e){return!!get_cookie(e)||(set_cookie(e,"",0),!1)},get_cookie:function(e){var t,o,a,n=document.cookie.split(";");for(t=0;t<n.length;t++)if(o=n[t].substr(0,n[t].indexOf("=")),a=n[t].substr(n[t].indexOf("=")+1),(o=o.replace(/^\s+|\s+$/g,""))===e)return decodeURIComponent(a)},set_cookie:function(e,t,o,a,n,i){var s=null==o?null:24*o*60*60;this.set_cookie_sec(e,t,s,a,n,i)},set_cookie_sec:function(e,t,o,a,n,i){var s=new Date;s.setSeconds(s.getSeconds()+parseInt(o)),document.cookie=e+"="+encodeURIComponent(t)+(null==o?"":"; expires="+s.toUTCString())+(null==a?"; path=/":"; path="+a)+(null==n?"":"; domain="+n)+(null==i?"":"; secure")},cookie_exists:function(e){var t=this.get_cookie(e);return null!==t&&""!==t&&void 0!==t},move:function(e,t,o){var a=jQuery(e),n=t;if(void 0===o&&(o={}),void 0===o.css&&(o.css={}),void 0===o.method&&(o.method="prependTo"),""===t&&void 0!==o.target&&"wrapper"===o.target){var i="left";void 0!==o.offset&&(i=o.offset),t=this.find_wrapper(e,i)}switch((t=void 0===o.moveintohidden?jQuery(t).filter(":visible"):jQuery(t)).length>1&&console.log("Advanced Ads: element '"+n+"' found "+t.length+" times."),o.method){case"insertBefore":a.insertBefore(t);break;case"insertAfter":a.insertAfter(t);break;case"appendTo":a.appendTo(t);break;default:a.prependTo(t)}},set_parent_relative:function(e,t){t=void 0!==t?t:{};var o=jQuery(e).parent();t.use_grandparent&&(o=o.parent()),"static"!==o.css("position")&&""!==o.css("position")||o.css("position","relative")},fix_element:function(e,t){t=void 0!==t?t:{};var o=jQuery(e);t.use_grandparent?this.set_parent_relative(o.parent()):this.set_parent_relative(o),t.is_invisible&&o.show();var a=parseInt(o.offset().top),n=parseInt(o.offset().left);if(t.is_invisible&&o.hide(),"left"===t.offset){var i=jQuery(window).width()-n-o.outerWidth();o.css("position","fixed").css("top",a+"px").css("right",i+"px").css("left","")}else o.css("position","fixed").css("top",a+"px").css("left",n+"px").css("right","")},find_wrapper:function(e,t){var o;return jQuery("body").children().each((function(a,n){if(n.id!==e.substring(1)){var i=jQuery(n);if("right"===t&&i.offset().left+jQuery(i).width()<jQuery(window).width()||"left"===t&&i.offset().left>0)return"static"!==i.css("position")&&""!==i.css("position")||i.css("position","relative"),o=n,!1}})),o},center_fixed_element:function(e){var t=jQuery(e),o=jQuery(window).width()/2-parseInt(t.css("width"))/2;t.css("left",o+"px")},center_vertically:function(e){var t=jQuery(e),o=jQuery(window).height()/2-parseInt(t.css("height"))/2;"fixed"!==t.css("position")&&(o-=topoffset=parseInt(t.offset().top)),t.css("top",o+"px")},close:function(e){jQuery(e).remove()},wait_for_images:function(e,t){var o=0,a=[];e.find('img[src][src!=""]').each((function(){a.push(this.src)})),0===a.length&&t.call(e),jQuery.each(a,(function(n,i){var s=new Image;s.src=i;var r="load error";jQuery(s).one(r,(function n(i){if(jQuery(this).off(r,n),++o==a.length)return t.call(e[0]),!1}))}))},privacy:{state:"unknown",state_executed:!1,get_state:function(){if("unknown"!==window.advads_options.privacy.state)return advads.privacy.state_executed||(advads.privacy.state_executed=!0,advads.privacy.dispatch_event(window.advads_options.privacy.state,!1)),advads.privacy.state;if("custom"===window.advads_options.privacy["consent-method"]){var e=new RegExp(".*?"+window.advads_options.privacy["custom-cookie-value"]+"[^;]*?"),t=advads.get_cookie(window.advads_options.privacy["custom-cookie-name"])||"";advads.privacy.state_executed||(advads.privacy.state_executed=!0,advads.privacy.dispatch_event(t.match(e)?"accepted":"unknown",!0))}advads.privacy.state_executed=!0;var o=0,a=setInterval((function(){switch(600==++o&&clearInterval(a),window.advads_options.privacy["consent-method"]){case"custom":(advads.get_cookie(window.advads_options.privacy["custom-cookie-name"])||"").match(e)&&(clearInterval(a),"accepted"!==advads.privacy.state&&advads.privacy.dispatch_event("accepted",!0));break;case"iab_tcf_20":if(void 0===window.__tcfapi)return;clearInterval(a),window.__tcfapi("addEventListener",2,(function(e,t){if(t&&("tcloaded"===e.eventStatus||"useractioncomplete"===e.eventStatus||null===e.eventStatus&&void 0!==window.googlefc&&(void 0!==e.purpose||!e.gdprApplies))){var o="useractioncomplete"===e.eventStatus;if(!e.gdprApplies)return void("not_needed"!==advads.privacy.state&&advads.privacy.dispatch_event("not_needed",o));if(e.purpose.consents[1])return void("accepted"!==advads.privacy.state&&advads.privacy.dispatch_event("accepted",o));"rejected"!==advads.privacy.state&&advads.privacy.dispatch_event("rejected",o)}}))}}),100);return advads.privacy.state},is_adsense_npa_enabled:function(){return!window.advads_options||!window.advads_options.privacy||!(!window.advads_options.privacy["show-non-personalized-adsense"]||"custom"!==window.advads_options.privacy["consent-method"])},dispatch_event:function(e,t){var o=advads.privacy.state;advads.privacy.state=e,console.log({state:e,previousState:o,userAction:t}),window.advanced_ads_ready_queue.push((function(){document.dispatchEvent(new CustomEvent("advanced_ads_privacy",{detail:{state:e,previousState:o,userAction:t}}))}))},is_ad_decoded:function(e){return null===document.querySelector('script[data-tcf="waiting-for-consent"][data-id="'+e+'"]')},decode_ad:function(e,t){t="boolean"!=typeof t||t;var o=decodeURIComponent(Array.prototype.map.call(atob(e.textContent),(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""));if(!t)return o;e.replaceWith(document.createRange().createContextualFragment(o))}}},window.advanced_ads_ready_queue.push(advads.privacy.get_state),document.addEventListener("advanced_ads_privacy",(function(e){"accepted"!==e.detail.state&&"not_needed"!==e.detail.state||e.detail.userAction||"loading"===document.readyState||document.querySelectorAll('script[type="text/plain"][data-tcf="waiting-for-consent"]').forEach(advads.privacy.decode_ad)}))}(); -
advanced-ads/tags/1.51.2/public/class-advanced-ads.php
r3041809 r3050336 562 562 563 563 // Do not inject on admin pages. 564 if ( is_admin() && ! defined( 'DOING_AJAX' ) ) { 564 if ( is_admin() && ! wp_doing_ajax() ) { 565 return $content; 566 } 567 568 // Do not inject in writing REST requests. 569 if ( WordPress::is_gutenberg_writing_request() && WordPress::is_rest_request() ) { 565 570 return $content; 566 571 } -
advanced-ads/tags/1.51.2/readme.txt
r3043146 r3050336 5 5 Tested up to: 6.4 6 6 Requires PHP: 7.2 7 Stable tag: 1.51. 17 Stable tag: 1.51.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 339 339 == Changelog == 340 340 341 = 1.51.2 (March 13, 2024) = 342 343 - Improvement: enhance compatibility with PHP 8.3 344 - Fix: resolve smaller style issues on the dashboard page 345 - Fix: resolve an issue preventing the deletion of groups 346 - Fix: correct an issue where saving in Gutenberg occasionally caused an error 347 341 348 = 1.51.1 (February 29, 2024) = 342 349 -
advanced-ads/tags/1.51.2/views/admin/screens/dashboard.php
r2983598 r3050336 10 10 <div class="wrap"> 11 11 <div id="advads-overview"> 12 <?php AdvancedAds\Modules\ProductExperimentationFramework\Module::get_instance()->render( 'overview' ); ?> 12 13 <?php Advanced_Ads_Overview_Widgets_Callbacks::setup_overview_widgets(); ?> 13 14 </div> -
advanced-ads/trunk/admin/views/support.php
r2986093 r3050336 68 68 <?php endif; ?> 69 69 </div> 70 <?php AdvancedAds\Modules\ProductExperimentationFramework\Module::get_instance()->render( 'support' ); ?> -
advanced-ads/trunk/advanced-ads.php
r3043146 r3050336 13 13 * Plugin URI: https://wpadvancedads.com 14 14 * Description: Manage and optimize your ads in WordPress 15 * Version: 1.51. 115 * Version: 1.51.2 16 16 * Author: Advanced Ads GmbH 17 17 * Author URI: https://wpadvancedads.com … … 34 34 35 35 define( 'ADVADS_FILE', __FILE__ ); 36 define( 'ADVADS_VERSION', '1.51. 1' );36 define( 'ADVADS_VERSION', '1.51.2' ); 37 37 38 38 // Load the autoloader. -
advanced-ads/trunk/assets/css/app.css
r3041809 r3050336 1 /*! tailwindcss v3.3.7 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-feature-settings:normal;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:initial}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:initial;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:initial}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*,::backdrop,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.\!mr-2{margin-right:.5rem!important}.\!mt-1{margin-top:.25rem!important}.mb-6{margin-bottom:1.5rem}.inline{display:inline}.flex{display:flex}.table{display:table}.grid{display:grid}.hidden{display:none}.w-full{width:100%}.items-center{align-items:center}.gap-x-4{column-gap:1rem}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.self-start{align-self:flex-start}.text-base{font-size:1rem;line-height:1.5rem}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.lds-ripple{display:none;height:40px;position:relative;width:40px}.lds-ripple.show{display:inline-block}.lds-ripple div{animation:lds-ripple 1s cubic-bezier(0,.2,.8,1) infinite;border:4px solid #ccc;border-radius:50%;opacity:1;position:absolute}.lds-ripple div:nth-child(2){animation-delay:-.5s}@keyframes lds-ripple{0%{height:0;left:20px;opacity:0;top:20px;width:0}4.9%{height:0;left:20px;opacity:0;top:20px;width:0}5%{height:0;left:20px;opacity:1;top:20px;width:0}to{height:40px;left:0;opacity:0;top:0;width:40px}}.advads-ui-switch{align-items:center;cursor:pointer;display:inline-flex;position:relative}.advads-ui-switch-list>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1.25rem*var(--tw-space-y-reverse));margin-top:calc(1.25rem*(1 - var(--tw-space-y-reverse)))}.advads-ui-switch input{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.advads-ui-switch input:checked~div{--tw-bg-opacity:1;background-color:rgb(4 116 162/var(--tw-bg-opacity))}.advads-ui-switch input:checked~div:after{--tw-translate-x:100%;--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity));content:var(--tw-content);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.advads-ui-switch input:disabled~div:after{--tw-border-opacity:1;--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity));border-color:rgb(229 231 235/var(--tw-border-opacity));content:var(--tw-content)}.advads-ui-switch div{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity));border-radius:9999px;height:1.5rem;width:2.75rem}.advads-ui-switch div:after{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-content:"";background-color:rgb(255 255 255/var(--tw-bg-opacity));border-color:rgb(209 213 219/var(--tw-border-opacity));border-radius:9999px;border-width:1px;content:var(--tw-content);height:1.25rem;left:2px;position:absolute;top:.125rem;transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);width:1.25rem}.advads-ui-switch span{font-size:.875rem;font-weight:500;line-height:1.25rem;margin-left:.75rem}#advads-m2-connect{display:none}#advads-m2-connect a{--tw-text-opacity:1;color:rgb(4 116 162/var(--tw-text-opacity))}1 .sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.\!mr-2{margin-right:.5rem!important}.\!mt-1{margin-top:.25rem!important}.mb-6{margin-bottom:1.5rem}.inline{display:inline}.flex{display:flex}.table{display:table}.grid{display:grid}.hidden{display:none}.w-full{width:100%}.items-center{align-items:center}.gap-x-4{column-gap:1rem}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.self-start{align-self:flex-start}.text-base{font-size:1rem;line-height:1.5rem}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.lds-ripple{display:none;height:40px;position:relative;width:40px}.lds-ripple.show{display:inline-block}.lds-ripple div{animation:lds-ripple 1s cubic-bezier(0,.2,.8,1) infinite;border:4px solid #ccc;border-radius:50%;opacity:1;position:absolute}.lds-ripple div:nth-child(2){animation-delay:-.5s}@keyframes lds-ripple{0%{height:0;left:20px;opacity:0;top:20px;width:0}4.9%{height:0;left:20px;opacity:0;top:20px;width:0}5%{height:0;left:20px;opacity:1;top:20px;width:0}to{height:40px;left:0;opacity:0;top:0;width:40px}}.advads-ui-switch{align-items:center;cursor:pointer;display:inline-flex;position:relative}.advads-ui-switch-list>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1.25rem*var(--tw-space-y-reverse));margin-top:calc(1.25rem*(1 - var(--tw-space-y-reverse)))}.advads-ui-switch input{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.advads-ui-switch input:checked~div{--tw-bg-opacity:1;background-color:rgb(4 116 162/var(--tw-bg-opacity))}.advads-ui-switch input:checked~div:after{--tw-translate-x:100%;--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity));content:var(--tw-content);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.advads-ui-switch input:disabled~div:after{--tw-border-opacity:1;--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity));border-color:rgb(229 231 235/var(--tw-border-opacity));content:var(--tw-content)}.advads-ui-switch div{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity));border-radius:9999px;height:1.5rem;width:2.75rem}.advads-ui-switch div:after{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-content:"";background-color:rgb(255 255 255/var(--tw-bg-opacity));border-color:rgb(209 213 219/var(--tw-border-opacity));border-radius:9999px;border-width:1px;content:var(--tw-content);height:1.25rem;left:2px;position:absolute;top:.125rem;transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);width:1.25rem}.advads-ui-switch span{font-size:.875rem;font-weight:500;line-height:1.25rem;margin-left:.75rem}#advads-m2-connect{display:none}#advads-m2-connect a{--tw-text-opacity:1;color:rgb(4 116 162/var(--tw-text-opacity))} -
advanced-ads/trunk/assets/js/app.js
r3041809 r3050336 1 (()=>{"use strict";var t,e={999:(t,e,n)=>{const a=jQuery;var o=n.n(a);function s(){var t,e,n,a,s;t=o()(".js-pubguru-connect"),e=t.next(".aa-spinner"),n=o()("#advads-m2-connect"),o()(".js-m2-show-consent").on("click",".button",(function(t){t.preventDefault();var e=o()(this).closest("tr");n.show(),e.addClass("hidden"),e.next().removeClass("hidden")})),o()(".js-pubguru-disconnect").on("click",".button",(function(t){t.preventDefault();var e=o()(this).closest("tr");n.hide(),e.addClass("hidden"),e.prev().removeClass("hidden"),o().ajax({type:"POST",url:ajaxurl,data:{action:"pubguru_disconnect",nonce:advadsglobal.ajax_nonce},dataType:"json"}).done((function(t){if(t.success){var n=o()('<div class="notice notice-success" />');n.html("<p>"+t.data.message+"</p>"),e.closest(".postbox").after(n),setTimeout((function(){n.fadeOut(500,(function(){n.remove()}))}),3e3)}}))})),o()("#m2-connect-consent").on("change",(function(){var e=o()(this);t.prop("disabled",!e.is(":checked"))})),o()("#advads-overview").on("click",".notice-dismiss",(function(t){t.preventDefault();var e=o()(this).parent();e.fadeOut(500,(function(){e.remove()}))})),t.on("click",(function(n){n.preventDefault(),e.addClass("show"),o().ajax({type:"POST",url:ajaxurl,data:{action:"pubguru_connect",nonce:advadsglobal.ajax_nonce},dataType:"json"}).done((function(t){t.success&&(o()(".pubguru-not-connected").hide(),o()(".pubguru-connected").removeClass("hidden"),o()(".pg-tc-trail").toggle(!t.data.hasTrafficCop),o()(".pg-tc-install").toggle(t.data.hasTrafficCop))})).fail((function(e){var n=e.responseJSON,a=o()('<div class="notice notice-error is-dismissible" />');a.html("<p>"+n.data+'</p><button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button>'),t.closest(".postbox").after(a)})).complete((function(){return e.removeClass("show")}))})),a=o()("#pubguru-modules"),s=o()("#pubguru-notices"),a.on("input","input:checkbox",(function(){var t=o()(this),e=t.attr("name"),n=t.is(":checked");o().ajax({url:a.attr("action"),method:"POST",data:{action:"pubguru_module_change",security:a.data("security"),module:e,status:n}}).done((function(t){var e=t.data.notice,n=void 0===e?"":e;s.html(""),""!==n&&s.html(n)}))})),s.on("click",".js-btn-backup-adstxt",(function(){var t=o()(this);t.prop("disabled",!0),t.html(t.data("loading")),o().ajax({url:a.attr("action"),method:"POST",data:{action:"pubguru_backup_ads_txt",security:t.data("security")}}).done((function(e){e.success?(t.html(t.data("done")),setTimeout((function(){s.fadeOut("slow",(function(){s.html("")}))}),4e3)):t.html(t.data("text"))})).fail((function(){t.html(t.data("text"))}))}))}o()((function(){s()}))},51:()=>{}},n={};function a(t){var o=n[t];if(void 0!==o)return o.exports;var s=n[t]={exports:{}};return e[t](s,s.exports,a),s.exports}a.m=e,t=[],a.O=(e,n,o,s)=>{if(!n){var c=1/0;for(d=0;d<t.length;d++){for(var[n,o,s]=t[d],i=!0,r=0;r<n.length;r++)(!1&s||c>=s)&&Object.keys(a.O).every((t=>a.O[t](n[r])))?n.splice(r--,1):(i=!1,s<c&&(c=s));if(i){t.splice(d--,1);var u=o();void 0!==u&&(e=u)}}return e}s=s||0;for(var d=t.length;d>0&&t[d-1][2]>s;d--)t[d]=t[d-1];t[d]=[n,o,s]},a.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return a.d(e,{a:e}),e},a.d=(t,e)=>{for(var n in e)a.o(e,n)&&!a.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t={449:0,464:0};a.O.j=e=>0===t[e];var e=(e,n)=>{var o,s,[c,i,r]=n,u=0;if(c.some((e=>0!==t[e]))){for(o in i)a.o(i,o)&&(a.m[o]=i[o]);if(r)var d=r(a)}for(e&&e(n);u<c.length;u++)s=c[u],a.o(t,s)&&t[s]&&t[s][0](),t[s]=0;return a.O(d)},n=globalThis.webpackChunkadvanced_ads=globalThis.webpackChunkadvanced_ads||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))})(),a.O(void 0,[464],(()=>a(999)));var o=a.O(void 0,[464],(()=>a(51)));o=a.O(o)})();1 !function(){"use strict";var t,n={999:function(t,n,e){var a=jQuery,o=e.n(a);function c(){var t,n,e,a,c;t=o()(".js-pubguru-connect"),n=t.next(".aa-spinner"),e=o()("#advads-m2-connect"),o()(".js-m2-show-consent").on("click",".button",(function(t){t.preventDefault();var n=o()(this).closest("tr");e.show(),n.addClass("hidden"),n.next().removeClass("hidden")})),o()(".js-pubguru-disconnect").on("click",".button",(function(t){t.preventDefault();var n=o()(this).closest("tr");e.hide(),n.addClass("hidden"),n.prev().removeClass("hidden"),o().ajax({type:"POST",url:ajaxurl,data:{action:"pubguru_disconnect",nonce:advadsglobal.ajax_nonce},dataType:"json"}).done((function(t){if(t.success){var e=o()('<div class="notice notice-success" />');e.html("<p>"+t.data.message+"</p>"),n.closest(".postbox").after(e),setTimeout((function(){e.fadeOut(500,(function(){e.remove()}))}),3e3)}}))})),o()("#m2-connect-consent").on("change",(function(){var n=o()(this);t.prop("disabled",!n.is(":checked"))})),o()("#advads-overview").on("click",".notice-dismiss",(function(t){t.preventDefault();var n=o()(this).parent();n.fadeOut(500,(function(){n.remove()}))})),t.on("click",(function(e){e.preventDefault(),n.addClass("show"),o().ajax({type:"POST",url:ajaxurl,data:{action:"pubguru_connect",nonce:advadsglobal.ajax_nonce},dataType:"json"}).done((function(t){t.success&&(o()(".pubguru-not-connected").hide(),o()(".pubguru-connected").removeClass("hidden"),o()(".pg-tc-trail").toggle(!t.data.hasTrafficCop),o()(".pg-tc-install").toggle(t.data.hasTrafficCop))})).fail((function(n){var e=n.responseJSON,a=o()('<div class="notice notice-error is-dismissible" />');a.html("<p>"+e.data+'</p><button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button>'),t.closest(".postbox").after(a)})).complete((function(){return n.removeClass("show")}))})),a=o()("#pubguru-modules"),c=o()("#pubguru-notices"),a.on("input","input:checkbox",(function(){var t=o()(this),n=t.attr("name"),e=t.is(":checked");o().ajax({url:a.attr("action"),method:"POST",data:{action:"pubguru_module_change",security:a.data("security"),module:n,status:e}}).done((function(t){var n=t.data.notice,e=void 0===n?"":n;c.html(""),""!==e&&c.html(e)}))})),c.on("click",".js-btn-backup-adstxt",(function(){var t=o()(this);t.prop("disabled",!0),t.html(t.data("loading")),o().ajax({url:a.attr("action"),method:"POST",data:{action:"pubguru_backup_ads_txt",security:t.data("security")}}).done((function(n){n.success?(t.html(t.data("done")),setTimeout((function(){c.fadeOut("slow",(function(){c.html("")}))}),4e3)):t.html(t.data("text"))})).fail((function(){t.html(t.data("text"))}))}))}o()((function(){c()}))},51:function(){}},e={};function a(t){var o=e[t];if(void 0!==o)return o.exports;var c=e[t]={exports:{}};return n[t](c,c.exports,a),c.exports}a.m=n,t=[],a.O=function(n,e,o,c){if(!e){var u=1/0;for(d=0;d<t.length;d++){e=t[d][0],o=t[d][1],c=t[d][2];for(var s=!0,i=0;i<e.length;i++)(!1&c||u>=c)&&Object.keys(a.O).every((function(t){return a.O[t](e[i])}))?e.splice(i--,1):(s=!1,c<u&&(u=c));if(s){t.splice(d--,1);var r=o();void 0!==r&&(n=r)}}return n}c=c||0;for(var d=t.length;d>0&&t[d-1][2]>c;d--)t[d]=t[d-1];t[d]=[e,o,c]},a.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(n,{a:n}),n},a.d=function(t,n){for(var e in n)a.o(n,e)&&!a.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})},a.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},function(){var t={449:0,464:0};a.O.j=function(n){return 0===t[n]};var n=function(n,e){var o,c,u=e[0],s=e[1],i=e[2],r=0;if(u.some((function(n){return 0!==t[n]}))){for(o in s)a.o(s,o)&&(a.m[o]=s[o]);if(i)var d=i(a)}for(n&&n(e);r<u.length;r++)c=u[r],a.o(t,c)&&t[c]&&t[c][0](),t[c]=0;return a.O(d)},e=self.webpackChunkadvanced_ads=self.webpackChunkadvanced_ads||[];e.forEach(n.bind(null,0)),e.push=n.bind(null,e.push.bind(e))}(),a.O(void 0,[464],(function(){return a(999)}));var o=a.O(void 0,[464],(function(){return a(51)}));o=a.O(o)}(); -
advanced-ads/trunk/assets/scss/partials/_tailwind.scss
r3041809 r3050336 1 @tailwind base;2 1 @tailwind components; 3 2 @tailwind utilities; -
advanced-ads/trunk/includes/admin/pages/class-groups.php
r3043146 r3050336 50 50 51 51 add_action( 'in_admin_header', [ $this, 'get_list_table' ] ); 52 add_action( 'admin_init', [ $this, 'admin_init' ] ); 52 if ( 'advanced-ads-groups' === Params::get( 'page' ) ) { 53 add_action( 'admin_init', [ $this, 'admin_init' ] ); 54 } 53 55 } 54 56 … … 60 62 public function admin_init() { 61 63 if ( 62 ( ! Params::post( 'advads-group-update-nonce' ) && ! Params::post( 'advads-group-add-nonce' ) ) 63 || ( 'delete' === Params::get( 'action' ) && 'advanced-ads-groups' !== Params::get( 'page' ) ) 64 'advanced-ads-groups' !== Params::get( 'page' ) 65 && ! Params::post( 'advads-group-update-nonce' ) 66 && ! Params::post( 'advads-group-add-nonce' ) 67 && 'delete' === Params::get( 'action' ) 64 68 ) { 65 69 // Just skip if no group created, deleted, or edited. -
advanced-ads/trunk/includes/utilities/class-wordpress.php
r3041809 r3050336 89 89 return $domain; 90 90 } 91 92 /** 93 * Returns true if the current request is a REST request. 94 * 95 * @return bool 96 */ 97 public static function is_rest_request(): bool { 98 $request = Params::server( 'REQUEST_URI' ); 99 if ( empty( $request ) ) { 100 return false; 101 } 102 103 return false !== strpos( $request, trailingslashit( rest_get_url_prefix() ) ); 104 } 105 106 /** 107 * Returns true if a REST request has an Advanced Ads endpoint. 108 * 109 * @return bool 110 */ 111 public static function is_gutenberg_writing_request(): bool { 112 global $wp; 113 $rest_route = $wp->query_vars['rest_route'] ?? ''; 114 115 $is_writing = in_array( Params::server( 'REQUEST_METHOD' ), [ 'POST', 'PUT' ], true ); 116 $is_gutenberg = strpos( $rest_route, '/wp/v2/posts' ) !== false || strpos( $rest_route, '/wp/v2/pages' ) !== false; 117 118 return $is_gutenberg && $is_writing; 119 } 91 120 } -
advanced-ads/trunk/languages/advanced-ads.pot
r3043146 r3050336 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Advanced Ads 1.51. 0\n"5 "Project-Id-Version: Advanced Ads 1.51.1\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/advanced-ads/\n" 7 7 "Last-Translator: Thomas Maier <[email protected]>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2024-0 2-29T12:31:19+00:00\n"12 "POT-Creation-Date: 2024-03-13T09:10:08+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.6.0\n" … … 2934 2934 msgstr "" 2935 2935 2936 #: includes/admin/pages/class-groups.php:10 52936 #: includes/admin/pages/class-groups.php:109 2937 2937 msgid "Ad Group successfully created" 2938 2938 msgstr "" 2939 2939 2940 #: includes/admin/pages/class-groups.php:11 52940 #: includes/admin/pages/class-groups.php:119 2941 2941 msgid "Ad Groups successfully updated" 2942 2942 msgstr "" 2943 2943 2944 #: includes/admin/pages/class-groups.php:21 02945 #: includes/admin/pages/class-groups.php:2 392944 #: includes/admin/pages/class-groups.php:214 2945 #: includes/admin/pages/class-groups.php:243 2946 2946 msgid "Sorry, you are not allowed to access this feature." 2947 2947 msgstr "" 2948 2948 2949 #: includes/admin/pages/class-groups.php:22 12949 #: includes/admin/pages/class-groups.php:225 2950 2950 msgid "You attempted to edit an ad group that doesn’t exist. Perhaps it was deleted?" 2951 msgstr ""2952 2953 #: includes/admin/pages/class-groups.php:2512954 #: includes/admin/pages/class-groups.php:2792955 msgid "Invalid Ad Group"2956 2951 msgstr "" 2957 2952 2958 2953 #: includes/admin/pages/class-groups.php:255 2959 2954 #: includes/admin/pages/class-groups.php:283 2955 msgid "Invalid Ad Group" 2956 msgstr "" 2957 2958 #: includes/admin/pages/class-groups.php:259 2959 #: includes/admin/pages/class-groups.php:287 2960 2960 msgid "You don’t have permission to change the ad groups" 2961 2961 msgstr "" 2962 2962 2963 #: includes/admin/pages/class-groups.php:2 882963 #: includes/admin/pages/class-groups.php:292 2964 2964 msgid "No ad group created" 2965 2965 msgstr "" … … 4270 4270 msgstr "" 4271 4271 4272 #: public/class-advanced-ads.php:88 44272 #: public/class-advanced-ads.php:889 4273 4273 msgctxt "label above ads" 4274 4274 msgid "Advertisements" -
advanced-ads/trunk/lib/composer/autoload_classmap.php
r3041809 r3050336 78 78 'AdvancedAds\\Modules\\OneClick\\Traffic_Cop' => $baseDir . '/modules/one-click/modules/class-traffic-cop.php', 79 79 'AdvancedAds\\Modules\\OneClick\\Workflow' => $baseDir . '/modules/one-click/modules/class-workflow.php', 80 'AdvancedAds\\Modules\\ProductExperimentationFramework\\Module' => $baseDir . '/modules/pef/class-module.php', 80 81 'AdvancedAds\\Plugin' => $baseDir . '/includes/class-plugin.php', 81 82 'AdvancedAds\\Utilities\\Conditional' => $baseDir . '/includes/utilities/class-conditional.php', -
advanced-ads/trunk/lib/composer/autoload_static.php
r3041809 r3050336 108 108 'AdvancedAds\\Modules\\OneClick\\Traffic_Cop' => __DIR__ . '/../..' . '/modules/one-click/modules/class-traffic-cop.php', 109 109 'AdvancedAds\\Modules\\OneClick\\Workflow' => __DIR__ . '/../..' . '/modules/one-click/modules/class-workflow.php', 110 'AdvancedAds\\Modules\\ProductExperimentationFramework\\Module' => __DIR__ . '/../..' . '/modules/pef/class-module.php', 110 111 'AdvancedAds\\Plugin' => __DIR__ . '/../..' . '/includes/class-plugin.php', 111 112 'AdvancedAds\\Utilities\\Conditional' => __DIR__ . '/../..' . '/includes/utilities/class-conditional.php', -
advanced-ads/trunk/modules/adblock-finder/public/ga-adblock-counter.min.js
r3041809 r3050336 1 window.advanced_ads_check_adblocker=function(t){var n=[],e=null;function a(t){var n=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(t){return setTimeout(t,16)};n.call(window,t)}return a((function(){var t=document.createElement("div");t.innerHTML=" ",t.setAttribute("class","ad_unit ad-unit text-ad text_ad pub_300x250"),t.setAttribute("style","width: 1px !important; height: 1px !important; position: absolute !important; left: 0px !important; top: 0px !important; overflow: hidden !important;"),document.body.appendChild(t),a((function(){var a,o,i=null===(a=(o=window).getComputedStyle)||void 0===a?void 0:a.call(o,t),d=null==i?void 0:i.getPropertyValue("-moz-binding");e=i&&"none"===i.getPropertyValue("display")||"string"==typeof d&&-1!==d.indexOf("about:");for(var c=0,r=n.length;c<r;c++)n[c](e);n=[]}))})),function(t){"undefined"==typeof advanced_ads_adblocker_test&&(e=!0),null!==e?t(e):n.push(t)}}(), (()=>{function t(t){this.UID=t,this.analyticsObject="function"==typeof gtag;var n=this;return this.count=function(){gtag("event","AdBlock",{event_category:"Advanced Ads",event_label:"Yes",non_interaction:!0,send_to:n.UID})},function(){if(!n.analyticsObject){var e=document.createElement("script");e.src="https://www.googletagmanager.com/gtag/js?id="+t,e.async=!0,document.body.appendChild(e),window.dataLayer=window.dataLayer||[],window.gtag=function(){dataLayer.push(arguments)},n.analyticsObject=!0,gtag("js",new Date)}var a={send_page_view:!1,transport_type:"beacon"};window.advanced_ads_ga_anonymIP&&(a.anonymize_ip=!0),gtag("config",t,a)}(),this}advanced_ads_check_adblocker((function(n){n&&new t(advanced_ads_ga_UID).count()}))})();1 window.advanced_ads_check_adblocker=function(t){var n=[],e=null;function a(t){var n=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(t){return setTimeout(t,16)};n.call(window,t)}return a((function(){var t=document.createElement("div");t.innerHTML=" ",t.setAttribute("class","ad_unit ad-unit text-ad text_ad pub_300x250"),t.setAttribute("style","width: 1px !important; height: 1px !important; position: absolute !important; left: 0px !important; top: 0px !important; overflow: hidden !important;"),document.body.appendChild(t),a((function(){var a,o,i=null===(a=(o=window).getComputedStyle)||void 0===a?void 0:a.call(o,t),d=null==i?void 0:i.getPropertyValue("-moz-binding");e=i&&"none"===i.getPropertyValue("display")||"string"==typeof d&&-1!==d.indexOf("about:");for(var c=0,r=n.length;c<r;c++)n[c](e);n=[]}))})),function(t){"undefined"==typeof advanced_ads_adblocker_test&&(e=!0),null!==e?t(e):n.push(t)}}(),function(){function t(t){this.UID=t,this.analyticsObject="function"==typeof gtag;var n=this;return this.count=function(){gtag("event","AdBlock",{event_category:"Advanced Ads",event_label:"Yes",non_interaction:!0,send_to:n.UID})},function(){if(!n.analyticsObject){var e=document.createElement("script");e.src="https://www.googletagmanager.com/gtag/js?id="+t,e.async=!0,document.body.appendChild(e),window.dataLayer=window.dataLayer||[],window.gtag=function(){dataLayer.push(arguments)},n.analyticsObject=!0,gtag("js",new Date)}var a={send_page_view:!1,transport_type:"beacon"};window.advanced_ads_ga_anonymIP&&(a.anonymize_ip=!0),gtag("config",t,a)}(),this}advanced_ads_check_adblocker((function(n){n&&new t(advanced_ads_ga_UID).count()}))}(); -
advanced-ads/trunk/modules/gadsense/includes/adsense-report-data.php
r2821980 r3050336 106 106 107 107 /** 108 * Returns serialized object properties.109 * 110 * @return string the serialized data.111 */ 112 public function serialize() {113 return serialize([108 * Serialize an instance of this class into a string. For PHP version >= 7.4 109 * 110 * @return array 111 */ 112 public function __serialize() { 113 return [ 114 114 'earnings' => $this->earnings, 115 115 'type' => $this->type, … … 117 117 'currency' => $this->currency, 118 118 'domains' => $this->domains, 119 ] ); 120 } 121 122 /** 123 * Set object properties from serialized data string. 119 ]; 120 } 121 122 /** 123 * Recreate an instance of this class from a string. For PHP version >= 7.4 124 * 125 * @param array $data the array from __serialize. 126 * 127 * @return void 128 */ 129 public function __unserialize( $data ) { 130 $this->earnings = $data['earnings'] ?? null; 131 $this->type = $data['type'] ?? null; 132 $this->timestamp = $data['timestamp'] ?? 0; 133 $this->currency = $data['currency'] ?? ''; 134 $this->domains = $data['domains'] ?? []; 135 } 136 137 /** 138 * Returns serialized object properties. For PHP version < 7.4 139 * 140 * @return string the serialized data. 141 */ 142 public function serialize() { 143 return serialize( 144 [ 145 'earnings' => $this->earnings, 146 'type' => $this->type, 147 'timestamp' => $this->timestamp, 148 'currency' => $this->currency, 149 'domains' => $this->domains, 150 ] 151 ); 152 } 153 154 /** 155 * Set object properties from serialized data string. For PHP version < 7.4 124 156 * 125 157 * @param string $data serilaized data from DB. … … 131 163 $unwrapped = []; 132 164 } 133 134 $this->earnings = isset( $unwrapped['earnings'] ) ? $unwrapped['earnings'] : null; 135 $this->type = isset( $unwrapped['type'] ) ? $unwrapped['type'] : null; 136 $this->timestamp = isset( $unwrapped['timestamp'] ) ? $unwrapped['timestamp'] : 0; 137 $this->currency = isset( $unwrapped['currency'] ) ? $unwrapped['currency'] : ''; 138 $this->domains = isset( $unwrapped['domains'] ) ? $unwrapped['domains'] : []; 165 $this->__unserialize( $unwrapped ); 139 166 } 140 167 … … 201 228 return new self( $type ); 202 229 } 230 231 // PHP version < 7.4. 232 if ( $option instanceof self ) { 233 return $option; 234 } 235 203 236 try { 204 237 $unserialized = unserialize( $option ); -
advanced-ads/trunk/packages/composer/autoload_classmap.php
r3041809 r3050336 73 73 'AdvancedAds\\Modules\\OneClick\\Traffic_Cop' => $baseDir . '/modules/one-click/modules/class-traffic-cop.php', 74 74 'AdvancedAds\\Modules\\OneClick\\Workflow' => $baseDir . '/modules/one-click/modules/class-workflow.php', 75 'AdvancedAds\\Modules\\ProductExperimentationFramework\\Module' => $baseDir . '/modules/pef/class-module.php', 75 76 'AdvancedAds\\Plugin' => $baseDir . '/includes/class-plugin.php', 76 77 'AdvancedAds\\Utilities\\Conditional' => $baseDir . '/includes/utilities/class-conditional.php', -
advanced-ads/trunk/packages/composer/autoload_static.php
r3041809 r3050336 102 102 'AdvancedAds\\Modules\\OneClick\\Traffic_Cop' => __DIR__ . '/../..' . '/modules/one-click/modules/class-traffic-cop.php', 103 103 'AdvancedAds\\Modules\\OneClick\\Workflow' => __DIR__ . '/../..' . '/modules/one-click/modules/class-workflow.php', 104 'AdvancedAds\\Modules\\ProductExperimentationFramework\\Module' => __DIR__ . '/../..' . '/modules/pef/class-module.php', 104 105 'AdvancedAds\\Plugin' => __DIR__ . '/../..' . '/includes/class-plugin.php', 105 106 'AdvancedAds\\Utilities\\Conditional' => __DIR__ . '/../..' . '/includes/utilities/class-conditional.php', -
advanced-ads/trunk/packages/composer/installed.php
r3041809 r3050336 4 4 'pretty_version' => '1.42.1', 5 5 'version' => '1.42.1.0', 6 'reference' => null,6 'reference' => NULL, 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 34 34 'pretty_version' => '1.42.1', 35 35 'version' => '1.42.1.0', 36 'reference' => null,36 'reference' => NULL, 37 37 'type' => 'wordpress-plugin', 38 38 'install_path' => __DIR__ . '/../../', -
advanced-ads/trunk/public/assets/js/advanced.min.js
r3041809 r3050336 1 (()=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}!function(){if("function"!=typeof window.CustomEvent){window.CustomEvent=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:null};var o=document.createEvent("CustomEvent");return o.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),o}}function t(){var t,o=this.parentNode,a=arguments.length;if(o)for(a||o.removeChild(this);a--;)"object"!==e(t=arguments[a])?t=this.ownerDocument.createTextNode(t):t.parentNode&&t.parentNode.removeChild(t),a?o.insertBefore(t,this.nextSibling):o.replaceChild(t,this)}Element.prototype.replaceWith||(Element.prototype.replaceWith=t),CharacterData.prototype.replaceWith||(CharacterData.prototype.replaceWith=t),DocumentType.prototype.replaceWith||(DocumentType.prototype.replaceWith=t),window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(e,t){var o,a=this.length;for(t=t||window,o=0;o<a;o++)e.call(t,this[o],o,this)})}(),advads={supports_localstorage:function(){"use strict";try{return!(!window||void 0===window.localStorage)&&(window.localStorage.setItem("x","x"),window.localStorage.removeItem("x"),!0)}catch(e){return!1}},max_per_session:function(e,t){var o=1;if(void 0!==t&&0!==parseInt(t)||(t=1),this.cookie_exists(e)){if(this.get_cookie(e)>=t)return!0;o+=parseInt(this.get_cookie(e))}return this.set_cookie(e,o),!1},count_up:function(e,t){var o=1;this.cookie_exists(e)&&(o+=parseInt(this.get_cookie(e))),this.set_cookie(e,o)},set_cookie_exists:function(e){return!!get_cookie(e)||(set_cookie(e,"",0),!1)},get_cookie:function(e){var t,o,a,n=document.cookie.split(";");for(t=0;t<n.length;t++)if(o=n[t].substr(0,n[t].indexOf("=")),a=n[t].substr(n[t].indexOf("=")+1),(o=o.replace(/^\s+|\s+$/g,""))===e)return decodeURIComponent(a)},set_cookie:function(e,t,o,a,n,i){var s=null==o?null:24*o*60*60;this.set_cookie_sec(e,t,s,a,n,i)},set_cookie_sec:function(e,t,o,a,n,i){var s=new Date;s.setSeconds(s.getSeconds()+parseInt(o)),document.cookie=e+"="+encodeURIComponent(t)+(null==o?"":"; expires="+s.toUTCString())+(null==a?"; path=/":"; path="+a)+(null==n?"":"; domain="+n)+(null==i?"":"; secure")},cookie_exists:function(e){var t=this.get_cookie(e);return null!==t&&""!==t&&void 0!==t},move:function(e,t,o){var a=jQuery(e),n=t;if(void 0===o&&(o={}),void 0===o.css&&(o.css={}),void 0===o.method&&(o.method="prependTo"),""===t&&void 0!==o.target&&"wrapper"===o.target){var i="left";void 0!==o.offset&&(i=o.offset),t=this.find_wrapper(e,i)}switch((t=void 0===o.moveintohidden?jQuery(t).filter(":visible"):jQuery(t)).length>1&&console.log("Advanced Ads: element '"+n+"' found "+t.length+" times."),o.method){case"insertBefore":a.insertBefore(t);break;case"insertAfter":a.insertAfter(t);break;case"appendTo":a.appendTo(t);break;default:a.prependTo(t)}},set_parent_relative:function(e,t){t=void 0!==t?t:{};var o=jQuery(e).parent();t.use_grandparent&&(o=o.parent()),"static"!==o.css("position")&&""!==o.css("position")||o.css("position","relative")},fix_element:function(e,t){t=void 0!==t?t:{};var o=jQuery(e);t.use_grandparent?this.set_parent_relative(o.parent()):this.set_parent_relative(o),t.is_invisible&&o.show();var a=parseInt(o.offset().top),n=parseInt(o.offset().left);if(t.is_invisible&&o.hide(),"left"===t.offset){var i=jQuery(window).width()-n-o.outerWidth();o.css("position","fixed").css("top",a+"px").css("right",i+"px").css("left","")}else o.css("position","fixed").css("top",a+"px").css("left",n+"px").css("right","")},find_wrapper:function(e,t){var o;return jQuery("body").children().each((function(a,n){if(n.id!==e.substring(1)){var i=jQuery(n);if("right"===t&&i.offset().left+jQuery(i).width()<jQuery(window).width()||"left"===t&&i.offset().left>0)return"static"!==i.css("position")&&""!==i.css("position")||i.css("position","relative"),o=n,!1}})),o},center_fixed_element:function(e){var t=jQuery(e),o=jQuery(window).width()/2-parseInt(t.css("width"))/2;t.css("left",o+"px")},center_vertically:function(e){var t=jQuery(e),o=jQuery(window).height()/2-parseInt(t.css("height"))/2;"fixed"!==t.css("position")&&(o-=topoffset=parseInt(t.offset().top)),t.css("top",o+"px")},close:function(e){jQuery(e).remove()},wait_for_images:function(e,t){var o=0,a=[];e.find('img[src][src!=""]').each((function(){a.push(this.src)})),0===a.length&&t.call(e),jQuery.each(a,(function(n,i){var s=new Image;s.src=i;var r="load error";jQuery(s).one(r,(function n(i){if(jQuery(this).off(r,n),++o==a.length)return t.call(e[0]),!1}))}))},privacy:{state:"unknown",state_executed:!1,get_state:function(){if("unknown"!==window.advads_options.privacy.state)return advads.privacy.state_executed||(advads.privacy.state_executed=!0,advads.privacy.dispatch_event(window.advads_options.privacy.state,!1)),advads.privacy.state;if("custom"===window.advads_options.privacy["consent-method"]){var e=new RegExp(".*?"+window.advads_options.privacy["custom-cookie-value"]+"[^;]*?"),t=advads.get_cookie(window.advads_options.privacy["custom-cookie-name"])||"";advads.privacy.state_executed||(advads.privacy.state_executed=!0,advads.privacy.dispatch_event(t.match(e)?"accepted":"unknown",!0))}advads.privacy.state_executed=!0;var o=0,a=setInterval((function(){switch(600==++o&&clearInterval(a),window.advads_options.privacy["consent-method"]){case"custom":(advads.get_cookie(window.advads_options.privacy["custom-cookie-name"])||"").match(e)&&(clearInterval(a),"accepted"!==advads.privacy.state&&advads.privacy.dispatch_event("accepted",!0));break;case"iab_tcf_20":if(void 0===window.__tcfapi)return;clearInterval(a),window.__tcfapi("addEventListener",2,(function(e,t){if(t&&("tcloaded"===e.eventStatus||"useractioncomplete"===e.eventStatus||null===e.eventStatus&&void 0!==window.googlefc&&(void 0!==e.purpose||!e.gdprApplies))){var o="useractioncomplete"===e.eventStatus;if(!e.gdprApplies)return void("not_needed"!==advads.privacy.state&&advads.privacy.dispatch_event("not_needed",o));if(e.purpose.consents[1])return void("accepted"!==advads.privacy.state&&advads.privacy.dispatch_event("accepted",o));"rejected"!==advads.privacy.state&&advads.privacy.dispatch_event("rejected",o)}}))}}),100);return advads.privacy.state},is_adsense_npa_enabled:function(){return!window.advads_options||!window.advads_options.privacy||!(!window.advads_options.privacy["show-non-personalized-adsense"]||"custom"!==window.advads_options.privacy["consent-method"])},dispatch_event:function(e,t){var o=advads.privacy.state;advads.privacy.state=e,console.log({state:e,previousState:o,userAction:t}),window.advanced_ads_ready_queue.push((function(){document.dispatchEvent(new CustomEvent("advanced_ads_privacy",{detail:{state:e,previousState:o,userAction:t}}))}))},is_ad_decoded:function(e){return null===document.querySelector('script[data-tcf="waiting-for-consent"][data-id="'+e+'"]')},decode_ad:function(e,t){t="boolean"!=typeof t||t;var o=decodeURIComponent(Array.prototype.map.call(atob(e.textContent),(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""));if(!t)return o;e.replaceWith(document.createRange().createContextualFragment(o))}}},window.advanced_ads_ready_queue.push(advads.privacy.get_state),document.addEventListener("advanced_ads_privacy",(function(e){"accepted"!==e.detail.state&&"not_needed"!==e.detail.state||e.detail.userAction||"loading"===document.readyState||document.querySelectorAll('script[type="text/plain"][data-tcf="waiting-for-consent"]').forEach(advads.privacy.decode_ad)}))})();1 !function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}!function(){if("function"!=typeof window.CustomEvent){window.CustomEvent=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:null};var o=document.createEvent("CustomEvent");return o.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),o}}function t(){var t,o=this.parentNode,a=arguments.length;if(o)for(a||o.removeChild(this);a--;)"object"!==e(t=arguments[a])?t=this.ownerDocument.createTextNode(t):t.parentNode&&t.parentNode.removeChild(t),a?o.insertBefore(t,this.nextSibling):o.replaceChild(t,this)}Element.prototype.replaceWith||(Element.prototype.replaceWith=t),CharacterData.prototype.replaceWith||(CharacterData.prototype.replaceWith=t),DocumentType.prototype.replaceWith||(DocumentType.prototype.replaceWith=t),window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(e,t){var o,a=this.length;for(t=t||window,o=0;o<a;o++)e.call(t,this[o],o,this)})}(),advads={supports_localstorage:function(){"use strict";try{return!(!window||void 0===window.localStorage)&&(window.localStorage.setItem("x","x"),window.localStorage.removeItem("x"),!0)}catch(e){return!1}},max_per_session:function(e,t){var o=1;if(void 0!==t&&0!==parseInt(t)||(t=1),this.cookie_exists(e)){if(this.get_cookie(e)>=t)return!0;o+=parseInt(this.get_cookie(e))}return this.set_cookie(e,o),!1},count_up:function(e,t){var o=1;this.cookie_exists(e)&&(o+=parseInt(this.get_cookie(e))),this.set_cookie(e,o)},set_cookie_exists:function(e){return!!get_cookie(e)||(set_cookie(e,"",0),!1)},get_cookie:function(e){var t,o,a,n=document.cookie.split(";");for(t=0;t<n.length;t++)if(o=n[t].substr(0,n[t].indexOf("=")),a=n[t].substr(n[t].indexOf("=")+1),(o=o.replace(/^\s+|\s+$/g,""))===e)return decodeURIComponent(a)},set_cookie:function(e,t,o,a,n,i){var s=null==o?null:24*o*60*60;this.set_cookie_sec(e,t,s,a,n,i)},set_cookie_sec:function(e,t,o,a,n,i){var s=new Date;s.setSeconds(s.getSeconds()+parseInt(o)),document.cookie=e+"="+encodeURIComponent(t)+(null==o?"":"; expires="+s.toUTCString())+(null==a?"; path=/":"; path="+a)+(null==n?"":"; domain="+n)+(null==i?"":"; secure")},cookie_exists:function(e){var t=this.get_cookie(e);return null!==t&&""!==t&&void 0!==t},move:function(e,t,o){var a=jQuery(e),n=t;if(void 0===o&&(o={}),void 0===o.css&&(o.css={}),void 0===o.method&&(o.method="prependTo"),""===t&&void 0!==o.target&&"wrapper"===o.target){var i="left";void 0!==o.offset&&(i=o.offset),t=this.find_wrapper(e,i)}switch((t=void 0===o.moveintohidden?jQuery(t).filter(":visible"):jQuery(t)).length>1&&console.log("Advanced Ads: element '"+n+"' found "+t.length+" times."),o.method){case"insertBefore":a.insertBefore(t);break;case"insertAfter":a.insertAfter(t);break;case"appendTo":a.appendTo(t);break;default:a.prependTo(t)}},set_parent_relative:function(e,t){t=void 0!==t?t:{};var o=jQuery(e).parent();t.use_grandparent&&(o=o.parent()),"static"!==o.css("position")&&""!==o.css("position")||o.css("position","relative")},fix_element:function(e,t){t=void 0!==t?t:{};var o=jQuery(e);t.use_grandparent?this.set_parent_relative(o.parent()):this.set_parent_relative(o),t.is_invisible&&o.show();var a=parseInt(o.offset().top),n=parseInt(o.offset().left);if(t.is_invisible&&o.hide(),"left"===t.offset){var i=jQuery(window).width()-n-o.outerWidth();o.css("position","fixed").css("top",a+"px").css("right",i+"px").css("left","")}else o.css("position","fixed").css("top",a+"px").css("left",n+"px").css("right","")},find_wrapper:function(e,t){var o;return jQuery("body").children().each((function(a,n){if(n.id!==e.substring(1)){var i=jQuery(n);if("right"===t&&i.offset().left+jQuery(i).width()<jQuery(window).width()||"left"===t&&i.offset().left>0)return"static"!==i.css("position")&&""!==i.css("position")||i.css("position","relative"),o=n,!1}})),o},center_fixed_element:function(e){var t=jQuery(e),o=jQuery(window).width()/2-parseInt(t.css("width"))/2;t.css("left",o+"px")},center_vertically:function(e){var t=jQuery(e),o=jQuery(window).height()/2-parseInt(t.css("height"))/2;"fixed"!==t.css("position")&&(o-=topoffset=parseInt(t.offset().top)),t.css("top",o+"px")},close:function(e){jQuery(e).remove()},wait_for_images:function(e,t){var o=0,a=[];e.find('img[src][src!=""]').each((function(){a.push(this.src)})),0===a.length&&t.call(e),jQuery.each(a,(function(n,i){var s=new Image;s.src=i;var r="load error";jQuery(s).one(r,(function n(i){if(jQuery(this).off(r,n),++o==a.length)return t.call(e[0]),!1}))}))},privacy:{state:"unknown",state_executed:!1,get_state:function(){if("unknown"!==window.advads_options.privacy.state)return advads.privacy.state_executed||(advads.privacy.state_executed=!0,advads.privacy.dispatch_event(window.advads_options.privacy.state,!1)),advads.privacy.state;if("custom"===window.advads_options.privacy["consent-method"]){var e=new RegExp(".*?"+window.advads_options.privacy["custom-cookie-value"]+"[^;]*?"),t=advads.get_cookie(window.advads_options.privacy["custom-cookie-name"])||"";advads.privacy.state_executed||(advads.privacy.state_executed=!0,advads.privacy.dispatch_event(t.match(e)?"accepted":"unknown",!0))}advads.privacy.state_executed=!0;var o=0,a=setInterval((function(){switch(600==++o&&clearInterval(a),window.advads_options.privacy["consent-method"]){case"custom":(advads.get_cookie(window.advads_options.privacy["custom-cookie-name"])||"").match(e)&&(clearInterval(a),"accepted"!==advads.privacy.state&&advads.privacy.dispatch_event("accepted",!0));break;case"iab_tcf_20":if(void 0===window.__tcfapi)return;clearInterval(a),window.__tcfapi("addEventListener",2,(function(e,t){if(t&&("tcloaded"===e.eventStatus||"useractioncomplete"===e.eventStatus||null===e.eventStatus&&void 0!==window.googlefc&&(void 0!==e.purpose||!e.gdprApplies))){var o="useractioncomplete"===e.eventStatus;if(!e.gdprApplies)return void("not_needed"!==advads.privacy.state&&advads.privacy.dispatch_event("not_needed",o));if(e.purpose.consents[1])return void("accepted"!==advads.privacy.state&&advads.privacy.dispatch_event("accepted",o));"rejected"!==advads.privacy.state&&advads.privacy.dispatch_event("rejected",o)}}))}}),100);return advads.privacy.state},is_adsense_npa_enabled:function(){return!window.advads_options||!window.advads_options.privacy||!(!window.advads_options.privacy["show-non-personalized-adsense"]||"custom"!==window.advads_options.privacy["consent-method"])},dispatch_event:function(e,t){var o=advads.privacy.state;advads.privacy.state=e,console.log({state:e,previousState:o,userAction:t}),window.advanced_ads_ready_queue.push((function(){document.dispatchEvent(new CustomEvent("advanced_ads_privacy",{detail:{state:e,previousState:o,userAction:t}}))}))},is_ad_decoded:function(e){return null===document.querySelector('script[data-tcf="waiting-for-consent"][data-id="'+e+'"]')},decode_ad:function(e,t){t="boolean"!=typeof t||t;var o=decodeURIComponent(Array.prototype.map.call(atob(e.textContent),(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""));if(!t)return o;e.replaceWith(document.createRange().createContextualFragment(o))}}},window.advanced_ads_ready_queue.push(advads.privacy.get_state),document.addEventListener("advanced_ads_privacy",(function(e){"accepted"!==e.detail.state&&"not_needed"!==e.detail.state||e.detail.userAction||"loading"===document.readyState||document.querySelectorAll('script[type="text/plain"][data-tcf="waiting-for-consent"]').forEach(advads.privacy.decode_ad)}))}(); -
advanced-ads/trunk/public/class-advanced-ads.php
r3041809 r3050336 562 562 563 563 // Do not inject on admin pages. 564 if ( is_admin() && ! defined( 'DOING_AJAX' ) ) { 564 if ( is_admin() && ! wp_doing_ajax() ) { 565 return $content; 566 } 567 568 // Do not inject in writing REST requests. 569 if ( WordPress::is_gutenberg_writing_request() && WordPress::is_rest_request() ) { 565 570 return $content; 566 571 } -
advanced-ads/trunk/readme.txt
r3043146 r3050336 5 5 Tested up to: 6.4 6 6 Requires PHP: 7.2 7 Stable tag: 1.51. 17 Stable tag: 1.51.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 339 339 == Changelog == 340 340 341 = 1.51.2 (March 13, 2024) = 342 343 - Improvement: enhance compatibility with PHP 8.3 344 - Fix: resolve smaller style issues on the dashboard page 345 - Fix: resolve an issue preventing the deletion of groups 346 - Fix: correct an issue where saving in Gutenberg occasionally caused an error 347 341 348 = 1.51.1 (February 29, 2024) = 342 349 -
advanced-ads/trunk/views/admin/screens/dashboard.php
r2983598 r3050336 10 10 <div class="wrap"> 11 11 <div id="advads-overview"> 12 <?php AdvancedAds\Modules\ProductExperimentationFramework\Module::get_instance()->render( 'overview' ); ?> 12 13 <?php Advanced_Ads_Overview_Widgets_Callbacks::setup_overview_widgets(); ?> 13 14 </div>
Note: See TracChangeset
for help on using the changeset viewer.