Plugin Directory

Changeset 2854986


Ignore:
Timestamp:
01/26/2023 06:51:09 AM (3 years ago)
Author:
odude
Message:

Update to version 2.1 from GitHub

Location:
crypto
Files:
1 added
7 edited
1 copied

Legend:

Unmodified
Added
Removed
  • crypto/tags/2.1/README.txt

    r2854978 r2854986  
    55Requires at least: 3.0.1
    66Requires PHP: 5.5
    7 Tested up to: 6.0.1
    8 Stable tag: 2.0
     7Tested up to: 6.1.1
     8Stable tag: 2.1
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    100100== Changelog ==
    101101
    102 = 2.0 =
     102= 2.1 =
    103103All starts from scratch
    104104
  • crypto/tags/2.1/crypto.php

    r2854978 r2854986  
    1010 *
    1111 * @link              https://w3d.name/
    12  * @since             2.0
     12 * @since             2.1
    1313 * @package           Crypto
    1414 *
     
    1717 * Plugin URI:        http://w3d.name
    1818 * Description:       Crypto - everyday use tools.
    19  * Version:           1.8
     19 * Version:           2.1
    2020 * Author:            ODude
    2121 * Author URI:        https://w3d.name/
     
    3131}
    3232
    33 define('CRYPTO_VERSION', '2.0');
     33define('CRYPTO_VERSION', '2.1');
    3434define('CRYPTO_FOLDER', dirname(plugin_basename(__FILE__)));
    3535define('CRYPTO_PLUGIN_URL', content_url('/plugins/' . CRYPTO_FOLDER));
  • crypto/tags/2.1/includes/class-crypto-domain-search.php

    r2854978 r2854986  
    7474                    'options' => array(
    7575                        '137' => __('Polygon - Matic', 'crypto'),
    76                         '19' => __('Filecoin - tFIL', 'crypto'),
    77                         '80001' => __('Mumbai Testnet', 'crypto'),
     76                        //  '19' => __('Filecoin - tFIL', 'crypto'),
     77                        //   '80001' => __('Mumbai Testnet', 'crypto'),
    7878                    ),
    7979                    'sanitize_callback' => 'sanitize_key',
     
    424424
    425425        if (crypto_is_valid_domain_name(final_domain)) {
    426           //  crypto_check_w3d_name_json(final_domain);
     426            //  crypto_check_w3d_name_json(final_domain);
    427427            crypto_check_before_search(final_domain);
    428428        } else {
     
    445445    });
    446446
    447     function crypto_check_before_search(final_domain)
    448     {
    449         console.log("Search: "+final_domain);
     447    function crypto_check_before_search(final_domain) {
     448        console.log("Search: " + final_domain);
    450449        crypto_is_metamask_Connected().then(acc => {
    451450            jQuery("#crypto_register_domain").hide();
     
    492491                        await crypto_sleep(1000);
    493492                        var domain_id = await getId(final_domain);
    494                        
     493
    495494                        if (typeof domain_id !== 'undefined') {
    496495                            if (acc.network == '137') {
     
    511510                            jQuery("#crypto_unavailable").show();
    512511                            jQuery("#crypto_register_domain").hide();
    513                     jQuery("#crypto_domain_info_url").show();
    514                     jQuery("#crypto_manage_domain").show();
    515                     jQuery("#crypto_ipfs_domain").show();
    516                     jQuery("#crypto_manage_domain").attr("href",
    517                         "<?php echo get_site_url(); ?>/web3/" + final_domain +
    518                         "/?domain=manage");
    519                     jQuery("#crypto_ipfs_domain").attr("href",
    520                         "<?php echo get_site_url(); ?>/web3/" + final_domain +
    521                         "/");
    522 
    523                     var domain_info_url = new URL("<?php echo $this->info_page; ?>");
    524                     //console.log(domain_info_url);
    525                     domain_info_url.searchParams.append('domain', final_domain)
    526                     jQuery("#crypto_domain_info_url").attr("href", domain_info_url);
    527 
    528                    
     512                            jQuery("#crypto_domain_info_url").show();
     513                            jQuery("#crypto_manage_domain").show();
     514                            jQuery("#crypto_ipfs_domain").show();
     515                            jQuery("#crypto_manage_domain").attr("href",
     516                                "<?php echo get_site_url(); ?>/web3/" + final_domain +
     517                                "/?domain=manage");
     518                            jQuery("#crypto_ipfs_domain").attr("href",
     519                                "<?php echo get_site_url(); ?>/web3/" + final_domain +
     520                                "/");
     521
     522                            var domain_info_url = new URL("<?php echo $this->info_page; ?>");
     523                            //console.log(domain_info_url);
     524                            domain_info_url.searchParams.append('domain', final_domain)
     525                            jQuery("#crypto_domain_info_url").attr("href", domain_info_url);
     526
     527
    529528                            jQuery("#crypto_loading").hide();
    530529                        } else {
     
    533532                            jQuery("#crypto_loading").hide();
    534533                            jQuery("#crypto_register_domain").attr("href",
    535                         "<?php echo get_site_url(); ?>/web3/" + final_domain +
    536                         "/?domain=manage");
    537                     jQuery("#crypto_domain_info_url").hide();
    538                     jQuery("#crypto_ipfs_domain").hide();
    539                     jQuery("#crypto_register_domain").show();
    540                        
     534                                "<?php echo get_site_url(); ?>/web3/" + final_domain +
     535                                "/?domain=manage");
     536                            jQuery("#crypto_domain_info_url").hide();
     537                            jQuery("#crypto_ipfs_domain").hide();
     538                            jQuery("#crypto_register_domain").show();
     539
    541540                        }
    542541
  • crypto/trunk/README.txt

    r2854978 r2854986  
    55Requires at least: 3.0.1
    66Requires PHP: 5.5
    7 Tested up to: 6.0.1
    8 Stable tag: 2.0
     7Tested up to: 6.1.1
     8Stable tag: 2.1
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    100100== Changelog ==
    101101
    102 = 2.0 =
     102= 2.1 =
    103103All starts from scratch
    104104
  • crypto/trunk/crypto.php

    r2854978 r2854986  
    1010 *
    1111 * @link              https://w3d.name/
    12  * @since             2.0
     12 * @since             2.1
    1313 * @package           Crypto
    1414 *
     
    1717 * Plugin URI:        http://w3d.name
    1818 * Description:       Crypto - everyday use tools.
    19  * Version:           1.8
     19 * Version:           2.1
    2020 * Author:            ODude
    2121 * Author URI:        https://w3d.name/
     
    3131}
    3232
    33 define('CRYPTO_VERSION', '2.0');
     33define('CRYPTO_VERSION', '2.1');
    3434define('CRYPTO_FOLDER', dirname(plugin_basename(__FILE__)));
    3535define('CRYPTO_PLUGIN_URL', content_url('/plugins/' . CRYPTO_FOLDER));
  • crypto/trunk/includes/class-crypto-domain-search.php

    r2854978 r2854986  
    7474                    'options' => array(
    7575                        '137' => __('Polygon - Matic', 'crypto'),
    76                         '19' => __('Filecoin - tFIL', 'crypto'),
    77                         '80001' => __('Mumbai Testnet', 'crypto'),
     76                        //  '19' => __('Filecoin - tFIL', 'crypto'),
     77                        //   '80001' => __('Mumbai Testnet', 'crypto'),
    7878                    ),
    7979                    'sanitize_callback' => 'sanitize_key',
     
    424424
    425425        if (crypto_is_valid_domain_name(final_domain)) {
    426           //  crypto_check_w3d_name_json(final_domain);
     426            //  crypto_check_w3d_name_json(final_domain);
    427427            crypto_check_before_search(final_domain);
    428428        } else {
     
    445445    });
    446446
    447     function crypto_check_before_search(final_domain)
    448     {
    449         console.log("Search: "+final_domain);
     447    function crypto_check_before_search(final_domain) {
     448        console.log("Search: " + final_domain);
    450449        crypto_is_metamask_Connected().then(acc => {
    451450            jQuery("#crypto_register_domain").hide();
     
    492491                        await crypto_sleep(1000);
    493492                        var domain_id = await getId(final_domain);
    494                        
     493
    495494                        if (typeof domain_id !== 'undefined') {
    496495                            if (acc.network == '137') {
     
    511510                            jQuery("#crypto_unavailable").show();
    512511                            jQuery("#crypto_register_domain").hide();
    513                     jQuery("#crypto_domain_info_url").show();
    514                     jQuery("#crypto_manage_domain").show();
    515                     jQuery("#crypto_ipfs_domain").show();
    516                     jQuery("#crypto_manage_domain").attr("href",
    517                         "<?php echo get_site_url(); ?>/web3/" + final_domain +
    518                         "/?domain=manage");
    519                     jQuery("#crypto_ipfs_domain").attr("href",
    520                         "<?php echo get_site_url(); ?>/web3/" + final_domain +
    521                         "/");
    522 
    523                     var domain_info_url = new URL("<?php echo $this->info_page; ?>");
    524                     //console.log(domain_info_url);
    525                     domain_info_url.searchParams.append('domain', final_domain)
    526                     jQuery("#crypto_domain_info_url").attr("href", domain_info_url);
    527 
    528                    
     512                            jQuery("#crypto_domain_info_url").show();
     513                            jQuery("#crypto_manage_domain").show();
     514                            jQuery("#crypto_ipfs_domain").show();
     515                            jQuery("#crypto_manage_domain").attr("href",
     516                                "<?php echo get_site_url(); ?>/web3/" + final_domain +
     517                                "/?domain=manage");
     518                            jQuery("#crypto_ipfs_domain").attr("href",
     519                                "<?php echo get_site_url(); ?>/web3/" + final_domain +
     520                                "/");
     521
     522                            var domain_info_url = new URL("<?php echo $this->info_page; ?>");
     523                            //console.log(domain_info_url);
     524                            domain_info_url.searchParams.append('domain', final_domain)
     525                            jQuery("#crypto_domain_info_url").attr("href", domain_info_url);
     526
     527
    529528                            jQuery("#crypto_loading").hide();
    530529                        } else {
     
    533532                            jQuery("#crypto_loading").hide();
    534533                            jQuery("#crypto_register_domain").attr("href",
    535                         "<?php echo get_site_url(); ?>/web3/" + final_domain +
    536                         "/?domain=manage");
    537                     jQuery("#crypto_domain_info_url").hide();
    538                     jQuery("#crypto_ipfs_domain").hide();
    539                     jQuery("#crypto_register_domain").show();
    540                        
     534                                "<?php echo get_site_url(); ?>/web3/" + final_domain +
     535                                "/?domain=manage");
     536                            jQuery("#crypto_domain_info_url").hide();
     537                            jQuery("#crypto_ipfs_domain").hide();
     538                            jQuery("#crypto_register_domain").show();
     539
    541540                        }
    542541
Note: See TracChangeset for help on using the changeset viewer.