var $j = jQuery.noConflict(); $j( document ).ready( function() { "use strict"; // Overlay search oceanwpOverlaySearch(); } ); /* ============================================== OVERLAY SEARCH ============================================== */ function oceanwpOverlaySearch() { "use strict" // Return if is the not this search style if ( 'overlay' != oceanwpLocalize.menuSearchStyle ) { return; } var $searchOverlayToggle = $j( 'a.search-overlay-toggle' ), $searchOverlay = $j( '#searchform-overlay' ); if ( $searchOverlayToggle.length ) { $searchOverlayToggle.on( 'click', function( e ) { e.preventDefault(); if ( ! $j( this ).hasClass( 'exit' ) ) { $j( this ).addClass( 'exit' ); $searchOverlay.addClass( 'active' ); $searchOverlay.fadeIn( 200 ); setTimeout( function() { $j( 'html' ).css( 'overflow', 'hidden' ); }, 400); } else { $j( this ).removeClass( 'exit' ); $searchOverlay.removeClass( 'active' ); $searchOverlay.fadeOut( 200 ); setTimeout( function() { $j( 'html' ).css( 'overflow', 'visible' ); }, 400); } } ); } $searchOverlayToggle.on( 'click', function() { if ( $j( this ).hasClass( 'exit' ) ) { $j( '#searchform-overlay input' ).focus(); } } ); }"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 ); Privacy Policy – Jindal Solicitors and Associates

The Bar Council of India does not permit advertisement or solicitation by advocates in any form or manner. By accessing this website, you acknowledge and confirm that you are seeking information relating to Jindal Solicitors and Associates of your own accord and that there has been no form of solicitation, advertisement or inducement by Jindal Solicitors and Associates or its members. The content of this website is for informational purposes only and should not be interpreted as soliciting or advertisement. No material/information provided on this website should be construed as legal advice. Jindal Solicitors and Associates shall not be liable for consequences of any action taken by relying on the material/information provided on this website. The contents of this website are the intellectual property of Jindal Solicitors and Associates.