📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: Apache
2026-06-21 10:35:45
📂
/ (Root)
/
home
/
xeqi7597
/
cds.claireduwig.com
/
wp-content
/
plugins
/
generateblocks
/
src
/
blocks
/
button
/
components
📍 /home/xeqi7597/cds.claireduwig.com/wp-content/plugins/generateblocks/src/blocks/button/components
🔄 Refresh
✏️
Editing: InspectorAdvancedControls.js
Writable
import { InspectorAdvancedControls } from '@wordpress/block-editor'; import HTMLAnchor from '../../../components/html-anchor'; import { __ } from '@wordpress/i18n'; import { SelectControl, TextControl } from '@wordpress/components'; export default ( { anchor, ariaLabel, buttonType, setAttributes } ) => { return ( <InspectorAdvancedControls> <HTMLAnchor anchor={ anchor } setAttributes={ setAttributes } /> <TextControl label={ __( 'ARIA Label', 'generateblocks' ) } help={ __( 'Helpful to people using screen readers.', 'generateblocks' ) } value={ ariaLabel } onChange={ ( value ) => { setAttributes( { ariaLabel: value, } ); } } /> <SelectControl label={ __( 'Button type', 'generateblocks' ) } value={ buttonType } onChange={ ( value ) => setAttributes( { buttonType: value } ) } options={ [ { value: 'link', label: __( 'Link', 'generateblocks' ) }, { value: 'button', label: '<button>' }, ] } /> </InspectorAdvancedControls> ); };
💾 Save Changes
❌ Cancel