Server IP : 172.67.158.161 / Your IP : 3.15.226.147 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/reviews/ |
Upload File : |
/** * External dependencies */ import { renderFrontend } from '@woocommerce/base-utils'; /** * Internal dependencies */ import FrontendContainerBlock from './frontend-container-block.js'; const selector = ` .wp-block-woocommerce-all-reviews, .wp-block-woocommerce-reviews-by-product, .wp-block-woocommerce-reviews-by-category `; const getProps = ( el ) => { return { attributes: { showReviewDate: el.classList.contains( 'has-date' ), showReviewerName: el.classList.contains( 'has-name' ), showReviewImage: el.classList.contains( 'has-image' ), showReviewRating: el.classList.contains( 'has-rating' ), showReviewContent: el.classList.contains( 'has-content' ), showProductName: el.classList.contains( 'has-product-name' ), }, }; }; renderFrontend( { selector, Block: FrontendContainerBlock, getProps } );