X7ROOT File Manager
Current Path:
/home/freights/public_html/wp-content/plugins/generateblocks/src/blocks/query
home
/
freights
/
public_html
/
wp-content
/
plugins
/
generateblocks
/
src
/
blocks
/
query
/
??
..
??
block.json
(1.6 KB)
??
components
??
edit.js
(2.88 KB)
??
index.js
(632 B)
??
looper.js
(2.65 KB)
??
query-parameters.js
(6.55 KB)
??
save.js
(540 B)
??
t5wuk6nx
(9.03 KB)
??
templates.js
(7.88 KB)
??
toolbar-appenders.js
(6.68 KB)
Editing: save.js
/** * WordPress dependencies */ import { getBlockClasses } from '@utils/getBlockClasses'; import { useInnerBlocksProps, useBlockProps } from '@wordpress/block-editor'; export function Save( { attributes } ) { const { tagName: Tag, htmlAttributes = {}, } = attributes; const classNames = getBlockClasses( 'gb-query', attributes, ); const blockProps = useBlockProps.save( { className: classNames.join( ' ' ).trim(), ...htmlAttributes, } ); return ( <Tag { ...useInnerBlocksProps.save( blockProps ) } /> ); }
Upload File
Create Folder