🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-08-06 23:29:13 | PHP 8.2.32
📂
/ (Root)
/
home
/
eliteewa
/
public_html
/
wp-content
/
themes
/
blocksy
/
static
/
js
/
editor
/
utils
📍 /home/eliteewa/public_html/wp-content/themes/blocksy/static/js/editor/utils
🔄 Refresh
✏️
Editing: index.js
Writable
import { getFirstLevelOptions } from '../../options/helpers/get-value-from-input' export const getAttributesFromOptions = (options) => { return Object.entries(getFirstLevelOptions(options)).reduce((acc, item) => { const blocksyType = item[1].type let type = 'string' if (blocksyType === 'ct-number') { type = 'number' } if ( blocksyType === 'ct-visibility' || blocksyType === 'ct-checkboxes' || blocksyType === 'ct-image-uploader' ) { type = 'object' } if (blocksyType === 'ct-layers') { type = 'array' } acc[item[0]] = { type, default: item[1].value, } return acc }, {}) } export const getDefaultsFromOptions = (options) => { const attributes = getAttributesFromOptions(options) return Object.entries(attributes).reduce((acc, item) => { acc[item[0]] = item[1].default return acc }, {}) } export const getOptionsForBlock = (blockName) => { return ( (window.ct_localizations || window.ct_customizer_localizations) ?.block_editor_data?.[blockName] || [] ) }
💾 Save Changes
❌ Cancel