File manager - Edit - /usr/local/sitepad/editor/site-data/plugins/kkart-pro/packages/kkart-blocks/assets/js/utils/deprecations.js
Back
/** * External dependencies */ import classnames from 'classnames'; import { RawHTML } from '@wordpress/element'; /** * Internal dependencies */ import getShortcode from './get-shortcode'; /** * Return a save function using the blockType to generate the correct shortcode. * * @param {*} blockType Block being rendered. */ export const deprecatedConvertToShortcode = ( blockType ) => { return function ( props ) { const { align, contentVisibility } = props.attributes; const classes = classnames( align ? `align${ align }` : '', { 'is-hidden-title': ! contentVisibility.title, 'is-hidden-price': ! contentVisibility.price, 'is-hidden-rating': ! contentVisibility.rating, 'is-hidden-button': ! contentVisibility.button, } ); return ( <RawHTML className={ classes }> { getShortcode( props, blockType ) } </RawHTML> ); }; };
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Generation time: 0.05 |
proxy
|
phpinfo
|
Settings