diff --git a/wp-content/plugins/menu-icons/CHANGELOG.md b/wp-content/plugins/menu-icons/CHANGELOG.md index d1db689b..15590ac6 100644 --- a/wp-content/plugins/menu-icons/CHANGELOG.md +++ b/wp-content/plugins/menu-icons/CHANGELOG.md @@ -1,3 +1,12 @@ +##### [Version 0.13.4](https://github.com/codeinwp/wp-menu-icons/compare/v0.13.3...v0.13.4) (2023-03-01) + +Update dependencies + +##### [Version 0.13.3](https://github.com/codeinwp/wp-menu-icons/compare/v0.13.2...v0.13.3) (2023-02-25) + +- Fix img width/height value, props @Htbaa +- Update dependencies + ##### [Version 0.13.2](https://github.com/codeinwp/wp-menu-icons/compare/v0.13.1...v0.13.2) (2022-11-24) * Fix - update dependencies diff --git a/wp-content/plugins/menu-icons/includes/front.php b/wp-content/plugins/menu-icons/includes/front.php index 358f527d..7bfb0952 100644 --- a/wp-content/plugins/menu-icons/includes/front.php +++ b/wp-content/plugins/menu-icons/includes/front.php @@ -481,10 +481,10 @@ final class Menu_Icons_Front_End { } } if ( ! empty( $width ) ) { - $width = sprintf( ' width="%dpx"', $width ); + $width = sprintf( ' width="%d"', $width ); } if ( ! empty( $height ) ) { - $height = sprintf( ' height="%dpx"', $height ); + $height = sprintf( ' height="%d"', $height ); } $image_alt = get_post_meta( $meta['icon'], '_wp_attachment_image_alt', true ); $image_alt = $image_alt ? wp_strip_all_tags( $image_alt ) : ''; diff --git a/wp-content/plugins/menu-icons/menu-icons.php b/wp-content/plugins/menu-icons/menu-icons.php index 0e9c9d23..fa0405b6 100644 --- a/wp-content/plugins/menu-icons/menu-icons.php +++ b/wp-content/plugins/menu-icons/menu-icons.php @@ -11,7 +11,7 @@ * Plugin name: Menu Icons * Plugin URI: https://github.com/Codeinwp/wp-menu-icons * Description: Spice up your navigation menus with pretty icons, easily. - * Version: 0.13.2 + * Version: 0.13.4 * Author: ThemeIsle * Author URI: https://themeisle.com * License: GPLv2 @@ -29,7 +29,7 @@ final class Menu_Icons { const DISMISS_NOTICE = 'menu-icons-dismiss-notice'; - const VERSION = '0.13.2'; + const VERSION = '0.13.4'; /** * Holds plugin data diff --git a/wp-content/plugins/menu-icons/readme.txt b/wp-content/plugins/menu-icons/readme.txt index 5be88738..8092aa66 100644 --- a/wp-content/plugins/menu-icons/readme.txt +++ b/wp-content/plugins/menu-icons/readme.txt @@ -225,6 +225,21 @@ Read [this blog post](http://kucrut.org/add-custom-image-sizes-right-way/). == Changelog == +##### [Version 0.13.4](https://github.com/codeinwp/wp-menu-icons/compare/v0.13.3...v0.13.4) (2023-03-01) + +Update dependencies + + + + +##### [Version 0.13.3](https://github.com/codeinwp/wp-menu-icons/compare/v0.13.2...v0.13.3) (2023-02-25) + +- Fix img width/height value, props @Htbaa +- Update dependencies + + + + ##### [Version 0.13.2](https://github.com/codeinwp/wp-menu-icons/compare/v0.13.1...v0.13.2) (2022-11-24) * Fix - update dependencies diff --git a/wp-content/plugins/menu-icons/vendor/autoload.php b/wp-content/plugins/menu-icons/vendor/autoload.php index 69eae15c..43b14c71 100644 --- a/wp-content/plugins/menu-icons/vendor/autoload.php +++ b/wp-content/plugins/menu-icons/vendor/autoload.php @@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) { require_once __DIR__ . '/composer/autoload_real.php'; -return ComposerAutoloaderIniteaa5284efc067d9aba27d7d8f1a0b978::getLoader(); +return ComposerAutoloaderInit95753d5aa2e3a7942eae2a5b015550e7::getLoader(); diff --git a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/CHANGELOG.md b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/CHANGELOG.md index bc2478a2..7376615e 100644 --- a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/CHANGELOG.md +++ b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/CHANGELOG.md @@ -1,3 +1,28 @@ +##### [Version 3.2.37](https://github.com/Codeinwp/themeisle-sdk/compare/v3.2.36...v3.2.37) (2023-03-01) + +Fix array casting + +##### [Version 3.2.36](https://github.com/Codeinwp/themeisle-sdk/compare/v3.2.35...v3.2.36) (2023-03-01) + +fix perfomance issues on attachments count https://github.com/Codeinwp/themeisle-sdk/issues/159 + +##### [Version 3.2.35](https://github.com/Codeinwp/themeisle-sdk/compare/v3.2.34...v3.2.35) (2023-02-22) + +Added Codeinwp and wpshout feeds to dashboard widget + +##### [Version 3.2.34](https://github.com/Codeinwp/themeisle-sdk/compare/v3.2.33...v3.2.34) (2023-01-31) + +Improve promotions + +##### [Version 3.2.33](https://github.com/Codeinwp/themeisle-sdk/compare/v3.2.32...v3.2.33) (2023-01-30) + +* Adds PHP 8.2 compatibility +* Update promotions + +##### [Version 3.2.32](https://github.com/Codeinwp/themeisle-sdk/compare/v3.2.31...v3.2.32) (2022-11-30) + +Release + ##### [Version 3.2.31](https://github.com/Codeinwp/themeisle-sdk/compare/v3.2.30...v3.2.31) (2022-11-23) - improve the promotions module diff --git a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/index.asset.php b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/index.asset.php index 09e69f22..dc72bd02 100644 --- a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/index.asset.php +++ b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/index.asset.php @@ -1 +1 @@ - array('wp-api', 'wp-block-editor', 'wp-components', 'wp-compose', 'wp-data', 'wp-edit-post', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins'), 'version' => '4990ea029287f2766945'); + array('wp-api', 'wp-block-editor', 'wp-components', 'wp-compose', 'wp-data', 'wp-edit-post', 'wp-element', 'wp-hooks', 'wp-plugins'), 'version' => '482f75f37b88f9ea2e79'); diff --git a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/index.js b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/index.js index 9dec546d..1540cb8b 100644 --- a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/index.js +++ b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/index.js @@ -1 +1 @@ -!function(){"use strict";var e,t={655:function(e,t,o){var n=window.wp.element,i=window.wp.i18n,r=window.wp.blockEditor,s=window.wp.components,a=window.wp.compose,l=window.wp.data,m=window.wp.hooks,c=window.wp.api,d=o.n(c),u=()=>{const{createNotice:e}=(0,l.dispatch)("core/notices"),[t,o]=(0,n.useState)({}),[r,s]=(0,n.useState)("loading"),a=()=>{d().loadPromise.then((async()=>{try{const e=new(d().models.Settings),t=await e.fetch();o(t)}catch(e){s("error")}finally{s("loaded")}}))};return(0,n.useEffect)((()=>{a()}),[]),[e=>null==t?void 0:t[e],function(t,o){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(0,i.__)("Settings saved.","textdomain");s("saving");const r=new(d().models.Settings)({[t]:o}).save();r.success(((t,o)=>{"success"===o&&(s("loaded"),e("success",n,{isDismissible:!0,type:"snackbar"})),"error"===o&&(s("error"),e("error",(0,i.__)("An unknown error occurred.","textdomain"),{isDismissible:!0,type:"snackbar"})),a()})),r.error((t=>{s("error"),e("error",t.responseJSON.message?t.responseJSON.message:(0,i.__)("An unknown error occurred.","textdomain"),{isDismissible:!0,type:"snackbar"})}))},r]};const p=e=>new Promise((t=>{wp.updates.ajax("install-plugin",{slug:e,success:()=>{t({success:!0})},error:e=>{t({success:!1,code:e.errorCode})}})})),h=e=>new Promise((t=>{jQuery.get(e).done((()=>{t({success:!0})})).fail((()=>{t({success:!1})}))})),w=(e,t)=>{const o={};return Object.keys(t).forEach((function(e){"innerBlocks"!==e&&(o[e]=t[e])})),e.push(o),Array.isArray(t.innerBlocks)?(o.innerBlocks=t.innerBlocks.map((e=>e.id)),t.innerBlocks.reduce(w,e)):e},g={button:{display:"flex",justifyContent:"center",width:"100%"},image:{padding:"20px 0"},skip:{container:{display:"flex",flexDirection:"column",alignItems:"center"},button:{fontSize:"9px"},poweredby:{fontSize:"9px",textTransform:"uppercase"}}},_={"blocks-css":{title:(0,i.__)("Custom CSS","textdomain"),description:(0,i.__)("Enable Otter Blocks to add Custom CSS for this block."),image:"css.jpg"},"blocks-animation":{title:(0,i.__)("Animations","textdomain"),description:(0,i.__)("Enable Otter Blocks to add Animations for this block."),image:"animation.jpg"},"blocks-conditions":{title:(0,i.__)("Visibility Conditions","textdomain"),description:(0,i.__)("Enable Otter Blocks to add Visibility Conditions for this block."),image:"conditions.jpg"}},f=e=>{let{onClick:t}=e;return(0,n.createElement)("div",{style:g.skip.container},(0,n.createElement)(s.Button,{style:g.skip.button,variant:"tertiary",onClick:t},(0,i.__)("Skip for now")),(0,n.createElement)("span",{style:g.skip.poweredby},(0,i.__)("Recommended by ")+window.themeisleSDKPromotions.product))},y=(0,a.createHigherOrderComponent)((e=>t=>{if(t.isSelected&&Boolean(window.themeisleSDKPromotions.showPromotion)){const[o,a]=(0,n.useState)(!1),[l,m]=(0,n.useState)("default"),[c,d]=(0,n.useState)(!1),[w,y,E]=u(),k=async()=>{a(!0),await p("otter-blocks"),y("themeisle_sdk_promotions_otter_installed",!Boolean(w("themeisle_sdk_promotions_otter_installed"))),await h(window.themeisleSDKPromotions.otterActivationUrl),a(!1),m("installed")},v=()=>"installed"===l?(0,n.createElement)("p",null,(0,n.createElement)("strong",null,(0,i.__)("Awesome! Refresh the page to see Otter Blocks in action."))):(0,n.createElement)(s.Button,{variant:"secondary",onClick:k,isBusy:o,style:g.button},(0,i.__)("Install & Activate Otter Blocks")),b=()=>{const e={...window.themeisleSDKPromotions.option};e[window.themeisleSDKPromotions.showPromotion]=(new Date).getTime()/1e3|0,y("themeisle_sdk_promotions",JSON.stringify(e)),window.themeisleSDKPromotions.showPromotion=!1};return(0,n.useEffect)((()=>{c&&b()}),[c]),c?(0,n.createElement)(e,t):(0,n.createElement)(n.Fragment,null,(0,n.createElement)(e,t),(0,n.createElement)(r.InspectorControls,null,Object.keys(_).map((e=>{if(e===window.themeisleSDKPromotions.showPromotion){const t=_[e];return(0,n.createElement)(s.PanelBody,{key:e,title:t.title,initialOpen:!1},(0,n.createElement)("p",null,t.description),(0,n.createElement)(v,null),(0,n.createElement)("img",{style:g.image,src:window.themeisleSDKPromotions.assets+t.image}),(0,n.createElement)(f,{onClick:()=>d(!0)}))}}))))}return(0,n.createElement)(e,t)}),"withInspectorControl");(0,l.select)("core/edit-site")||(0,m.addFilter)("editor.BlockEdit","themeisle-sdk/with-inspector-controls",y);var E=window.wp.plugins,k=window.wp.editPost;function v(e){let{stacked:t=!1,noImage:o=!1,type:r,onDismiss:a}=e;const{assets:l,title:m,email:c,option:d,optionKey:w,optimoleActivationUrl:g,optimoleApi:_,optimoleDash:f,nonce:y}=window.themeisleSDKPromotions,[E,k]=(0,n.useState)(!1),[v,b]=(0,n.useState)(c||""),[P,S]=(0,n.useState)(!1),[x,O]=(0,n.useState)(null),[A,D]=u(),B=async()=>{S(!0);const e={...d};e[r]=(new Date).getTime()/1e3|0,window.themeisleSDKPromotions.option=e,await D(w,JSON.stringify(e)),a&&a()},C=()=>{k(!E)},N=e=>{b(e.target.value)},K=async e=>{e.preventDefault(),O("installing"),await p("optimole-wp"),O("activating"),await h(g),D("themeisle_sdk_promotions_optimole_installed",!Boolean(A("themeisle_sdk_promotions_optimole_installed"))),O("connecting");try{await fetch(_,{method:"POST",headers:{"X-WP-Nonce":y,"Content-Type":"application/json"},body:JSON.stringify({email:v})}),O("done")}catch(e){O("done")}};if(P)return null;const j=()=>"done"===x?(0,n.createElement)("div",{className:"done"},(0,n.createElement)("p",null,(0,i.__)("Awesome! You are all set!","textdomain")),(0,n.createElement)(s.Button,{icon:"external",isPrimary:!0,href:f,target:"_blank"},(0,i.__)("Go to Optimole dashboard","textdomain"))):x?(0,n.createElement)("p",{className:"om-progress"},(0,n.createElement)("span",{className:"dashicons dashicons-update spin"}),(0,n.createElement)("span",null,"installing"===x&&(0,i.__)("Installing","textdomain"),"activating"===x&&(0,i.__)("Activating","textdomain"),"connecting"===x&&(0,i.__)("Connecting to API","textdomain"),"…")):(0,n.createElement)(n.Fragment,null,(0,n.createElement)("span",null,(0,i.__)("Enter your email address to create & connect your account","textdomain")),(0,n.createElement)("form",{onSubmit:K},(0,n.createElement)("input",{defaultValue:v,type:"email",onChange:N,placeholder:(0,i.__)("Email address","textdomain")}),(0,n.createElement)(s.Button,{isPrimary:!0,type:"submit"},(0,i.__)("Start using Optimole","textdomain")))),I=()=>(0,n.createElement)(s.Button,{disabled:x&&"done"!==x,onClick:B,isLink:!0,className:"om-notice-dismiss"},(0,n.createElement)("span",{className:"dashicons-no-alt dashicons"}),(0,n.createElement)("span",{className:"screen-reader-text"},"Dismiss this notice."));return t?(0,n.createElement)("div",{className:"ti-om-stack-wrap"},(0,n.createElement)("div",{className:"om-stack-notice"},I(),(0,n.createElement)("img",{src:l+"/optimole-logo.svg",alt:(0,i.__)("Optimole logo","textdomain")}),(0,n.createElement)("h2",null,(0,i.__)("Get more with Optimole","textdomain")),(0,n.createElement)("p",null,"om-editor"===r?(0,i.__)("Increase this page speed and SEO ranking by optimizing images with Optimole.","textdomain"):(0,i.__)("Leverage Optimole's full integration with Elementor to automatically lazyload, resize, compress to AVIF/WebP and deliver from 400 locations around the globe!","textdomain")),!E&&(0,n.createElement)(s.Button,{isPrimary:!0,onClick:C,className:"cta"},(0,i.__)("Get Started Free","textdomain")),E&&j(),(0,n.createElement)("i",null,m))):(0,n.createElement)(n.Fragment,null,I(),(0,n.createElement)("div",{className:"content"},!o&&(0,n.createElement)("img",{src:l+"/optimole-logo.svg",alt:(0,i.__)("Optimole logo","textdomain")}),(0,n.createElement)("div",null,(0,n.createElement)("p",null,m),(0,n.createElement)("p",{className:"description"},"om-media"===r?(0,i.__)("Save your server space by storing images to Optimole and deliver them optimized from 400 locations around the globe. Unlimited images, Unlimited traffic.","textdomain"):(0,i.__)("Optimize, store and deliver this image with 80% less size while looking just as great, using Optimole.","textdomain")),!E&&(0,n.createElement)("div",{className:"actions"},(0,n.createElement)(s.Button,{isPrimary:!0,onClick:C},(0,i.__)("Get Started Free","textdomain")),(0,n.createElement)(s.Button,{isLink:!0,target:"_blank",href:"https://wordpress.org/plugins/optimole-wp"},(0,i.__)("Learn more","textdomain"))),E&&(0,n.createElement)("div",{className:"form-wrap"},j()))))}const b=()=>{const[e,t]=(0,n.useState)(!0),{getBlocks:o}=(0,l.useSelect)((e=>{const{getBlocks:t}=e("core/block-editor");return{getBlocks:t}}));var i;if((i=o(),"core/image",i.reduce(w,[]).filter((e=>"core/image"===e.name))).length<2)return null;const r="ti-sdk-optimole-post-publish "+(e?"":"hidden");return(0,n.createElement)(k.PluginPostPublishPanel,{className:r},(0,n.createElement)(v,{stacked:!0,type:"om-editor",onDismiss:()=>{t(!1)}}))};new class{constructor(){const{showPromotion:e,debug:t}=window.themeisleSDKPromotions;this.promo=e,this.debug="1"===t,this.domRef=null,this.run()}run(){if(this.debug)this.runAll();else switch(this.promo){case"om-attachment":this.runAttachmentPromo();break;case"om-media":this.runMediaPromo();break;case"om-editor":this.runEditorPromo();break;case"om-elementor":this.runElementorPromo()}}runAttachmentPromo(){wp.media.view.Attachment.Details.prototype.on("ready",(()=>{setTimeout((()=>{this.removeAttachmentPromo(),this.addAttachmentPromo()}),100)})),wp.media.view.Modal.prototype.on("close",(()=>{setTimeout(this.removeAttachmentPromo,100)}))}runMediaPromo(){if(window.themeisleSDKPromotions.option["om-media"])return;const e=document.querySelector("#ti-optml-notice");e&&(0,n.render)((0,n.createElement)(v,{type:"om-media",onDismiss:()=>{e.style.opacity=0}}),e)}runEditorPromo(){window.themeisleSDKPromotions.option["om-editor"]||(0,E.registerPlugin)("post-publish-panel-test",{render:b})}runElementorPromo(){if(!window.elementor)return;const e=this;elementor.on("preview:loaded",(()=>{elementor.panel.currentView.on("set:page:editor",(t=>{e.domRef&&(0,n.unmountComponentAtNode)(e.domRef),t.activeSection&&"section_image"===t.activeSection&&e.runElementorActions(e)}))}))}addAttachmentPromo(){if(this.domRef&&(0,n.unmountComponentAtNode)(this.domRef),window.themeisleSDKPromotions.option["om-attachment"])return;const e=document.querySelector("#ti-optml-notice-helper");e&&(this.domRef=e,(0,n.render)((0,n.createElement)("div",{className:"notice notice-info ti-sdk-om-notice",style:{margin:0}},(0,n.createElement)(v,{noImage:!0,type:"om-attachment",onDismiss:()=>{e.style.opacity=0}})),e))}removeAttachmentPromo(){const e=document.querySelector("#ti-optml-notice-helper");e&&(0,n.unmountComponentAtNode)(e)}runElementorActions(e){if(window.themeisleSDKPromotions.option["om-elementor"])return;const t=document.querySelector("#elementor-panel__editor__help"),o=document.createElement("div");o.id="ti-optml-notice",e.domRef=o,t&&(t.parentNode.insertBefore(o,t),(0,n.render)((0,n.createElement)(v,{stacked:!0,type:"om-elementor",onDismiss:()=>{o.style.opacity=0}}),o))}runAll(){this.runAttachmentPromo(),this.runMediaPromo(),this.runEditorPromo(),this.runElementorPromo()}}}},o={};function n(e){var i=o[e];if(void 0!==i)return i.exports;var r=o[e]={exports:{}};return t[e](r,r.exports,n),r.exports}n.m=t,e=[],n.O=function(t,o,i,r){if(!o){var s=1/0;for(c=0;c=r)&&Object.keys(n.O).every((function(e){return n.O[e](o[l])}))?o.splice(l--,1):(a=!1,r0&&e[c-1][2]>r;c--)e[c]=e[c-1];e[c]=[o,i,r]},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={826:0,431:0};n.O.j=function(t){return 0===e[t]};var t=function(t,o){var i,r,s=o[0],a=o[1],l=o[2],m=0;if(s.some((function(t){return 0!==e[t]}))){for(i in a)n.o(a,i)&&(n.m[i]=a[i]);if(l)var c=l(n)}for(t&&t(o);m{"use strict";var e,t={241:(e,t,o)=>{const n=window.wp.element,i=window.wp.blockEditor,r=window.wp.components,s=window.wp.compose,a=window.wp.data,l=window.wp.hooks,m=window.wp.api;var c=o.n(m);const d=()=>{const{createNotice:e}=(0,a.dispatch)("core/notices"),[t,o]=(0,n.useState)({}),[i,r]=(0,n.useState)("loading"),s=()=>{c().loadPromise.then((async()=>{try{const e=new(c().models.Settings),t=await e.fetch();o(t)}catch(e){r("error")}finally{r("loaded")}}))};return(0,n.useEffect)((()=>{s()}),[]),[e=>t?.[e],function(t,o){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Settings saved.";r("saving");const i=new(c().models.Settings)({[t]:o}).save();i.success(((t,o)=>{"success"===o&&(r("loaded"),e("success",n,{isDismissible:!0,type:"snackbar"})),"error"===o&&(r("error"),e("error","An unknown error occurred.",{isDismissible:!0,type:"snackbar"})),s()})),i.error((t=>{r("error"),e("error",t.responseJSON.message?t.responseJSON.message:"An unknown error occurred.",{isDismissible:!0,type:"snackbar"})}))},i]},u=e=>new Promise((t=>{wp.updates.ajax("install-plugin",{slug:e,success:()=>{t({success:!0})},error:e=>{t({success:!1,code:e.errorCode})}})})),p=e=>new Promise((t=>{jQuery.get(e).done((()=>{t({success:!0})})).fail((()=>{t({success:!1})}))})),h=(e,t)=>{const o={};return Object.keys(t).forEach((function(e){"innerBlocks"!==e&&(o[e]=t[e])})),e.push(o),Array.isArray(t.innerBlocks)?(o.innerBlocks=t.innerBlocks.map((e=>e.id)),t.innerBlocks.reduce(h,e)):e},w={button:{display:"flex",justifyContent:"center",width:"100%"},image:{padding:"20px 0"},skip:{container:{display:"flex",flexDirection:"column",alignItems:"center"},button:{fontSize:"9px"},poweredby:{fontSize:"9px",textTransform:"uppercase"}}},g={"blocks-css":{title:"Custom CSS",description:"Enable Otter Blocks to add Custom CSS for this block.",image:"css.jpg"},"blocks-animation":{title:"Animations",description:"Enable Otter Blocks to add Animations for this block.",image:"animation.jpg"},"blocks-conditions":{title:"Visibility Conditions",description:"Enable Otter Blocks to add Visibility Conditions for this block.",image:"conditions.jpg"}},k=e=>{let{onClick:t}=e;return(0,n.createElement)("div",{style:w.skip.container},(0,n.createElement)(r.Button,{style:w.skip.button,variant:"tertiary",onClick:t},"Skip for now"),(0,n.createElement)("span",{style:w.skip.poweredby},"Recommended by ",window.themeisleSDKPromotions.product))},E=(0,s.createHigherOrderComponent)((e=>t=>{if(t.isSelected&&Boolean(window.themeisleSDKPromotions.showPromotion)){const[o,s]=(0,n.useState)(!1),[a,l]=(0,n.useState)("default"),[m,c]=(0,n.useState)(!1),[h,E,y]=d(),f=async()=>{s(!0),await u("otter-blocks"),E("themeisle_sdk_promotions_otter_installed",!Boolean(h("themeisle_sdk_promotions_otter_installed"))),await p(window.themeisleSDKPromotions.otterActivationUrl),s(!1),l("installed")},b=()=>"installed"===a?(0,n.createElement)("p",null,(0,n.createElement)("strong",null,"Awesome! Refresh the page to see Otter Blocks in action.")):(0,n.createElement)(r.Button,{variant:"secondary",onClick:f,isBusy:o,style:w.button},"Install & Activate Otter Blocks"),P=()=>{const e={...window.themeisleSDKPromotions.option};e[window.themeisleSDKPromotions.showPromotion]=(new Date).getTime()/1e3|0,E("themeisle_sdk_promotions",JSON.stringify(e)),window.themeisleSDKPromotions.showPromotion=!1};return(0,n.useEffect)((()=>{m&&P()}),[m]),m?(0,n.createElement)(e,t):(0,n.createElement)(n.Fragment,null,(0,n.createElement)(e,t),(0,n.createElement)(i.InspectorControls,null,Object.keys(g).map((e=>{if(e===window.themeisleSDKPromotions.showPromotion){const t=g[e];return(0,n.createElement)(r.PanelBody,{key:e,title:t.title,initialOpen:!1},(0,n.createElement)("p",null,t.description),(0,n.createElement)(b,null),(0,n.createElement)("img",{style:w.image,src:window.themeisleSDKPromotions.assets+t.image}),(0,n.createElement)(k,{onClick:()=>c(!0)}))}}))))}return(0,n.createElement)(e,t)}),"withInspectorControl");(0,a.select)("core/edit-site")||(0,l.addFilter)("editor.BlockEdit","themeisle-sdk/with-inspector-controls",E);const y=window.wp.plugins,f=window.wp.editPost;function b(e){let{stacked:t=!1,noImage:o=!1,type:i,onDismiss:s,onSuccess:a,initialStatus:l=null}=e;const{assets:m,title:c,email:h,option:w,optionKey:g,optimoleActivationUrl:k,optimoleApi:E,optimoleDash:y,nonce:f}=window.themeisleSDKPromotions,[b,P]=(0,n.useState)(!1),[S,v]=(0,n.useState)(h||""),[O,B]=(0,n.useState)(!1),[D,A]=(0,n.useState)(l),[_,C]=d(),N=async()=>{B(!0);const e={...w};e[i]=(new Date).getTime()/1e3|0,window.themeisleSDKPromotions.option=e,await C(g,JSON.stringify(e)),s&&s()},K=()=>{P(!b)},x=e=>{v(e.target.value)},I=async e=>{e.preventDefault(),A("installing"),await u("optimole-wp"),A("activating"),await p(k),C("themeisle_sdk_promotions_optimole_installed",!Boolean(_("themeisle_sdk_promotions_optimole_installed"))),A("connecting");try{await fetch(E,{method:"POST",headers:{"X-WP-Nonce":f,"Content-Type":"application/json"},body:JSON.stringify({email:S})}),a&&a(),A("done")}catch(e){A("done")}};if(O)return null;const j=()=>"done"===D?(0,n.createElement)("div",{className:"done"},(0,n.createElement)("p",null,"Awesome! You are all set!"),(0,n.createElement)(r.Button,{icon:"external",isPrimary:!0,href:y,target:"_blank"},"Go to Optimole dashboard")):D?(0,n.createElement)("p",{className:"om-progress"},(0,n.createElement)("span",{className:"dashicons dashicons-update spin"}),(0,n.createElement)("span",null,"installing"===D&&"Installing","activating"===D&&"Activating","connecting"===D&&"Connecting to API","…")):(0,n.createElement)(n.Fragment,null,(0,n.createElement)("span",null,"Enter your email address to create & connect your account"),(0,n.createElement)("form",{onSubmit:I},(0,n.createElement)("input",{defaultValue:S,type:"email",onChange:x,placeholder:"Email address"}),(0,n.createElement)(r.Button,{isPrimary:!0,type:"submit"},"Start using Optimole"))),F=()=>(0,n.createElement)(r.Button,{disabled:D&&"done"!==D,onClick:N,isLink:!0,className:"om-notice-dismiss"},(0,n.createElement)("span",{className:"dashicons-no-alt dashicons"}),(0,n.createElement)("span",{className:"screen-reader-text"},"Dismiss this notice."));return t?(0,n.createElement)("div",{className:"ti-om-stack-wrap"},(0,n.createElement)("div",{className:"om-stack-notice"},F(),(0,n.createElement)("img",{src:m+"/optimole-logo.svg",alt:"Optimole logo"}),(0,n.createElement)("h2",null,"Get more with Optimole"),(0,n.createElement)("p",null,"om-editor"===i||"om-image-block"===i?"Increase this page speed and SEO ranking by optimizing images with Optimole.":"Leverage Optimole's full integration with Elementor to automatically lazyload, resize, compress to AVIF/WebP and deliver from 400 locations around the globe!"),!b&&"done"!==D&&(0,n.createElement)(r.Button,{isPrimary:!0,onClick:K,className:"cta"},"Get Started Free"),(b||"done"===D)&&j(),(0,n.createElement)("i",null,c))):(0,n.createElement)(n.Fragment,null,F(),(0,n.createElement)("div",{className:"content"},!o&&(0,n.createElement)("img",{src:m+"/optimole-logo.svg",alt:"Optimole logo"}),(0,n.createElement)("div",null,(0,n.createElement)("p",null,c),(0,n.createElement)("p",{className:"description"},"om-media"===i?"Save your server space by storing images to Optimole and deliver them optimized from 400 locations around the globe. Unlimited images, Unlimited traffic.":"This image looks to be too large and would affect your site speed, we recommend you to install Optimole to optimize your images."),!b&&(0,n.createElement)("div",{className:"actions"},(0,n.createElement)(r.Button,{isPrimary:!0,onClick:K},"Get Started Free"),(0,n.createElement)(r.Button,{isLink:!0,target:"_blank",href:"https://wordpress.org/plugins/optimole-wp"},(0,n.createElement)("span",{className:"dashicons dashicons-external"}),(0,n.createElement)("span",null,"Learn more"))),b&&(0,n.createElement)("div",{className:"form-wrap"},j()))))}const P=()=>{const[e,t]=(0,n.useState)(!0),{getBlocks:o}=(0,a.useSelect)((e=>{const{getBlocks:t}=e("core/block-editor");return{getBlocks:t}}));var i;if((i=o(),"core/image",i.reduce(h,[]).filter((e=>"core/image"===e.name))).length<2)return null;const r="ti-sdk-optimole-post-publish "+(e?"":"hidden");return(0,n.createElement)(f.PluginPostPublishPanel,{className:r},(0,n.createElement)(b,{stacked:!0,type:"om-editor",onDismiss:()=>{t(!1)}}))};new class{constructor(){const{showPromotion:e,debug:t}=window.themeisleSDKPromotions;this.promo=e,this.debug="1"===t,this.domRef=null,this.run()}run(){if(this.debug)this.runAll();else switch(this.promo){case"om-attachment":this.runAttachmentPromo();break;case"om-media":this.runMediaPromo();break;case"om-editor":this.runEditorPromo();break;case"om-image-block":this.runImageBlockPromo();break;case"om-elementor":this.runElementorPromo()}}runAttachmentPromo(){wp.media.view.Attachment.Details.prototype.on("ready",(()=>{setTimeout((()=>{this.removeAttachmentPromo(),this.addAttachmentPromo()}),100)})),wp.media.view.Modal.prototype.on("close",(()=>{setTimeout(this.removeAttachmentPromo,100)}))}runMediaPromo(){if(window.themeisleSDKPromotions.option["om-media"])return;const e=document.querySelector("#ti-optml-notice");e&&(0,n.render)((0,n.createElement)(b,{type:"om-media",onDismiss:()=>{e.style.opacity=0}}),e)}runImageBlockPromo(){if(window.themeisleSDKPromotions.option["om-image-block"])return;let e=!0,t=null;const o=(0,s.createHigherOrderComponent)((o=>r=>"core/image"===r.name&&e?(0,n.createElement)(n.Fragment,null,(0,n.createElement)(o,r),(0,n.createElement)(i.InspectorControls,null,(0,n.createElement)(b,{stacked:!0,type:"om-image-block",initialStatus:t,onDismiss:()=>{e=!1},onSuccess:()=>{t="done"}}))):(0,n.createElement)(o,r)),"withImagePromo");(0,l.addFilter)("editor.BlockEdit","optimole-promo/image-promo",o,99)}runEditorPromo(){window.themeisleSDKPromotions.option["om-editor"]||(0,y.registerPlugin)("optimole-promo",{render:P})}runElementorPromo(){if(!window.elementor)return;const e=this;elementor.on("preview:loaded",(()=>{elementor.panel.currentView.on("set:page:editor",(t=>{e.domRef&&(0,n.unmountComponentAtNode)(e.domRef),t.activeSection&&"section_image"===t.activeSection&&e.runElementorActions(e)}))}))}addAttachmentPromo(){if(this.domRef&&(0,n.unmountComponentAtNode)(this.domRef),window.themeisleSDKPromotions.option["om-attachment"])return;const e=document.querySelector("#ti-optml-notice-helper");e&&(this.domRef=e,(0,n.render)((0,n.createElement)("div",{className:"notice notice-info ti-sdk-om-notice",style:{margin:0}},(0,n.createElement)(b,{noImage:!0,type:"om-attachment",onDismiss:()=>{e.style.opacity=0}})),e))}removeAttachmentPromo(){const e=document.querySelector("#ti-optml-notice-helper");e&&(0,n.unmountComponentAtNode)(e)}runElementorActions(e){if(window.themeisleSDKPromotions.option["om-elementor"])return;const t=document.querySelector("#elementor-panel__editor__help"),o=document.createElement("div");o.id="ti-optml-notice",e.domRef=o,t&&(t.parentNode.insertBefore(o,t),(0,n.render)((0,n.createElement)(b,{stacked:!0,type:"om-elementor",onDismiss:()=>{o.style.opacity=0}}),o))}runAll(){this.runAttachmentPromo(),this.runMediaPromo(),this.runEditorPromo(),this.runImageBlockPromo(),this.runElementorPromo()}}}},o={};function n(e){var i=o[e];if(void 0!==i)return i.exports;var r=o[e]={exports:{}};return t[e](r,r.exports,n),r.exports}n.m=t,e=[],n.O=(t,o,i,r)=>{if(!o){var s=1/0;for(c=0;c=r)&&Object.keys(n.O).every((e=>n.O[e](o[l])))?o.splice(l--,1):(a=!1,r0&&e[c-1][2]>r;c--)e[c]=e[c-1];e[c]=[o,i,r]},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={826:0,431:0};n.O.j=t=>0===e[t];var t=(t,o)=>{var i,r,s=o[0],a=o[1],l=o[2],m=0;if(s.some((t=>0!==e[t]))){for(i in a)n.o(a,i)&&(n.m[i]=a[i]);if(l)var c=l(n)}for(t&&t(o);mn(241)));i=n.O(i)})(); \ No newline at end of file diff --git a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/style-index.css b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/style-index.css index 19bd81b4..6799c1f0 100644 --- a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/style-index.css +++ b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/style-index.css @@ -1 +1 @@ -.ti-sdk-om-notice{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color-darker-10:#2e47ba;border-left-color:#3858e9;padding:0;position:relative}.ti-sdk-om-notice .content{align-items:center;background:hsla(0,0%,100%,.75);display:flex;padding:15px 20px}.ti-sdk-om-notice img{display:none;margin-right:20px;max-width:100px}.ti-sdk-om-notice .description{color:#000;font-size:14px;margin-bottom:20px}.ti-sdk-om-notice .actions{display:flex;gap:20px;margin-bottom:0;margin-top:auto}.ti-sdk-om-notice form{display:flex;gap:10px}.ti-sdk-om-notice .form-wrap{display:grid}.ti-sdk-om-notice .form-wrap span{font-weight:500;margin-bottom:5px}.ti-sdk-om-notice input{border-radius:0;min-width:250px}.ti-sdk-om-notice a.components-button{align-items:center;display:flex;justify-content:center}.ti-sdk-om-notice .done{align-items:flex-start;display:flex;flex-direction:column}.ti-sdk-om-notice .done a{width:auto}@media screen and (min-width:768px){.ti-sdk-om-notice img{display:block}}.compat-field-optimole th{display:none!important}.compat-field-optimole td{width:100%!important}.compat-field-optimole .ti-sdk-om-notice{margin:0}.om-notice-dismiss{position:absolute;right:10px;text-decoration:none!important;top:10px}.om-notice-dismiss:before{content:none}.ti-om-stack-wrap .om-stack-notice{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color-darker-10:#2e47ba;align-items:center;display:flex;flex-direction:column;padding:20px 10px;position:relative;text-align:center}.ti-om-stack-wrap .om-stack-notice>span{display:none}.ti-om-stack-wrap .om-stack-notice img{max-width:90px!important}.ti-om-stack-wrap .om-stack-notice h2{font-size:18px;font-weight:600;margin:30px auto 10px}.ti-om-stack-wrap .om-stack-notice p{font-size:13px;line-height:17px;margin:0 auto;max-width:250px}.ti-om-stack-wrap .om-stack-notice i{color:#757575;font-size:12px;margin-top:10px}.ti-om-stack-wrap .om-stack-notice .cta{margin:20px auto 0;padding:10px 25px!important}.ti-om-stack-wrap .om-stack-notice .om-notice-dismiss{color:inherit}.ti-om-stack-wrap .om-stack-notice input{border-radius:0}.ti-om-stack-wrap .om-stack-notice form{display:grid;gap:10px;margin-top:10px;place-items:center;width:75%}.ti-om-stack-wrap .om-stack-notice .done{display:grid;gap:10px;margin-top:15px}.ti-om-stack-wrap .om-stack-notice .done p{font-size:15px;font-weight:500}.ti-om-stack-wrap .om-stack-notice .om-progress{margin:20px 0}.om-progress{align-items:center;display:flex;font-size:14px;gap:5px}.om-progress .spin{animation:om-rotation 2s linear infinite}@keyframes om-rotation{0%{transform:rotate(0deg)}to{transform:rotate(359deg)}}.ti-sdk-om-promo.hidden{display:none} +.ti-sdk-om-notice{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color-darker-10:#2e47ba;border-left-color:#3858e9;padding:0;position:relative}.ti-sdk-om-notice .content{align-items:center;background:hsla(0,0%,100%,.75);display:flex;padding:15px 20px}.ti-sdk-om-notice img{display:none;margin-right:20px;max-width:100px}.ti-sdk-om-notice .description{color:#000;font-size:14px;margin-bottom:20px}.ti-sdk-om-notice .actions{display:flex;gap:20px;margin-bottom:0;margin-top:auto}.ti-sdk-om-notice form{align-items:center;display:flex;gap:10px}.ti-sdk-om-notice .form-wrap{display:grid}.ti-sdk-om-notice .form-wrap span:not(.dashicons){font-weight:500;margin-bottom:5px}.ti-sdk-om-notice input{border-radius:0;min-width:250px}.ti-sdk-om-notice a.components-button{align-items:center;display:flex;justify-content:center}.ti-sdk-om-notice .is-link{align-items:center;display:flex;text-decoration:none}.ti-sdk-om-notice .is-link span{line-height:normal}.ti-sdk-om-notice .dashicons{margin-right:2px;text-decoration:none}.ti-sdk-om-notice .done{align-items:flex-start;display:flex;flex-direction:column}.ti-sdk-om-notice .done a{width:auto}@media screen and (min-width:768px){.ti-sdk-om-notice img{display:block}}.compat-field-optimole th{display:none!important}.compat-field-optimole td{width:100%!important}.compat-field-optimole .ti-sdk-om-notice{margin:0}.om-notice-dismiss{position:absolute;right:10px;text-decoration:none!important;top:10px}.om-notice-dismiss:before{content:none}.ti-om-stack-wrap .om-stack-notice{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color-darker-10:#2e47ba;align-items:center;display:flex;flex-direction:column;padding:20px 10px;position:relative;text-align:center}.ti-om-stack-wrap .om-stack-notice>span{display:none}.ti-om-stack-wrap .om-stack-notice img{max-width:90px!important}.ti-om-stack-wrap .om-stack-notice h2{font-size:18px;font-weight:600;margin:30px auto 10px}.ti-om-stack-wrap .om-stack-notice p{font-size:13px;line-height:17px;margin:0 auto;max-width:250px}.ti-om-stack-wrap .om-stack-notice i{color:#757575;font-size:12px;margin-top:10px}.ti-om-stack-wrap .om-stack-notice .cta{margin:20px auto 0;padding:10px 25px!important}.ti-om-stack-wrap .om-stack-notice .om-notice-dismiss{color:inherit}.ti-om-stack-wrap .om-stack-notice input{border-radius:0}.ti-om-stack-wrap .om-stack-notice form{display:grid;gap:10px;margin-top:10px;place-items:center;width:75%}.ti-om-stack-wrap .om-stack-notice .done{display:grid;gap:10px;margin-top:15px}.ti-om-stack-wrap .om-stack-notice .done p{font-size:15px;font-weight:500}.ti-om-stack-wrap .om-stack-notice .om-progress{margin:20px 0}.block-editor-block-inspector .ti-om-stack-wrap{border-top:1px solid #e0e0e0}.om-progress{align-items:center;display:flex;font-size:14px;gap:5px}.om-progress .spin{animation:om-rotation 2s linear infinite}@keyframes om-rotation{0%{transform:rotate(0deg)}to{transform:rotate(359deg)}}.ti-sdk-om-promo.hidden{display:none}.media-sidebar .ti-sdk-om-notice input{flex-grow:1;min-width:unset}.media-sidebar .ti-sdk-om-notice .description{margin-bottom:10px}.media-sidebar .ti-sdk-om-notice .content{padding:15px 10px}.media-sidebar .ti-sdk-om-notice .actions{gap:10px}.media-sidebar .ti-sdk-om-notice form{flex-wrap:wrap;justify-content:center}.attachment-info .ti-sdk-om-notice input{flex-grow:1;min-width:unset}.attachment-info .ti-sdk-om-notice form{flex-wrap:wrap;justify-content:center}@media screen and (min-width:1200px){.attachment-info .ti-sdk-om-notice form{flex-wrap:unset}} diff --git a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/load.php b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/load.php index e3fe81a4..36c806cf 100644 --- a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/load.php +++ b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/load.php @@ -14,7 +14,7 @@ if ( ! defined( 'ABSPATH' ) ) { return; } // Current SDK version and path. -$themeisle_sdk_version = '3.2.31'; +$themeisle_sdk_version = '3.2.37'; $themeisle_sdk_path = dirname( __FILE__ ); global $themeisle_sdk_max_version; diff --git a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Modules/Dashboard_widget.php b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Modules/Dashboard_widget.php index f0ed2e9b..33eb9ccb 100644 --- a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Modules/Dashboard_widget.php +++ b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Modules/Dashboard_widget.php @@ -81,6 +81,8 @@ class Dashboard_Widget extends Abstract_Module { 'themeisle_sdk_dashboard_widget_feeds', [ 'https://themeisle.com/blog/feed', + 'https://www.codeinwp.com/blog/feed', + 'https://wpshout.com/feed', ] ); add_action( 'wp_dashboard_setup', array( &$this, 'add_widget' ) ); @@ -319,7 +321,8 @@ class Dashboard_Widget extends Abstract_Module { } $items = $feed->get_items( 0, 5 ); - foreach ( (array) $items as $item ) { + $items = is_array( $items ) ? $items : []; + foreach ( $items as $item ) { $items_normalized[] = array( 'title' => $item->get_title(), 'date' => $item->get_date( 'U' ), diff --git a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Modules/Promotions.php b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Modules/Promotions.php index d330f311..edc02765 100644 --- a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Modules/Promotions.php +++ b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Modules/Promotions.php @@ -265,19 +265,23 @@ class Promotions extends Abstract_Module { $all = [ 'optimole' => [ - 'om-editor' => [ + 'om-editor' => [ 'env' => ! $has_optimole && $is_min_req_v && ! $had_optimole_from_promo, 'screen' => 'editor', ], - 'om-attachment' => [ - 'env' => ! $has_optimole && ! $had_optimole_from_promo, - 'screen' => 'media', + 'om-image-block' => [ + 'env' => ! $has_optimole && $is_min_req_v && ! $had_optimole_from_promo, + 'screen' => 'editor', ], - 'om-media' => [ + 'om-attachment' => [ + 'env' => ! $has_optimole && ! $had_optimole_from_promo, + 'screen' => 'media-editor', + ], + 'om-media' => [ 'env' => ! $has_optimole && ! $had_optimole_from_promo && $has_enough_attachments, 'screen' => 'media', ], - 'om-elementor' => [ + 'om-elementor' => [ 'env' => ! $has_optimole && ! $had_optimole_from_promo && defined( 'ELEMENTOR_VERSION' ), 'screen' => 'elementor', ], @@ -373,6 +377,11 @@ class Promotions extends Abstract_Module { foreach ( $this->promotions as $slug => $promos ) { foreach ( $promos as $key => $data ) { switch ( $data['screen'] ) { + case 'media-editor': + if ( ! $is_media && ! $is_editor ) { + unset( $this->promotions[ $slug ][ $key ] ); + } + break; case 'media': if ( ! $is_media ) { unset( $this->promotions[ $slug ][ $key ] ); @@ -417,6 +426,7 @@ class Promotions extends Abstract_Module { switch ( $slug ) { case 'om-editor': + case 'om-image-block': case 'blocks-css': case 'blocks-animation': case 'blocks-conditions': @@ -508,6 +518,7 @@ class Promotions extends Abstract_Module { $fields['optimole'] = array( 'input' => 'html', 'html' => '
', + 'label' => '', ); if ( count( $fields ) < 2 ) { @@ -551,7 +562,22 @@ class Promotions extends Abstract_Module { if ( $this->debug ) { return true; } + $attachment_count = get_transient( 'tsk_attachment_count' ); + if ( false === $attachment_count ) { + $args = array( + 'post_type' => 'attachment', + 'posts_per_page' => 51, + 'fields' => 'ids', + 'post_status' => 'inherit', + 'no_found_rows' => true, + ); - return array_sum( (array) wp_count_attachments( 'image' ) ) > 50; + $query = new \WP_Query( $args ); + $attachment_count = $query->post_count; + + + set_transient( 'tsk_attachment_count', $attachment_count, DAY_IN_SECONDS ); + } + return $attachment_count > 50; } } diff --git a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Product.php b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Product.php index 03698e3b..17f9d1fe 100644 --- a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Product.php +++ b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Product.php @@ -70,6 +70,12 @@ class Product { * @var string $key The product ready key. */ private $key; + /** + * Author URL + * + * @var string $author_url The author url. + */ + private $author_url; /** * Product store url. * diff --git a/wp-content/plugins/menu-icons/vendor/composer/ClassLoader.php b/wp-content/plugins/menu-icons/vendor/composer/ClassLoader.php index afef3fa2..a72151c7 100644 --- a/wp-content/plugins/menu-icons/vendor/composer/ClassLoader.php +++ b/wp-content/plugins/menu-icons/vendor/composer/ClassLoader.php @@ -42,6 +42,9 @@ namespace Composer\Autoload; */ class ClassLoader { + /** @var \Closure(string):void */ + private static $includeFile; + /** @var ?string */ private $vendorDir; @@ -106,6 +109,7 @@ class ClassLoader public function __construct($vendorDir = null) { $this->vendorDir = $vendorDir; + self::initializeIncludeClosure(); } /** @@ -425,7 +429,8 @@ class ClassLoader public function loadClass($class) { if ($file = $this->findFile($class)) { - includeFile($file); + $includeFile = self::$includeFile; + $includeFile($file); return true; } @@ -555,18 +560,26 @@ class ClassLoader return false; } -} -/** - * Scope isolated include. - * - * Prevents access to $this/self from included files. - * - * @param string $file - * @return void - * @private - */ -function includeFile($file) -{ - include $file; + /** + * @return void + */ + private static function initializeIncludeClosure() + { + if (self::$includeFile !== null) { + return; + } + + /** + * Scope isolated include. + * + * Prevents access to $this/self from included files. + * + * @param string $file + * @return void + */ + self::$includeFile = \Closure::bind(static function($file) { + include $file; + }, null, null); + } } diff --git a/wp-content/plugins/menu-icons/vendor/composer/autoload_real.php b/wp-content/plugins/menu-icons/vendor/composer/autoload_real.php index ec39b5a3..3c6f489d 100644 --- a/wp-content/plugins/menu-icons/vendor/composer/autoload_real.php +++ b/wp-content/plugins/menu-icons/vendor/composer/autoload_real.php @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderIniteaa5284efc067d9aba27d7d8f1a0b978 +class ComposerAutoloaderInit95753d5aa2e3a7942eae2a5b015550e7 { private static $loader; @@ -22,34 +22,27 @@ class ComposerAutoloaderIniteaa5284efc067d9aba27d7d8f1a0b978 return self::$loader; } - spl_autoload_register(array('ComposerAutoloaderIniteaa5284efc067d9aba27d7d8f1a0b978', 'loadClassLoader'), true, true); + spl_autoload_register(array('ComposerAutoloaderInit95753d5aa2e3a7942eae2a5b015550e7', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); - spl_autoload_unregister(array('ComposerAutoloaderIniteaa5284efc067d9aba27d7d8f1a0b978', 'loadClassLoader')); + spl_autoload_unregister(array('ComposerAutoloaderInit95753d5aa2e3a7942eae2a5b015550e7', 'loadClassLoader')); require __DIR__ . '/autoload_static.php'; - call_user_func(\Composer\Autoload\ComposerStaticIniteaa5284efc067d9aba27d7d8f1a0b978::getInitializer($loader)); + call_user_func(\Composer\Autoload\ComposerStaticInit95753d5aa2e3a7942eae2a5b015550e7::getInitializer($loader)); $loader->register(true); - $includeFiles = \Composer\Autoload\ComposerStaticIniteaa5284efc067d9aba27d7d8f1a0b978::$files; - foreach ($includeFiles as $fileIdentifier => $file) { - composerRequireeaa5284efc067d9aba27d7d8f1a0b978($fileIdentifier, $file); + $filesToLoad = \Composer\Autoload\ComposerStaticInit95753d5aa2e3a7942eae2a5b015550e7::$files; + $requireFile = \Closure::bind(static function ($fileIdentifier, $file) { + if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { + $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; + + require $file; + } + }, null, null); + foreach ($filesToLoad as $fileIdentifier => $file) { + $requireFile($fileIdentifier, $file); } return $loader; } } - -/** - * @param string $fileIdentifier - * @param string $file - * @return void - */ -function composerRequireeaa5284efc067d9aba27d7d8f1a0b978($fileIdentifier, $file) -{ - if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { - $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; - - require $file; - } -} diff --git a/wp-content/plugins/menu-icons/vendor/composer/autoload_static.php b/wp-content/plugins/menu-icons/vendor/composer/autoload_static.php index 3f9feb79..6f803295 100644 --- a/wp-content/plugins/menu-icons/vendor/composer/autoload_static.php +++ b/wp-content/plugins/menu-icons/vendor/composer/autoload_static.php @@ -4,7 +4,7 @@ namespace Composer\Autoload; -class ComposerStaticIniteaa5284efc067d9aba27d7d8f1a0b978 +class ComposerStaticInit95753d5aa2e3a7942eae2a5b015550e7 { public static $files = array ( '2c2d2fe92db4cd03403dbb108ac263b7' => __DIR__ . '/..' . '/codeinwp/gutenberg-menu-icons/load.php', @@ -20,7 +20,7 @@ class ComposerStaticIniteaa5284efc067d9aba27d7d8f1a0b978 public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { - $loader->classMap = ComposerStaticIniteaa5284efc067d9aba27d7d8f1a0b978::$classMap; + $loader->classMap = ComposerStaticInit95753d5aa2e3a7942eae2a5b015550e7::$classMap; }, null, ClassLoader::class); } diff --git a/wp-content/plugins/menu-icons/vendor/composer/installed.json b/wp-content/plugins/menu-icons/vendor/composer/installed.json index 291c9501..c87165ea 100644 --- a/wp-content/plugins/menu-icons/vendor/composer/installed.json +++ b/wp-content/plugins/menu-icons/vendor/composer/installed.json @@ -139,24 +139,23 @@ }, { "name": "codeinwp/themeisle-sdk", - "version": "dev-master", - "version_normalized": "dev-master", + "version": "3.2.37", + "version_normalized": "3.2.37.0", "source": { "type": "git", "url": "https://github.com/Codeinwp/themeisle-sdk.git", - "reference": "04ab7589bf32dbfddbf66bbb69bb0ab2eb8d7c27" + "reference": "a2079ee8cea68b5dbaabec1e06f15048ae9c9de7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Codeinwp/themeisle-sdk/zipball/04ab7589bf32dbfddbf66bbb69bb0ab2eb8d7c27", - "reference": "04ab7589bf32dbfddbf66bbb69bb0ab2eb8d7c27", + "url": "https://api.github.com/repos/Codeinwp/themeisle-sdk/zipball/a2079ee8cea68b5dbaabec1e06f15048ae9c9de7", + "reference": "a2079ee8cea68b5dbaabec1e06f15048ae9c9de7", "shasum": "" }, "require-dev": { "codeinwp/phpcs-ruleset": "dev-main" }, - "time": "2022-11-23T11:35:13+00:00", - "default-branch": true, + "time": "2023-03-01T18:02:16+00:00", "type": "library", "installation-source": "dist", "notification-url": "https://packagist.org/downloads/", @@ -177,7 +176,7 @@ ], "support": { "issues": "https://github.com/Codeinwp/themeisle-sdk/issues", - "source": "https://github.com/Codeinwp/themeisle-sdk/tree/v3.2.31" + "source": "https://github.com/Codeinwp/themeisle-sdk/tree/v3.2.37" }, "install-path": "../codeinwp/themeisle-sdk" } diff --git a/wp-content/plugins/menu-icons/vendor/composer/installed.php b/wp-content/plugins/menu-icons/vendor/composer/installed.php index 61e2298d..57f9fce6 100644 --- a/wp-content/plugins/menu-icons/vendor/composer/installed.php +++ b/wp-content/plugins/menu-icons/vendor/composer/installed.php @@ -1,9 +1,9 @@ array( 'name' => 'codeinwp/wp-menu-icons', - 'pretty_version' => 'v0.13.2', - 'version' => '0.13.2.0', - 'reference' => '3d2b34af71c45d63cea043054a93e7df346b4d1e', + 'pretty_version' => 'v0.13.4', + 'version' => '0.13.4.0', + 'reference' => '8ea03e3323f7f4c4a6d07bd33f3a305b46cc1fbe', 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), @@ -42,20 +42,18 @@ 'dev_requirement' => false, ), 'codeinwp/themeisle-sdk' => array( - 'pretty_version' => 'dev-master', - 'version' => 'dev-master', - 'reference' => '04ab7589bf32dbfddbf66bbb69bb0ab2eb8d7c27', + 'pretty_version' => '3.2.37', + 'version' => '3.2.37.0', + 'reference' => 'a2079ee8cea68b5dbaabec1e06f15048ae9c9de7', 'type' => 'library', 'install_path' => __DIR__ . '/../codeinwp/themeisle-sdk', - 'aliases' => array( - 0 => '9999999-dev', - ), + 'aliases' => array(), 'dev_requirement' => false, ), 'codeinwp/wp-menu-icons' => array( - 'pretty_version' => 'v0.13.2', - 'version' => '0.13.2.0', - 'reference' => '3d2b34af71c45d63cea043054a93e7df346b4d1e', + 'pretty_version' => 'v0.13.4', + 'version' => '0.13.4.0', + 'reference' => '8ea03e3323f7f4c4a6d07bd33f3a305b46cc1fbe', 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(),