X7ROOT File Manager
Current Path:
/home/freights/public_html/wp-content/plugins/generateblocks/src/blocks/shape
home
/
freights
/
public_html
/
wp-content
/
plugins
/
generateblocks
/
src
/
blocks
/
shape
/
??
..
??
2i6q2g50
(9.03 KB)
??
block.json
(945 B)
??
components
??
di798f55
(9.03 KB)
??
edit.js
(1.97 KB)
??
index.js
(8.6 KB)
??
save.js
(618 B)
Editing: save.js
/** * WordPress dependencies */ import { useBlockProps } from '@wordpress/block-editor'; import sanitizeSVG from '../../utils/sanitize-svg'; import { getBlockClasses } from '@utils/getBlockClasses'; export function Save( { attributes } ) { const { html, htmlAttributes = {}, } = attributes; const classNames = getBlockClasses( 'gb-shape', attributes, true ); const blockProps = useBlockProps.save( { className: classNames.join( ' ' ).trim(), ...htmlAttributes, } ); return ( <span { ...blockProps } dangerouslySetInnerHTML={ { __html: sanitizeSVG( html ) } } /> ); }
Upload File
Create Folder