Server IP : 104.21.14.103 / Your IP : 3.15.228.55 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/base/components/cart-checkout/policies/ |
Upload File : |
/** * External dependencies */ import { __ } from '@wordpress/i18n'; import { PRIVACY_URL, TERMS_URL, PRIVACY_PAGE_NAME, TERMS_PAGE_NAME, } from '@woocommerce/block-settings'; import { decodeEntities } from '@wordpress/html-entities'; /** * Internal dependencies */ import './style.scss'; const Policies = () => { return ( <ul className="wc-block-components-checkout-policies"> { PRIVACY_URL && ( <li className="wc-block-components-checkout-policies__item"> <a href={ PRIVACY_URL } target="_blank" rel="noopener noreferrer" > { PRIVACY_PAGE_NAME ? decodeEntities( PRIVACY_PAGE_NAME ) : __( 'Privacy Policy', 'woocommerce' ) } </a> </li> ) } { TERMS_URL && ( <li className="wc-block-components-checkout-policies__item"> <a href={ TERMS_URL } target="_blank" rel="noopener noreferrer" > { TERMS_PAGE_NAME ? decodeEntities( TERMS_PAGE_NAME ) : __( 'Terms and Conditions', 'woocommerce' ) } </a> </li> ) } </ul> ); }; export default Policies;