Changeset 3496578
- Timestamp:
- 04/01/2026 12:56:46 PM (2 days ago)
- Location:
- cryptocurrency-payment-gateway
- Files:
-
- 10 edited
- 1 copied
-
tags/1.6.14 (copied) (copied from cryptocurrency-payment-gateway/trunk)
-
tags/1.6.14/assets/css/cryptowoo-plugin.css (modified) (1 diff)
-
tags/1.6.14/assets/js/polling.js (modified) (2 diffs)
-
tags/1.6.14/changelog (modified) (1 diff)
-
tags/1.6.14/cryptocurrency-payment-gateway.php (modified) (8 diffs)
-
tags/1.6.14/readme.txt (modified) (2 diffs)
-
trunk/assets/css/cryptowoo-plugin.css (modified) (1 diff)
-
trunk/assets/js/polling.js (modified) (2 diffs)
-
trunk/changelog (modified) (1 diff)
-
trunk/cryptocurrency-payment-gateway.php (modified) (8 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cryptocurrency-payment-gateway/tags/1.6.14/assets/css/cryptowoo-plugin.css
r3045109 r3496578 368 368 padding-right: 5px; 369 369 } 370 371 /* Improve the width of the input fields on the options page */ 372 .redux-container.cryptowoo .regular-text { 373 width: 100%; 374 max-width: 118ch; 375 } -
cryptocurrency-payment-gateway/tags/1.6.14/assets/js/polling.js
r3049261 r3496578 221 221 }); 222 222 223 var copyAddressButton = document.querySelector('#copy_address_a'); 224 var copyAmountButton = document.querySelector('#copy_amount_a'); 225 226 if (copyAddressButton) { 227 var copyAddressText = jQuery('#copy_address_a .cw-tt-info').text() 228 copyAddressButton.addEventListener('click', function (event) { 229 var addressNode = document.getElementById('payment-address'); 230 event.preventDefault(); 231 if (!addressNode) { 232 console.error('Element with id payment-address not found'); 233 return; 234 } 235 copyToClipboard( '#payment-address' ); 236 selectText('payment-address'); 237 jQuery('#copy_address_a .cw-tt-info').text('The address was copied'); 238 }, false); 239 240 copyAddressButton.addEventListener('transitionend', function() { 241 if (!copyAddressButton.matches(':hover') ) { 242 jQuery('#copy_address_a .cw-tt-info').text(copyAddressText); 243 } 244 }, false); 245 } 246 247 if (copyAmountButton) { 248 var copyAmountText = jQuery('#copy_amount_a .cw-tt-info').text(); 249 copyAmountButton.addEventListener('click', function (event) { 250 var amountNode = document.getElementById('amount'); 251 event.preventDefault(); 252 if (!amountNode) { 253 console.error('Element with id amount not found'); 254 return; 255 } 256 copyToClipboard('.cw_payment_details #amount'); 257 selectText('amount'); 258 jQuery('#copy_amount_a .cw-tt-info').text('The amount was copied'); 259 260 }, false); 261 262 copyAmountButton.addEventListener('transitionend', function() { 263 if (!copyAmountButton.matches(':hover')) { 264 jQuery('#copy_amount_a .cw-tt-info').text(copyAmountText); 265 } 266 }, false); 267 } 223 268 }); 224 269 225 270 // Select full content on payment page 226 271 function selectText(containerid) { 272 var node = document.getElementById(containerid); 273 if (!node) { 274 return console.error('Element with id ' + containerid + ' not found'); 275 } 227 276 if (document.selection) { 228 277 var range = document.body.createTextRange(); … … 240 289 } 241 290 242 document.querySelector("#copy_address_a").addEventListener("click", function(event) {243 copyToClipboard('#payment-address')244 selectText('payment-address');245 jQuery('#copy_address_a .cw-tt-info').text( "The address was copied" );246 event.preventDefault();247 }, false);248 249 document.querySelector("#copy_amount_a").addEventListener("click", function(event) {250 copyToClipboard('.cw_payment_details #amount')251 selectText('amount');252 jQuery('#copy_amount_a .cw-tt-info').text( "The amount was copied" );253 event.preventDefault();254 }, false);255 256 const copy_amount_text = jQuery('#copy_amount_a .cw-tt-info').text();257 document.querySelector('#copy_amount_a').addEventListener("transitionend", function(event) {258 if ( ! document.querySelector('#copy_amount_a').matches(':hover') ) {259 jQuery('#copy_amount_a .cw-tt-info').text(copy_amount_text);260 }261 }, false);262 263 const copy_address_text = jQuery('#copy_address_a .cw-tt-info').text();264 document.querySelector('#copy_address_a').addEventListener("transitionend", function(event) {265 if ( ! document.querySelector('#copy_address_a').matches(':hover') ) {266 jQuery('#copy_address_a .cw-tt-info').text( copy_address_text );267 }268 }, false );269 270 291 function copyToClipboard(element) { 271 292 var temp = jQuery('<input>'); -
cryptocurrency-payment-gateway/tags/1.6.14/changelog
r3387068 r3496578 1 = 1.6.14 2026-04-01 = 2 Fix CryptoWoo is not defined js error on order-pay page for block-based Full Site Editing themes 3 Improve the width of the input fields on the options page in wp-admin 4 WordPress tested up to 7.0 5 WooCommerce tested up to 10.6.1 6 1 7 = 1.6.13 2025-10-30 = 2 8 Prevent deprecation notices in PHP 8.1 and newer in CW_Payment_Details_Object -
cryptocurrency-payment-gateway/tags/1.6.14/cryptocurrency-payment-gateway.php
r3387068 r3496578 7 7 * Plugin URI: https://www.cryptowoo.com/ 8 8 * Description: Digital Currency Payment Gateway for WooCommerce 9 * Version: 1.6.1 39 * Version: 1.6.14 10 10 * Author: CryptoWoo AS 11 11 * Author URI: https://www.cryptowoo.com … … 15 15 * Domain Path: /lang 16 16 * 17 * Tested up to: 6.8.318 * WC tested up to: 10. 3.317 * Tested up to: 7.0 18 * WC tested up to: 10.6.1 19 19 * WC requires at least: 3.0 20 20 * Requires Plugins: woocommerce, redux-framework … … 46 46 OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 47 47 */ 48 define( 'CWOO_VERSION', '1.6.1 3' );48 define( 'CWOO_VERSION', '1.6.14' ); 49 49 define( 'CWOO_FILE', 'cryptocurrency-payment-gateway/cryptocurrency-payment-gateway.php' ); 50 50 define( 'CWOO_PLUGIN_PATH', plugins_url( basename( plugin_dir_path( __FILE__ ) ), basename( __FILE__ ) ) . '/' ); … … 109 109 // Plugin init 110 110 add_action( 'plugins_loaded', 'woocommerce_cryptowoo_init', 1 ); 111 112 // Register some scripts in init because wp_enqueue_scripts doesn not work in block-based Full Site Editing themes. 113 add_action( 'init', 'cryptowoo_register_frontend_scripts' ); 114 115 // Initiate CryptoWoo scripts 111 116 112 117 // Plugin updates … … 446 451 } 447 452 453 function cryptowoo_register_frontend_scripts() { 454 // Progress bar 455 cw_register_script( 'nanobar', CWOO_PLUGIN_PATH . 'assets/js/nanobar.js', array( 'jquery' ), CWOO_VERSION, true ); 456 457 // davidshimjs QR Code 458 cw_register_script( 'QRCode', CWOO_PLUGIN_PATH . 'assets/js/qrcodejs-master/qrcode.js', array( 'jquery' ), CWOO_VERSION, true ); 459 460 // Register payment page script 461 cw_register_script( 'cw_polling', CWOO_PLUGIN_PATH . 'assets/js/polling.js', array( 'jquery', 'nanobar', 'QRCode' ), CWOO_VERSION, true); 462 } 463 464 448 465 /** 449 466 * Enqueue scripts 450 467 */ 451 468 function cryptowoo_scripts() { 452 453 // Progress bar454 cw_enqueue_script( 'nanobar', CWOO_PLUGIN_PATH . 'assets/js/nanobar.js', array( 'jquery' ) );455 456 // davidshimjs QR Code457 cw_enqueue_script( 'QRCode', CWOO_PLUGIN_PATH . 'assets/js/qrcodejs-master/qrcode.js', array( 'jquery' ) );458 459 // Register payment page script460 cw_register_script( 'cw_polling', CWOO_PLUGIN_PATH . 'assets/js/polling.js', array( 'jquery' ) );461 462 469 // Plugin Styles 463 470 cw_enqueue_style( 'cryptowoo', CWOO_PLUGIN_PATH . 'assets/css/cryptowoo-plugin.css' ); … … 467 474 468 475 // Fontawesome icon font 469 if ( ! wp_s cript_is( 'fontawesome', 'enqueued' ) ) {476 if ( ! wp_style_is( 'fontawesome', 'enqueued' ) ) { 470 477 cw_enqueue_style( 'fontawesome', CWOO_PLUGIN_PATH . 'assets/fontawesome-free-5.4.1-web/css/all.css', __FILE__ ); 471 478 } … … 503 510 504 511 // Fontawesome icons 505 if ( ! wp_s cript_is( 'fontawesome', 'enqueued' ) ) {512 if ( ! wp_style_is( 'fontawesome', 'enqueued' ) ) { 506 513 cw_enqueue_style( 'fontawesome', CWOO_PLUGIN_PATH . 'assets/fontawesome-free-5.4.1-web/css/all.css', __FILE__ ); 507 514 } … … 1225 1232 'order_key' => $order->get_order_key(), 1226 1233 ); 1234 // Register variables so they are available for polling.js when loaded below. 1227 1235 wp_localize_script( 'cw_polling', 'CryptoWoo', $php_vars_array ); 1228 1236 -
cryptocurrency-payment-gateway/tags/1.6.14/readme.txt
r3387068 r3496578 3 3 Tags: Bitcoin, Bitcoin Cash, Ethereum, Crypto payments, Cryptocurrency payment gateway 4 4 Requires at least: 4.7 5 Tested up to: 6.86 Stable tag: 1.6.1 35 Tested up to: 7.0 6 Stable tag: 1.6.14 7 7 Requires PHP: 7.4 8 8 License: GPLv2 or later … … 129 129 == Changelog == 130 130 131 = 1.6.14 = 132 * Fix CryptoWoo is not defined js error on order-pay page for block-based Full Site Editing themes 133 * Improve the width of the input fields on the options page in wp-admin 134 * WordPress tested up to 7.0 135 * WooCommerce tested up to 10.6.1 136 131 137 = 1.6.13 = 132 138 * Prevent deprecation notices in PHP 8.1 and newer in CW_Payment_Details_Object -
cryptocurrency-payment-gateway/trunk/assets/css/cryptowoo-plugin.css
r3045109 r3496578 368 368 padding-right: 5px; 369 369 } 370 371 /* Improve the width of the input fields on the options page */ 372 .redux-container.cryptowoo .regular-text { 373 width: 100%; 374 max-width: 118ch; 375 } -
cryptocurrency-payment-gateway/trunk/assets/js/polling.js
r3049261 r3496578 221 221 }); 222 222 223 var copyAddressButton = document.querySelector('#copy_address_a'); 224 var copyAmountButton = document.querySelector('#copy_amount_a'); 225 226 if (copyAddressButton) { 227 var copyAddressText = jQuery('#copy_address_a .cw-tt-info').text() 228 copyAddressButton.addEventListener('click', function (event) { 229 var addressNode = document.getElementById('payment-address'); 230 event.preventDefault(); 231 if (!addressNode) { 232 console.error('Element with id payment-address not found'); 233 return; 234 } 235 copyToClipboard( '#payment-address' ); 236 selectText('payment-address'); 237 jQuery('#copy_address_a .cw-tt-info').text('The address was copied'); 238 }, false); 239 240 copyAddressButton.addEventListener('transitionend', function() { 241 if (!copyAddressButton.matches(':hover') ) { 242 jQuery('#copy_address_a .cw-tt-info').text(copyAddressText); 243 } 244 }, false); 245 } 246 247 if (copyAmountButton) { 248 var copyAmountText = jQuery('#copy_amount_a .cw-tt-info').text(); 249 copyAmountButton.addEventListener('click', function (event) { 250 var amountNode = document.getElementById('amount'); 251 event.preventDefault(); 252 if (!amountNode) { 253 console.error('Element with id amount not found'); 254 return; 255 } 256 copyToClipboard('.cw_payment_details #amount'); 257 selectText('amount'); 258 jQuery('#copy_amount_a .cw-tt-info').text('The amount was copied'); 259 260 }, false); 261 262 copyAmountButton.addEventListener('transitionend', function() { 263 if (!copyAmountButton.matches(':hover')) { 264 jQuery('#copy_amount_a .cw-tt-info').text(copyAmountText); 265 } 266 }, false); 267 } 223 268 }); 224 269 225 270 // Select full content on payment page 226 271 function selectText(containerid) { 272 var node = document.getElementById(containerid); 273 if (!node) { 274 return console.error('Element with id ' + containerid + ' not found'); 275 } 227 276 if (document.selection) { 228 277 var range = document.body.createTextRange(); … … 240 289 } 241 290 242 document.querySelector("#copy_address_a").addEventListener("click", function(event) {243 copyToClipboard('#payment-address')244 selectText('payment-address');245 jQuery('#copy_address_a .cw-tt-info').text( "The address was copied" );246 event.preventDefault();247 }, false);248 249 document.querySelector("#copy_amount_a").addEventListener("click", function(event) {250 copyToClipboard('.cw_payment_details #amount')251 selectText('amount');252 jQuery('#copy_amount_a .cw-tt-info').text( "The amount was copied" );253 event.preventDefault();254 }, false);255 256 const copy_amount_text = jQuery('#copy_amount_a .cw-tt-info').text();257 document.querySelector('#copy_amount_a').addEventListener("transitionend", function(event) {258 if ( ! document.querySelector('#copy_amount_a').matches(':hover') ) {259 jQuery('#copy_amount_a .cw-tt-info').text(copy_amount_text);260 }261 }, false);262 263 const copy_address_text = jQuery('#copy_address_a .cw-tt-info').text();264 document.querySelector('#copy_address_a').addEventListener("transitionend", function(event) {265 if ( ! document.querySelector('#copy_address_a').matches(':hover') ) {266 jQuery('#copy_address_a .cw-tt-info').text( copy_address_text );267 }268 }, false );269 270 291 function copyToClipboard(element) { 271 292 var temp = jQuery('<input>'); -
cryptocurrency-payment-gateway/trunk/changelog
r3387068 r3496578 1 = 1.6.14 2026-04-01 = 2 Fix CryptoWoo is not defined js error on order-pay page for block-based Full Site Editing themes 3 Improve the width of the input fields on the options page in wp-admin 4 WordPress tested up to 7.0 5 WooCommerce tested up to 10.6.1 6 1 7 = 1.6.13 2025-10-30 = 2 8 Prevent deprecation notices in PHP 8.1 and newer in CW_Payment_Details_Object -
cryptocurrency-payment-gateway/trunk/cryptocurrency-payment-gateway.php
r3387068 r3496578 7 7 * Plugin URI: https://www.cryptowoo.com/ 8 8 * Description: Digital Currency Payment Gateway for WooCommerce 9 * Version: 1.6.1 39 * Version: 1.6.14 10 10 * Author: CryptoWoo AS 11 11 * Author URI: https://www.cryptowoo.com … … 15 15 * Domain Path: /lang 16 16 * 17 * Tested up to: 6.8.318 * WC tested up to: 10. 3.317 * Tested up to: 7.0 18 * WC tested up to: 10.6.1 19 19 * WC requires at least: 3.0 20 20 * Requires Plugins: woocommerce, redux-framework … … 46 46 OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 47 47 */ 48 define( 'CWOO_VERSION', '1.6.1 3' );48 define( 'CWOO_VERSION', '1.6.14' ); 49 49 define( 'CWOO_FILE', 'cryptocurrency-payment-gateway/cryptocurrency-payment-gateway.php' ); 50 50 define( 'CWOO_PLUGIN_PATH', plugins_url( basename( plugin_dir_path( __FILE__ ) ), basename( __FILE__ ) ) . '/' ); … … 109 109 // Plugin init 110 110 add_action( 'plugins_loaded', 'woocommerce_cryptowoo_init', 1 ); 111 112 // Register some scripts in init because wp_enqueue_scripts doesn not work in block-based Full Site Editing themes. 113 add_action( 'init', 'cryptowoo_register_frontend_scripts' ); 114 115 // Initiate CryptoWoo scripts 111 116 112 117 // Plugin updates … … 446 451 } 447 452 453 function cryptowoo_register_frontend_scripts() { 454 // Progress bar 455 cw_register_script( 'nanobar', CWOO_PLUGIN_PATH . 'assets/js/nanobar.js', array( 'jquery' ), CWOO_VERSION, true ); 456 457 // davidshimjs QR Code 458 cw_register_script( 'QRCode', CWOO_PLUGIN_PATH . 'assets/js/qrcodejs-master/qrcode.js', array( 'jquery' ), CWOO_VERSION, true ); 459 460 // Register payment page script 461 cw_register_script( 'cw_polling', CWOO_PLUGIN_PATH . 'assets/js/polling.js', array( 'jquery', 'nanobar', 'QRCode' ), CWOO_VERSION, true); 462 } 463 464 448 465 /** 449 466 * Enqueue scripts 450 467 */ 451 468 function cryptowoo_scripts() { 452 453 // Progress bar454 cw_enqueue_script( 'nanobar', CWOO_PLUGIN_PATH . 'assets/js/nanobar.js', array( 'jquery' ) );455 456 // davidshimjs QR Code457 cw_enqueue_script( 'QRCode', CWOO_PLUGIN_PATH . 'assets/js/qrcodejs-master/qrcode.js', array( 'jquery' ) );458 459 // Register payment page script460 cw_register_script( 'cw_polling', CWOO_PLUGIN_PATH . 'assets/js/polling.js', array( 'jquery' ) );461 462 469 // Plugin Styles 463 470 cw_enqueue_style( 'cryptowoo', CWOO_PLUGIN_PATH . 'assets/css/cryptowoo-plugin.css' ); … … 467 474 468 475 // Fontawesome icon font 469 if ( ! wp_s cript_is( 'fontawesome', 'enqueued' ) ) {476 if ( ! wp_style_is( 'fontawesome', 'enqueued' ) ) { 470 477 cw_enqueue_style( 'fontawesome', CWOO_PLUGIN_PATH . 'assets/fontawesome-free-5.4.1-web/css/all.css', __FILE__ ); 471 478 } … … 503 510 504 511 // Fontawesome icons 505 if ( ! wp_s cript_is( 'fontawesome', 'enqueued' ) ) {512 if ( ! wp_style_is( 'fontawesome', 'enqueued' ) ) { 506 513 cw_enqueue_style( 'fontawesome', CWOO_PLUGIN_PATH . 'assets/fontawesome-free-5.4.1-web/css/all.css', __FILE__ ); 507 514 } … … 1225 1232 'order_key' => $order->get_order_key(), 1226 1233 ); 1234 // Register variables so they are available for polling.js when loaded below. 1227 1235 wp_localize_script( 'cw_polling', 'CryptoWoo', $php_vars_array ); 1228 1236 -
cryptocurrency-payment-gateway/trunk/readme.txt
r3387068 r3496578 3 3 Tags: Bitcoin, Bitcoin Cash, Ethereum, Crypto payments, Cryptocurrency payment gateway 4 4 Requires at least: 4.7 5 Tested up to: 6.86 Stable tag: 1.6.1 35 Tested up to: 7.0 6 Stable tag: 1.6.14 7 7 Requires PHP: 7.4 8 8 License: GPLv2 or later … … 129 129 == Changelog == 130 130 131 = 1.6.14 = 132 * Fix CryptoWoo is not defined js error on order-pay page for block-based Full Site Editing themes 133 * Improve the width of the input fields on the options page in wp-admin 134 * WordPress tested up to 7.0 135 * WooCommerce tested up to 10.6.1 136 131 137 = 1.6.13 = 132 138 * Prevent deprecation notices in PHP 8.1 and newer in CW_Payment_Details_Object
Note: See TracChangeset
for help on using the changeset viewer.