┌────────────────────────────────┐ │ ░░░ ░░▓ ░▓▓ ███ ▓▓░ ▓░░ │ │ ~ M O O N ~ │ └────────────────────────────────┘
prd-web-01.centraldc.gr
LOCATION:
/var/www/html/graviera-pro/wp-content/plugins/lazy-blocks/controls/range
☗ ROOT
↻ REFRESH
✎ EDIT FILE
EDITING: script.js
/** * WordPress dependencies. */ import { __ } from '@wordpress/i18n'; import { addFilter } from '@wordpress/hooks'; import { PanelBody, RangeControl, TextControl } from '@wordpress/components'; /** * Internal dependencies. */ import BaseControl from '../../assets/components/base-control'; import useBlockControlProps from '../../assets/hooks/use-block-control-props'; /** * Control render in editor. */ addFilter('lzb.editor.control.range.render', 'lzb.editor', (render, props) => ( <BaseControl {...useBlockControlProps(props, { label: false })}> <RangeControl label={props.data.label} min={props.data.min === '' ? -Infinity : parseFloat(props.data.min)} max={props.data.max === '' ? Infinity : parseFloat(props.data.max)} step={props.data.step === '' ? 1 : parseFloat(props.data.step)} value={props.getValue()} onChange={(val) => { props.onChange(parseFloat(val)); }} __next40pxDefaultSize __nextHasNoMarginBottom /> </BaseControl> )); /** * Control settings render in block builder. */ addFilter( 'lzb.constructor.control.range.settings', 'lzb.constructor', (render, props) => { const { updateData, data } = props; return ( <> <PanelBody> <TextControl label={__('Minimum Value', 'lazy-blocks')} type="number" step={data.step} value={data.min} onChange={(value) => updateData({ min: value })} __next40pxDefaultSize __nextHasNoMarginBottom /> </PanelBody> <PanelBody> <TextControl label={__('Maximum Value', 'lazy-blocks')} type="number" step={data.step} value={data.max} onChange={(value) => updateData({ max: value })} __next40pxDefaultSize __nextHasNoMarginBottom /> </PanelBody> <PanelBody> <TextControl label={__('Step Size', 'lazy-blocks')} type="number" value={data.step} onChange={(value) => updateData({ step: value })} __next40pxDefaultSize __nextHasNoMarginBottom /> </PanelBody> </> ); } );
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 index.php
PHP
1.3 KB
2026-05-20 08:40
EDIT
📄 script.js
JS
2 KB
2026-05-20 08:40
EDIT