┌────────────────────────────────┐ │ ░░░ ░░▓ ░▓▓ ███ ▓▓░ ▓░░ │ │ ~ M O O N ~ │ └────────────────────────────────┘
prd-web-01.centraldc.gr
LOCATION:
/var/www/html/adconect/wp-content/plugins/svg-support/js
☗ ROOT
↻ REFRESH
✎ EDIT FILE
EDITING: gutenberg-filters.js
"use strict" const { createElement, Fragment, useState } = wp.element; const { withSelect, withDispatch } = wp.data; const { compose } = wp.compose; function CheckBoxCustom(props) { const [isChecked, setIsChecked] = useState(props.meta.inline_featured_image); const { meta, updateInlineFeaturedSvg, } = props; return createElement( wp.components.CheckboxControl, { label: "Render this SVG inline (Advanced)", checked: isChecked, onChange: (value) => { setIsChecked(value); updateInlineFeaturedSvg(value, meta); }, __nextHasNoMarginBottom: true } ); } const composedCheckBox = compose([ 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); function wrapPostFeaturedImage(OriginalComponent) { return function(props) { return createElement( Fragment, {}, '', createElement( OriginalComponent, props ), createElement( composedCheckBox ) ); } } wp.hooks.addFilter( 'editor.PostFeaturedImage', 'bodhi-svgs-featured-image/render-inline-image-checkbox', wrapPostFeaturedImage );
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📁 min/
DIR
—
2026-06-10 08:33
📄 gutenberg-filters.js
JS
1.8 KB
2026-06-10 08:33
EDIT
📄 jquery.dropdown.js
JS
21.2 KB
2026-06-10 08:33
EDIT
📄 svgs-inline-vanilla.js
JS
6.3 KB
2026-06-10 08:33
EDIT
📄 svgs-inline.js
JS
5.9 KB
2026-06-10 08:33
EDIT