"use strict" const el = wp.element.createElement; const withState = wp.compose.withState; const withSelect = wp.data.withSelect; const withDispatch = wp.data.withDispatch; wp.hooks.addFilter( 'editor.PostFeaturedImage', 'bodhi-svgs-featured-image/render-inline-image-checkbox', wrapPostFeaturedImage ); function wrapPostFeaturedImage( OriginalComponent ) { return function( props ) { return ( el( wp.element.Fragment, {}, '', el( OriginalComponent, props ), el( composedCheckBox ) ) ); } } class CheckBoxCustom extends React.Component { render() { const { meta, updateInlineFeaturedSvg, } = this.props; return ( el( wp.components.CheckboxControl, { label: "Render this SVG inline (Advanced)", checked: meta.inline_featured_image, onChange: ( value ) => { this.setState( { isChecked: value } ); updateInlineFeaturedSvg( value, meta ); } } ) ) } } const composedCheckBox = wp.compose.compose( [ withState( ( value ) => { isChecked: value } ), withSelect( ( select ) => { const currentMeta = select( 'core/editor' ).getCurrentPostAttribute( 'meta' ); const editedMeta = select( 'core/editor' ).getEditedPostAttribute( 'meta' ); return { meta: { ...currentMeta, ...editedMeta }, }; } ), withDispatch( ( dispatch ) => ( { updateInlineFeaturedSvg( value, meta ) { meta = { ...meta, inline_featured_image: value, }; dispatch( 'core/editor' ).editPost( { meta } ); }, } ) ), ] )( CheckBoxCustom ); /*! Select2 4.0.5 | https://github.com/select2/select2/blob/master/LICENSE.md */ (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/sl",[],function(){return{errorLoading:function(){return"Zadetkov iskanja ni bilo mogoče naložiti."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Prosim zbrišite "+t+" znak";return t==2?n+="a":t!=1&&(n+="e"),n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Prosim vpišite še "+t+" znak";return t==2?n+="a":t!=1&&(n+="e"),n},loadingMore:function(){return"Nalagam več zadetkov…"},maximumSelected:function(e){var t="Označite lahko največ "+e.maximum+" predmet";return e.maximum==2?t+="a":e.maximum!=1&&(t+="e"),t},noResults:function(){return"Ni zadetkov."},searching:function(){return"Iščem…"}}}),{define:e.define,require:e.require}})();!function(){"use strict";var e={d:function(t,n){for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{Context:function(){return i},SessionStorageProvider:function(){return a},getSessionStorageItem:function(){return o},removeSessionStorageItem:function(){return s},setSessionStorageItem:function(){return r},useSessionStorage:function(){return u}});var n=window.React,o=e=>JSON.parse(sessionStorage.getItem(e)||"{}")?.item,r=(e,t)=>{sessionStorage.setItem(e,JSON.stringify({item:t})),window.dispatchEvent(new StorageEvent("storage",{key:e,storageArea:sessionStorage}))},s=e=>{sessionStorage.removeItem(e),window.dispatchEvent(new StorageEvent("storage",{key:e,storageArea:sessionStorage}))},i=(0,n.createContext)(null);function a({children:e,prefix:t}){const o=(0,n.useContext)(i)?.prefix??"",r=o?`${o}/${t}`:t;return n.createElement(i.Provider,{value:{prefix:r}},e)}var u=e=>{const t=`${(0,n.useContext)(i)?.prefix??""}/${e}`,[o,a]=(0,n.useState)();return(0,n.useEffect)((()=>g(t,(e=>{a(e??null)}))),[t]),[o,e=>{r(t,e)},()=>{s(t)}]},g=(e,t)=>{t(o(e));const n=new AbortController;return window.addEventListener("storage",(n=>{n.key===e&&n.storageArea===sessionStorage&&t(o(e))}),{signal:n.signal}),()=>{n.abort()}};(window.elementorV2=window.elementorV2||{}).session=t}(),window.elementorV2.session?.init?.(); entreprise routage circuit electronique

Il semble que le lien pointant ici soit défectueux. Et si vous essayiez plutôt de rechercher ?

Retour en haut