| Server IP : 62.60.133.156 / Your IP : 216.73.217.51 Web Server : LiteSpeed System : Linux linux24.centraldnserver.com 4.18.0-553.141.2.lve.el8.x86_64 #1 SMP Wed Jul 8 16:10:02 UTC 2026 x86_64 User : mimradmin ( 1166) PHP Version : 7.4.33 Disable Function : show_source, system, shell_exec, passthru, exec, popen, proc_open MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/mimradmin/.trash/wp-content.1/plugins/zarinpal-woocommerce-payment-gateway/assets/js/ |
Upload File : |
const ZP_settings = window.wc.wcSettings.getSetting( 'WC_ZPal_data', {} );
const ZP_label = window.wp.htmlEntities.decodeEntities( ZP_settings.title ) || '';
const ZP_Content = () => {
return window.wp.htmlEntities.decodeEntities( ZP_settings.description || '' );
};
const ZP_Icon = () => {
return ZP_settings.icon
? React.createElement('img', { src: ZP_settings.icon, style: { marginLeft: '20px' } })
: null;
}
const ZP_Label = () => {
return React.createElement(
'span',
{ style: { width: '100%', display: 'flex', gap: '5px' } },
ZP_label,
React.createElement(ZP_Icon)
);
}
const ZP_Block_Gateway = {
name: 'WC_ZPal',
label: React.createElement(ZP_Label),
content: React.createElement(ZP_Content),
edit: React.createElement(ZP_Content),
canMakePayment: () => true,
ariaLabel: ZP_label,
supports: {
features: ZP_settings.supports,
},
};
window.wc.wcBlocksRegistry.registerPaymentMethod( ZP_Block_Gateway );