Plugin Directory

Changeset 3496578


Ignore:
Timestamp:
04/01/2026 12:56:46 PM (2 days ago)
Author:
CryptoWoo
Message:

Updating to version 1.6.14

Location:
cryptocurrency-payment-gateway
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • cryptocurrency-payment-gateway/tags/1.6.14/assets/css/cryptowoo-plugin.css

    r3045109 r3496578  
    368368    padding-right: 5px;
    369369}
     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  
    221221    });
    222222
     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    }   
    223268});
    224269
    225270// Select full content on payment page
    226271function selectText(containerid) {
     272    var node = document.getElementById(containerid);
     273    if (!node) {
     274        return console.error('Element with id ' + containerid + ' not found');
     275    }
    227276    if (document.selection) {
    228277        var range = document.body.createTextRange();
     
    240289}
    241290
    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 
    270291function copyToClipboard(element) {
    271292  var temp = jQuery('<input>');
  • cryptocurrency-payment-gateway/tags/1.6.14/changelog

    r3387068 r3496578  
     1= 1.6.14 2026-04-01 =
     2Fix CryptoWoo is not defined js error on order-pay page for block-based Full Site Editing themes
     3Improve the width of the input fields on the options page in wp-admin
     4WordPress tested up to 7.0
     5WooCommerce tested up to 10.6.1
     6
    17= 1.6.13 2025-10-30 =
    28Prevent 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  
    77 * Plugin URI: https://www.cryptowoo.com/
    88 * Description: Digital Currency Payment Gateway for WooCommerce
    9  * Version: 1.6.13
     9 * Version: 1.6.14
    1010 * Author: CryptoWoo AS
    1111 * Author URI: https://www.cryptowoo.com
     
    1515 * Domain Path: /lang
    1616 *
    17  * Tested up to: 6.8.3
    18  * WC tested up to: 10.3.3
     17 * Tested up to: 7.0
     18 * WC tested up to: 10.6.1
    1919 * WC requires at least: 3.0
    2020 * Requires Plugins: woocommerce, redux-framework
     
    4646OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    4747 */
    48 define( 'CWOO_VERSION', '1.6.13' );
     48define( 'CWOO_VERSION', '1.6.14' );
    4949define( 'CWOO_FILE', 'cryptocurrency-payment-gateway/cryptocurrency-payment-gateway.php' );
    5050define( 'CWOO_PLUGIN_PATH', plugins_url( basename( plugin_dir_path( __FILE__ ) ), basename( __FILE__ ) ) . '/' );
     
    109109// Plugin init
    110110    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
    111116
    112117// Plugin updates
     
    446451}
    447452
     453function 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
    448465/**
    449466 * Enqueue scripts
    450467 */
    451468function cryptowoo_scripts() {
    452 
    453     // Progress bar
    454     cw_enqueue_script( 'nanobar', CWOO_PLUGIN_PATH . 'assets/js/nanobar.js', array( 'jquery' ) );
    455 
    456     // davidshimjs QR Code
    457     cw_enqueue_script( 'QRCode', CWOO_PLUGIN_PATH . 'assets/js/qrcodejs-master/qrcode.js', array( 'jquery' ) );
    458 
    459     // Register payment page script
    460     cw_register_script( 'cw_polling', CWOO_PLUGIN_PATH . 'assets/js/polling.js', array( 'jquery' ) );
    461 
    462469    // Plugin Styles
    463470    cw_enqueue_style( 'cryptowoo', CWOO_PLUGIN_PATH . 'assets/css/cryptowoo-plugin.css' );
     
    467474
    468475    // Fontawesome icon font
    469     if ( ! wp_script_is( 'fontawesome', 'enqueued' ) ) {
     476    if ( ! wp_style_is( 'fontawesome', 'enqueued' ) ) {
    470477        cw_enqueue_style( 'fontawesome', CWOO_PLUGIN_PATH . 'assets/fontawesome-free-5.4.1-web/css/all.css', __FILE__ );
    471478    }
     
    503510
    504511    // Fontawesome icons
    505     if ( ! wp_script_is( 'fontawesome', 'enqueued' ) ) {
     512    if ( ! wp_style_is( 'fontawesome', 'enqueued' ) ) {
    506513        cw_enqueue_style( 'fontawesome', CWOO_PLUGIN_PATH . 'assets/fontawesome-free-5.4.1-web/css/all.css', __FILE__ );
    507514    }
     
    12251232                'order_key'       => $order->get_order_key(),
    12261233            );
     1234            // Register variables so they are available for polling.js when loaded below.
    12271235            wp_localize_script( 'cw_polling', 'CryptoWoo', $php_vars_array );
    12281236
  • cryptocurrency-payment-gateway/tags/1.6.14/readme.txt

    r3387068 r3496578  
    33Tags: Bitcoin, Bitcoin Cash, Ethereum, Crypto payments, Cryptocurrency payment gateway
    44Requires at least: 4.7
    5 Tested up to: 6.8
    6 Stable tag: 1.6.13
     5Tested up to: 7.0
     6Stable tag: 1.6.14
    77Requires PHP: 7.4
    88License: GPLv2 or later
     
    129129== Changelog ==
    130130
     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
    131137= 1.6.13 =
    132138* 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  
    368368    padding-right: 5px;
    369369}
     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  
    221221    });
    222222
     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    }   
    223268});
    224269
    225270// Select full content on payment page
    226271function selectText(containerid) {
     272    var node = document.getElementById(containerid);
     273    if (!node) {
     274        return console.error('Element with id ' + containerid + ' not found');
     275    }
    227276    if (document.selection) {
    228277        var range = document.body.createTextRange();
     
    240289}
    241290
    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 
    270291function copyToClipboard(element) {
    271292  var temp = jQuery('<input>');
  • cryptocurrency-payment-gateway/trunk/changelog

    r3387068 r3496578  
     1= 1.6.14 2026-04-01 =
     2Fix CryptoWoo is not defined js error on order-pay page for block-based Full Site Editing themes
     3Improve the width of the input fields on the options page in wp-admin
     4WordPress tested up to 7.0
     5WooCommerce tested up to 10.6.1
     6
    17= 1.6.13 2025-10-30 =
    28Prevent deprecation notices in PHP 8.1 and newer in CW_Payment_Details_Object
  • cryptocurrency-payment-gateway/trunk/cryptocurrency-payment-gateway.php

    r3387068 r3496578  
    77 * Plugin URI: https://www.cryptowoo.com/
    88 * Description: Digital Currency Payment Gateway for WooCommerce
    9  * Version: 1.6.13
     9 * Version: 1.6.14
    1010 * Author: CryptoWoo AS
    1111 * Author URI: https://www.cryptowoo.com
     
    1515 * Domain Path: /lang
    1616 *
    17  * Tested up to: 6.8.3
    18  * WC tested up to: 10.3.3
     17 * Tested up to: 7.0
     18 * WC tested up to: 10.6.1
    1919 * WC requires at least: 3.0
    2020 * Requires Plugins: woocommerce, redux-framework
     
    4646OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    4747 */
    48 define( 'CWOO_VERSION', '1.6.13' );
     48define( 'CWOO_VERSION', '1.6.14' );
    4949define( 'CWOO_FILE', 'cryptocurrency-payment-gateway/cryptocurrency-payment-gateway.php' );
    5050define( 'CWOO_PLUGIN_PATH', plugins_url( basename( plugin_dir_path( __FILE__ ) ), basename( __FILE__ ) ) . '/' );
     
    109109// Plugin init
    110110    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
    111116
    112117// Plugin updates
     
    446451}
    447452
     453function 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
    448465/**
    449466 * Enqueue scripts
    450467 */
    451468function cryptowoo_scripts() {
    452 
    453     // Progress bar
    454     cw_enqueue_script( 'nanobar', CWOO_PLUGIN_PATH . 'assets/js/nanobar.js', array( 'jquery' ) );
    455 
    456     // davidshimjs QR Code
    457     cw_enqueue_script( 'QRCode', CWOO_PLUGIN_PATH . 'assets/js/qrcodejs-master/qrcode.js', array( 'jquery' ) );
    458 
    459     // Register payment page script
    460     cw_register_script( 'cw_polling', CWOO_PLUGIN_PATH . 'assets/js/polling.js', array( 'jquery' ) );
    461 
    462469    // Plugin Styles
    463470    cw_enqueue_style( 'cryptowoo', CWOO_PLUGIN_PATH . 'assets/css/cryptowoo-plugin.css' );
     
    467474
    468475    // Fontawesome icon font
    469     if ( ! wp_script_is( 'fontawesome', 'enqueued' ) ) {
     476    if ( ! wp_style_is( 'fontawesome', 'enqueued' ) ) {
    470477        cw_enqueue_style( 'fontawesome', CWOO_PLUGIN_PATH . 'assets/fontawesome-free-5.4.1-web/css/all.css', __FILE__ );
    471478    }
     
    503510
    504511    // Fontawesome icons
    505     if ( ! wp_script_is( 'fontawesome', 'enqueued' ) ) {
     512    if ( ! wp_style_is( 'fontawesome', 'enqueued' ) ) {
    506513        cw_enqueue_style( 'fontawesome', CWOO_PLUGIN_PATH . 'assets/fontawesome-free-5.4.1-web/css/all.css', __FILE__ );
    507514    }
     
    12251232                'order_key'       => $order->get_order_key(),
    12261233            );
     1234            // Register variables so they are available for polling.js when loaded below.
    12271235            wp_localize_script( 'cw_polling', 'CryptoWoo', $php_vars_array );
    12281236
  • cryptocurrency-payment-gateway/trunk/readme.txt

    r3387068 r3496578  
    33Tags: Bitcoin, Bitcoin Cash, Ethereum, Crypto payments, Cryptocurrency payment gateway
    44Requires at least: 4.7
    5 Tested up to: 6.8
    6 Stable tag: 1.6.13
     5Tested up to: 7.0
     6Stable tag: 1.6.14
    77Requires PHP: 7.4
    88License: GPLv2 or later
     
    129129== Changelog ==
    130130
     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
    131137= 1.6.13 =
    132138* Prevent deprecation notices in PHP 8.1 and newer in CW_Payment_Details_Object
Note: See TracChangeset for help on using the changeset viewer.