Server IP : 172.67.158.161 / Your IP : 18.218.37.5 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/blocks/cart-checkout/cart/ |
Upload File : |
/** * External dependencies */ import { __ } from '@wordpress/i18n'; import { InnerBlocks } from '@wordpress/block-editor'; import { Icon, cart } from '@woocommerce/icons'; import classnames from 'classnames'; import { registerFeaturePluginBlockType } from '@woocommerce/block-settings'; /** * Internal dependencies */ import edit from './edit'; import './style.scss'; import blockAttributes from './attributes'; /** * Register and run the Cart block. */ const settings = { title: __( 'Cart', 'woocommerce' ), icon: { src: <Icon srcElement={ cart } />, foreground: '#96588a', }, category: 'woocommerce', keywords: [ __( 'WooCommerce', 'woocommerce' ) ], description: __( 'Shopping cart.', 'woocommerce' ), supports: { align: [ 'wide', 'full' ], html: false, multiple: false, }, example: { attributes: { isPreview: true, }, }, attributes: blockAttributes, edit, /** * Save the props to post content. */ save( { attributes } ) { return ( <div className={ classnames( 'is-loading', attributes.className ) }> <InnerBlocks.Content /> </div> ); }, }; registerFeaturePluginBlockType( 'woocommerce/cart', settings );