Server IP : 172.67.158.161 / Your IP : 18.219.13.244 Web Server : LiteSpeed System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : giankuin ( 1871) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/thread-self/root/home/giankuin/sieuthiweb.com.vn/wp-content/plugins/woocommerce/packages/woocommerce-blocks/assets/js/atomic/blocks/product/price/ |
Upload File : |
/** * External dependencies */ import { __ } from '@wordpress/i18n'; import { registerBlockType } from '@wordpress/blocks'; import { CURRENCY } from '@woocommerce/settings'; /** * Internal dependencies */ import sharedConfig from '../shared-config'; import attributes from './attributes'; import edit from './edit'; const blockConfig = { title: __( 'Product Price', 'woocommerce' ), description: __( 'Display the price of a product.', 'woocommerce' ), icon: { src: <b style={ { color: '$96588a' } }>{ CURRENCY.symbol }</b>, foreground: '#96588a', }, edit, attributes, }; registerBlockType( 'woocommerce/product-price', { ...sharedConfig, ...blockConfig, } );