Plugin Directory

Changeset 2509051


Ignore:
Timestamp:
04/04/2021 07:53:58 PM (5 years ago)
Author:
zwaply
Message:

Version 3.0.19 fix.

Location:
cryptocurrency-prices/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • cryptocurrency-prices/trunk/cryptocurrency-prices.php

    r2509050 r2509051  
    11<?php
    2 
    32/**
    4 
    53 * @package Cryptocurrency All-in-One
    6 
    74 */
    8 
    95/*
    10 
    116Plugin Name: Cryptocurrency All-in-One
    12 
    137Plugin URI: https://zwaply.com/
    14 
    158Description: Provides multiple cryptocurrency features: accepting payments, displaying prices and exchange rates, cryptocurrency calculator, accepting donations.
    16 
    179Version: 3.0.19
    18 
    1910Author: Zwaply
    20 
    2111Author URI: https://zwaply.com/
    22 
    2312Text Domain: cryprocurrency-prices
    24 
    2513Domain Path: /languages/
    26 
    2714License: GPL2 or later
    28 
    2915*/
    30 
    3116if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
    32 
    3317//define plugin url global
    34 
    3518define('CCPS_URL', plugin_dir_url( __FILE__ ));
    36 
    3719//include source files
    38 
    3920require_once( dirname( __FILE__ ) . '/includes/currencyall.class.php' );
    40 
    4121require_once( dirname( __FILE__ ) . '/includes/cryptodonation.class.php' );
    42 
    4322require_once( dirname( __FILE__ ) . '/includes/ethereum.class.php' );
    44 
    4523require_once( dirname( __FILE__ ) . '/includes/widget.class.php' );
    46 
    4724require_once( dirname( __FILE__ ) . '/includes/currencytickerwidget.class.php' );
    48 
    4925require_once( dirname( __FILE__ ) . '/includes/common.class.php' );
    50 
    5126require_once( dirname( __FILE__ ) . '/includes/cryptocurrency-ajax.php' );
    52 
    5327if ( is_admin() || ( defined( 'WP_CLI' ) && WP_CLI ) ) {
    54 
    5528  require_once( dirname( __FILE__ ) . '/includes/admin.class.php' );
    56 
    5729    add_action( 'init', array( 'CCPS_Admin', 'init' ) );
    58 
    5930}
    60 
    6131//define suported shortcodes
    62 
    6332add_shortcode( 'allcurrencies', array( 'CCPS_Currency_All', 'cp_all_currencies_shortcode' ) );
    64 
    6533add_shortcode( 'cryptodonation', array( 'CCPS_Crypto_Donation', 'cp_cryptodonation_shortcode') );
    66 
    6734add_shortcode( 'cryptoethereum', array( 'CCPS_Ethereum', 'cp_ethereum_shortcode' ) );
    68 
    6935add_shortcode( 'currencyticker', array( 'CCPS_Ticker_Widget', 'shortcode' ) );
    70 
    7136//this plugin requires js libraries
    72 
    7337add_action( 'wp_enqueue_scripts', array( 'CCPS_Common', 'cp_load_scripts') );
    74 
    7538//handle plugin activation
    76 
    7739register_activation_hook( __FILE__, array( 'CCPS_Common', 'cp_plugin_activate') );
    78 
    7940//add widget support
    80 
    8141add_action('widgets_init', array( 'CCPS_Common', 'cp_widgets_init') );
    82 
    8342//add custom stylesheet
    84 
    8543add_action('wp_head', array( 'CCPS_Common', 'cp_custom_styles'), 100);
    86 
    8744add_action( 'wp_enqueue_scripts', array( 'CCPS_Common', 'cp_enqueue_styles'), 15 );
    88 
    8945//add admin stylesheet
    90 
    9146add_action( 'admin_enqueue_scripts', array( 'CCPS_Common', 'cp_enqueue_admin_styles'), 15 );
    92 
    9347//add translation
    94 
    9548add_action('plugins_loaded', array( 'CCPS_Common', 'cp_load_textdomain'));
  • cryptocurrency-prices/trunk/css/cp_dark.css

    r2509050 r2509051  
    11/* table styles */
    2 
    3 
    4 
    52table.cp-table{
    6 
    7 
    8 
    93    margin: 10px 0px 10px 0px;
    10 
    11 
    12 
    134  padding: 0px;
    14 
    15 
    16 
    175  border: 0px;
    18 
    19 
    20 
    216  font-size: 16px;
    22 
    23 
    24 
    257  line-height: normal;
    26 
    27 
    28 
    298  background-color: #111111;
    30 
    31 
    32 
    339  color: #eeeeee;
    34 
    35 
    36 
    3710}
    38 
    39 
    40 
    4111table.cp-table tr:nth-child(even) {
    42 
    43 
    44 
    4512    background-color: #222222;
    46 
    47 
    48 
    4913}
    50 
    51 
    52 
    5314table.cp-table tr:hover {
    54 
    55 
    56 
    5715    background-color: #000000;
    58 
    59 
    60 
    6116  color: #ffffff;
    62 
    63 
    64 
    6517}
    66 
    67 
    68 
    6918table.cp-table a{
    70 
    71 
    72 
    7319  color: #ffffff;
    74 
    75 
    76 
    7720}
    78 
    79 
    80 
    8121table.cp-table td,
    82 
    83 
    84 
    8522table.cp-table th {
    86 
    87 
    88 
    8923    border: 0px;
    90 
    91 
    92 
    9324    padding: 6px 10px 6px 10px;
    94 
    95 
    96 
    9725}
    98 
    99 
    100 
    10126table.cp-table th {
    102 
    103 
    104 
    10527    padding: 12px 10px 12px 10px;
    106 
    107 
    108 
    10928  font-weight: bold;
    110 
    111 
    112 
    11329  background-color: #444444;
    114 
    115 
    116 
    11730  color: #ffffff;
    118 
    119 
    120 
    12131}
    122 
    123 
    124 
    12532table.cp-table td img {
    126 
    127 
    128 
    12933    width: 24px;
    130 
    131 
    132 
    13334}
    134 
    135 
    136 
    13735table.cp-table .change-dec {
    138 
    139 
    140 
    14136  color: #dd4433;
    142 
    143 
    144 
    14537}
    146 
    147 
    148 
    14938table.cp-table .change-inc {
    150 
    151 
    152 
    15339  color: #009933;
    154 
    155 
    156 
    15740}
    158 
    159 
    160 
    16141table.cp-table button {
    162 
    163 
    164 
    16542  padding: 0 1.1rem;
    166 
    167 
    168 
    16943}
    170 
    171 
    172 
    17344/* form styles */
    174 
    175 
    176 
    17745form.cp-form{
    178 
    179 
    180 
    18146  margin: 10px 0px 10px 0px;
    182 
    183 
    184 
    18547  padding: 0px;
    186 
    187 
    188 
    18948  border: 0px;
    190 
    191 
    192 
    19349  font-size: 18px;
    194 
    195 
    196 
    19750}
    198 
    199 
    200 
    20151form.cp-form table{
    202 
    203 
    204 
    20552  margin: 0px;
    206 
    207 
    208 
    20953  padding: 0px;
    210 
    211 
    212 
    21354  border: 0px;
    214 
    215 
    216 
    21755}
    218 
    219 
    220 
    22156form.cp-form table td,
    222 
    223 
    224 
    22557form.cp-form table th{
    226 
    227 
    228 
    22958    border: 0px;
    230 
    231 
    232 
    23359    padding: 6px 10px 6px 10px;
    234 
    235 
    236 
    23760}
    238 
    239 
    240 
    24161form.cp-form input,
    242 
    243 
    244 
    24562form.cp-form input:focus,
    246 
    247 
    248 
    24963form.cp-form input[type="submit"],
    250 
    251 
    252 
    25364form.cp-form select{
    254 
    255 
    256 
    25765  display: inline-block;
    258 
    259 
    260 
    26166  width: auto;
    262 
    263 
    264 
    26567  padding: 16px 10px 16px 10px;
    266 
    267 
    268 
    26968  margin: 0px;
    270 
    271 
    272 
    27369  border: 0px;
    274 
    275 
    276 
    27770  -webkit-border-radius: 5px;
    278 
    279 
    280 
    28171  -moz-border-radius: 5px;
    282 
    283 
    284 
    28572  border-radius: 5px;
    286 
    287 
    288 
    28973  font-size: 18px;
    290 
    291 
    292 
    29374  line-height: normal;
    294 
    295 
    296 
    29775  background-color: #000000;
    298 
    299 
    300 
    30176  color: #ffffff;
    302 
    303 
    304 
    30577  box-shadow: none;
    306 
    307 
    308 
    30978}
    310 
    311 
    312 
    31379form.cp-form input[type="submit"]{
    314 
    315 
    316 
    31780  padding: 16px 20px 16px 20px;
    318 
    319 
    320 
    32181  background-color: #000000;
    322 
    323 
    324 
    32582}
    326 
    327 
    328 
    32983form.cp-form label{
    330 
    331 
    332 
    33384  font-size: 18px;
    334 
    335 
    336 
    33785  color: #111111;
    338 
    339 
    340 
    34186}
    342 
    343 
    344 
    34587form.cp-form-chart{
    346 
    347 
    348 
    34988  margin: 0px;
    350 
    351 
    352 
    35389  font-size: 14px;
    354 
    355 
    356 
    35790}
    358 
    359 
    360 
    36191form.cp-form-chart select{
    362 
    363 
    364 
    36592  padding: 6px 4px 6px 4px;
    366 
    367 
    368 
    36993  margin: 0px;
    370 
    371 
    372 
    37394  font-size: 14px;
    374 
    375 
    376 
    37795}
    378 
    379 
    380 
    38196form.cp-form-chart label{
    382 
    383 
    384 
    38597  font-size: 14px;
    386 
    387 
    388 
    38998  color: #111111;
    390 
    391 
    392 
    39399}
    394 
    395 
    396 
    397 
    398 
    399 
    400 
    401100.cp-ticker-widget{
    402 
    403 
    404 
    405101  padding: 20px 0px 10px 0px;
    406 
    407 
    408 
    409102  text-align: center;
    410 
    411 
    412 
    413103  font-size: 14px;
    414 
    415 
    416 
    417104  background-color: #000000;
    418 
    419 
    420 
    421105}
    422 
    423 
    424 
    425106.cp-ticker-widget.changes-up{
    426 
    427 
    428 
    429107  background-color: #008000;
    430 
    431 
    432 
    433108}
    434 
    435 
    436 
    437109.cp-ticker-widget.changes-down{
    438 
    439 
    440 
    441110  background-color: #ff0000;
    442 
    443 
    444 
    445111}
    446 
    447 
    448 
    449112.cp-ticker-widget .cp-ticker-widget-icon{
    450 
    451113  text-align: center;
    452 
    453114}
    454 
    455 
    456 
    457115.cp-ticker-widget .cp-ticker-widget-icon img{
    458 
    459116  display: inline-block;
    460 
    461117  max-width: 100%;
    462 
    463 
    464 
    465118}
    466 
    467 
    468 
    469119.cp-ticker-widget .cp-ticker-widget-name{
    470 
    471 
    472 
    473120  font-size: 24px;
    474 
    475 
    476 
    477121  font-weight: bold;
    478 
    479 
    480 
    481122  color: #ffffff;
    482 
    483 
    484 
    485123}
    486 
    487 
    488 
    489124.cp-ticker-widget .cp-ticker-widget-pricing{
    490 
    491 
    492 
    493125  color: #ffffff;
    494 
    495 
    496 
    497126}
    498 
    499 
    500 
    501127.cp-ticker-widget .cp-ticker-widget-pricing .cp-ticker-widget-pricing-price{
    502 
    503 
    504 
    505128  margin-bottom: 10px;
    506 
    507 
    508 
    509129  font-size: 20px;
    510 
    511 
    512 
    513130  font-weight: bold;
    514 
    515 
    516 
    517131}
    518 
    519 
    520 
    521132.cp-ticker-widget .cp-ticker-widget-pricing .cp-ticker-widget-pricing-change .changes-up{
    522 
    523 
    524 
    525133  color: #0f9d58;
    526 
    527 
    528 
    529134}
    530 
    531 
    532 
    533135.cp-ticker-widget .cp-ticker-widget-pricing .cp-ticker-widget-pricing-change .changes-down{
    534 
    535 
    536 
    537136  color: #ff0000;
    538 
    539 
    540 
    541137}
    542 
    543 
    544 
    545138.cp-ticker-widget .cp-ticker-widget-period{
    546 
    547 
    548 
    549139  border: 1px solid #000000;
    550 
    551 
    552 
    553140  font-size: 12px;
    554 
    555 
    556 
    557141}
  • cryptocurrency-prices/trunk/css/cp_light.css

    r2509050 r2509051  
    11/* table styles */
    2 
    3 
    4 
    52table.cp-table{
    6 
    7 
    8 
    93    margin: 10px 0px 10px 0px;
    10 
    11 
    12 
    134  padding: 0px;
    14 
    15 
    16 
    175  border: 0px;
    18 
    19 
    20 
    216  font-size: 16px;
    22 
    23 
    24 
    257  line-height: normal;
    26 
    27 
    28 
    298  background-color: #ffffff;
    30 
    31 
    32 
    339  color: #111111;
    34 
    35 
    36 
    3710}
    38 
    39 
    40 
    4111table.cp-table tr:nth-child(even) {
    42 
    43 
    44 
    4512    background-color: #f0f0f0;
    46 
    47 
    48 
    4913}
    50 
    51 
    52 
    5314table.cp-table tr:hover {
    54 
    55 
    56 
    5715    background-color: #ffffff;
    58 
    59 
    60 
    6116  color: #000000;
    62 
    63 
    64 
    6517}
    66 
    67 
    68 
    6918table.cp-table a{
    70 
    71 
    72 
    7319  color: #000000;
    74 
    75 
    76 
    7720}
    78 
    79 
    80 
    8121table.cp-table td,
    82 
    83 
    84 
    8522table.cp-table th {
    86 
    87 
    88 
    8923    border: 0px;
    90 
    91 
    92 
    9324    padding: 6px 10px 6px 10px;
    94 
    95 
    96 
    9725}
    98 
    99 
    100 
    10126table.cp-table th {
    102 
    103 
    104 
    10527    padding: 12px 10px 12px 10px;
    106 
    107 
    108 
    10928  font-weight: bold;
    110 
    111 
    112 
    11329  background-color: #dddddd;
    114 
    115 
    116 
    11730  color: #000000;
    118 
    119 
    120 
    12131}
    122 
    123 
    124 
    12532table.cp-table td img {
    126 
    127 
    128 
    12933    width: 24px;
    130 
    131 
    132 
    13334}
    134 
    135 
    136 
    13735table.cp-table .change-dec {
    138 
    139 
    140 
    14136  color: #dd4433;
    142 
    143 
    144 
    14537}
    146 
    147 
    148 
    14938table.cp-table .change-inc {
    150 
    151 
    152 
    15339  color: #009933;
    154 
    155 
    156 
    15740}
    158 
    159 
    160 
    16141table.cp-table button {
    162 
    163 
    164 
    16542  padding: 0 1.1rem;
    166 
    167 
    168 
    16943}
    170 
    171 
    172 
    17344table.cp-table a {
    174 
    17545  text-decoration: none !important;
    176 
    17746  cursor: pointer;
    178 
    17947}
    180 
    181 
    182 
    18348/* form styles */
    184 
    185 
    186 
    18749form.cp-form{
    188 
    189 
    190 
    19150  margin: 10px 0px 10px 0px;
    192 
    193 
    194 
    19551  padding: 0px;
    196 
    197 
    198 
    19952  border: 0px;
    200 
    201 
    202 
    20353  font-size: 18px;
    204 
    205 
    206 
    20754}
    208 
    209 
    210 
    21155form.cp-form table{
    212 
    213 
    214 
    21556  margin: 0px;
    216 
    217 
    218 
    21957  padding: 0px;
    220 
    221 
    222 
    22358  border: 0px;
    224 
    225 
    226 
    22759}
    228 
    229 
    230 
    23160form.cp-form table td,
    232 
    233 
    234 
    23561form.cp-form table th{
    236 
    237 
    238 
    23962    border: 0px;
    240 
    241 
    242 
    24363    padding: 6px 10px 6px 10px;
    244 
    245 
    246 
    24764}
    248 
    249 
    250 
    25165form.cp-form input,
    252 
    253 
    254 
    25566form.cp-form input:focus,
    256 
    257 
    258 
    25967form.cp-form input[type="submit"],
    260 
    261 
    262 
    26368form.cp-form select{
    264 
    265 
    266 
    26769  display: inline-block;
    268 
    269 
    270 
    27170  width: auto;
    272 
    273 
    274 
    27571  padding: 16px 10px 16px 10px;
    276 
    277 
    278 
    27972  margin: 0px;
    280 
    281 
    282 
    28373  border: 0px;
    284 
    285 
    286 
    28774  -webkit-border-radius: 5px;
    288 
    289 
    290 
    29175  -moz-border-radius: 5px;
    292 
    293 
    294 
    29576  border-radius: 5px;
    296 
    297 
    298 
    29977  font-size: 18px;
    300 
    301 
    302 
    30378  line-height: normal;
    304 
    305 
    306 
    30779  background-color: #ffffff;
    308 
    309 
    310 
    31180  color: #000000;
    312 
    313 
    314 
    31581  box-shadow: none;
    316 
    317 
    318 
    31982}
    320 
    321 
    322 
    32383form.cp-form input[type="submit"]{
    324 
    325 
    326 
    32784  padding: 16px 20px 16px 20px;
    328 
    329 
    330 
    33185  background-color: #dddddd;
    332 
    333 
    334 
    33586}
    336 
    337 
    338 
    33987form.cp-form label{
    340 
    341 
    342 
    34388  font-size: 18px;
    344 
    345 
    346 
    34789  color: #000000;
    348 
    349 
    350 
    35190}
    352 
    353 
    354 
    35591form.cp-form-chart{
    356 
    357 
    358 
    35992  margin: 0px;
    360 
    361 
    362 
    36393  font-size: 14px;
    364 
    365 
    366 
    36794}
    368 
    369 
    370 
    37195form.cp-form-chart select{
    372 
    373 
    374 
    37596  padding: 6px 4px 6px 4px;
    376 
    377 
    378 
    37997  margin: 0px;
    380 
    381 
    382 
    38398  font-size: 14px;
    384 
    385 
    386 
    38799}
    388 
    389 
    390 
    391100form.cp-form-chart label{
    392 
    393 
    394 
    395101  font-size: 14px;
    396 
    397 
    398 
    399102  color: #000000;
    400 
    401 
    402 
    403103}
    404 
    405 
    406 
    407 
    408 
    409 
    410 
    411104.cp-ticker-widget{
    412 
    413 
    414 
    415105  padding: 10px 0px 10px 0px;
    416 
    417 
    418 
    419106  text-align: center;
    420 
    421 
    422 
    423107  font-size: 14px;
    424 
    425 
    426 
    427108  background-color: #ffffff;
    428 
    429 
    430 
    431109}
    432 
    433 
    434 
    435110.cp-ticker-widget.changes-up{
    436 
    437 
    438 
    439111  background-color: #008000;
    440 
    441 
    442 
    443112}
    444 
    445 
    446 
    447113.cp-ticker-widget.changes-down{
    448 
    449 
    450 
    451114  background-color: #ff0000;
    452 
    453 
    454 
    455115}
    456 
    457 
    458 
    459116.cp-ticker-widget .cp-ticker-widget-icon{
    460 
    461117  text-align: center;
    462 
    463118}
    464 
    465 
    466 
    467119.cp-ticker-widget .cp-ticker-widget-icon img{
    468 
    469120  display: inline-block;
    470 
    471121  max-width: 100%;
    472 
    473 
    474 
    475122}
    476 
    477 
    478 
    479123.cp-ticker-widget .cp-ticker-widget-name{
    480 
    481 
    482 
    483124  font-size: 24px;
    484 
    485 
    486 
    487125  font-weight: bold;
    488 
    489 
    490 
    491126  color: #000000;
    492 
    493 
    494 
    495127}
    496 
    497 
    498 
    499128.cp-ticker-widget .cp-ticker-widget-pricing{
    500 
    501 
    502 
    503129  color: #000000;
    504 
    505 
    506 
    507130}
    508 
    509 
    510 
    511131.cp-ticker-widget .cp-ticker-widget-pricing .cp-ticker-widget-pricing-price{
    512 
    513 
    514 
    515132  margin-bottom: 10px;
    516 
    517 
    518 
    519133  font-size: 20px;
    520 
    521 
    522 
    523134  font-weight: bold;
    524 
    525 
    526 
    527135}
    528 
    529 
    530 
    531136.cp-ticker-widget .cp-ticker-widget-pricing .cp-ticker-widget-pricing-change .changes-up{
    532 
    533 
    534 
    535137  color: #008000;
    536 
    537 
    538 
    539138}
    540 
    541 
    542 
    543139.cp-ticker-widget .cp-ticker-widget-pricing .cp-ticker-widget-pricing-change .changes-down{
    544 
    545 
    546 
    547140  color: #ff0000;
    548 
    549 
    550 
    551141}
    552 
    553 
    554 
    555142.cp-ticker-widget .cp-ticker-widget-period{
    556 
    557 
    558 
    559143  border: 1px solid #000000;
    560 
    561 
    562 
    563144  font-size: 12px;
    564 
    565 
    566 
    567145}
  • cryptocurrency-prices/trunk/includes/admin.class.php

    r2509050 r2509051  
    11<?php
    2 
    32class CCPS_Admin {
    4 
    53  const NONCE = 'cp-admin-settings';
    6 
    74  private static $initiated = false;
    8 
    95  public static function init() {
    10 
    116    if ( ! self::$initiated ) {
    12 
    137            self::init_hooks();
    14 
    158        }
    16 
    17   }
    18 
     9  }
    1910    public static function init_hooks() {
    20 
    2111    self::$initiated = true;
    22 
    2312    //add admin menu
    24 
    2513    add_action( 'admin_menu', array( 'CCPS_Admin', 'register_menu_page' ) );
    26 
    2714        add_action( 'admin_init', array( 'CCPS_Admin', 'dismiss_notices' ) );
    28 
    2915        add_action( 'admin_notices', array( 'CCPS_Admin', 'admin_notices' ) );
    30 
    3116        add_action( 'admin_print_footer_scripts', array( 'CCPS_Admin', 'admin_scripts' ) );
    32 
    33   }
    34 
     17  }
    3518    public static function admin_notices() {
    36 
    3719        /*
    38 
    3920        if ( get_option( 'cryptocurrency-hide-update-notice-3.0.12' ) != true ) {
    40 
    4121            ?>
    42 
    4322    <div class="notice notice-info is-dismissible">
    44 
    4523        <p><?php _e( 'Thanks for updating Cryptocurrency. With this new version, you can now EARN CRYPTO! Rush to <a target="_blank" href="https://zwaply.com/register/">create your Zwaply username</a> and start earning crypto. <a target="_blank" href="https://zwaply.com/zwaply-for-web/">Learn more about Zwaply</a>.', 'cryptocurrency-prices' ); ?></p>
    46 
    4724        <p style="margin-bottom:10px;font-size: 8pt;"><a href="<?php echo admin_url( '?action=cryptocurrency-dismiss-update-notice' ); ?>"><?php _e( 'Dismiss notice', 'crypto-coin-ticker' ); ?></a></p>
    48 
    4925    </div>
    50 
    5126            <?php
    52 
    5327        }
    54 
    5528        */
    56 
    5729        if ( get_option( 'cryptocurrency-hide-affiliate-notice2' ) != true ) {
    58 
    5930            ?>
    60 
    6131    <div class="notice notice-info is-dismissible">
    62 
    6332        <a href="https://accounts.binance.com/en/register?ref=WZH1ARU9"><img src="<?php echo CCPS_URL; ?>images/binance.png" alt="Get 5% off on Binance" style="display: inline-block; float: left; margin: 12px 15px 0px 0px;" /></a>
    64 
    6533        <p style="font-size: 16px;">
    66 
    6734           
    68 
    6935            <?php _e( 'Get 5% off in your commission every time you trade on Binance if you signup with this unique link: <a href="https://accounts.binance.com/en/register?ref=WZH1ARU9">https://accounts.binance.com/en/register?ref=WZH1ARU9</a>.', 'cryptocurrency-prices' ); ?>
    70 
    7136        </p>
    72 
    7337        <p style="margin-bottom:10px;font-size: 8pt;"><a href="<?php echo admin_url( '?action=cryptocurrency-hide-affiliate-notice2' ); ?>"><?php _e( 'Dismiss notice', 'crypto-coin-ticker' ); ?></a></p>
    74 
    7538    </div>
    76 
    7739            <?php
    78 
    7940        }
    80 
    8141    }
    82 
    8342    public static function dismiss_notices() {
    84 
    8543        /*
    86 
    8744        if ( isset( $_GET['action'] ) && 'cryptocurrency-dismiss-update-notice' === $_GET['action'] ) {
    88 
    8945            update_option( 'cryptocurrency-hide-update-notice-3.0.12', true );
    90 
    9146        }
    92 
    9347        */
    94 
    9548        if ( isset( $_GET['action'] ) && 'cryptocurrency-hide-affiliate-notice2' === $_GET['action'] ) {
    96 
    9749            update_option( 'cryptocurrency-hide-affiliate-notice2', true );
    98 
    9950        }
    100 
    10151    }
    102 
    10352    public static function admin_scripts() {
    104 
    10553        ?>
    106 
    10754    <script>
    108 
    10955    (function($){
    110 
    11156      $('a[href*="zwaply.com/affiliate-login"]').each(function(i,elm){
    112 
    11357        var $elm = $(elm);
    114 
    11558        if(!$elm.attr('target')){
    116 
    11759          $elm.attr('target','_blank');
    118 
    11960        }
    120 
    12161      })
    122 
    12362    })(jQuery)
    124 
    12563    </script>
    126 
    12764    <?php
    128 
    12965    }
    130 
    13166  public static function register_menu_page() {
    132 
    13367    add_menu_page(
    134 
    13568      // __( 'Cyptocurrency All-in-One', 'cryptocurrency' ),
    136 
    13769      // __( 'Cyptocurrency', 'cryptocurrency' ),
    138 
    13970      __( 'Cyptocurrency', 'cryptocurrency' ),
    140 
    14171      __( 'Cyptocurrency', 'cryptocurrency' ),
    142 
    14372      'manage_options',
    144 
    14573      'settings',
    146 
    14774      // array('CCPS_Admin', 'cryptocurrency_prices_admin'),
    148 
    14975      array('CCPS_Admin', 'cryptocurrency_prices_admin_settings'),
    150 
    15176      CCPS_URL.'images/admin-icon.png',
    152 
    15377      81
    154 
    15578      // 'settings',
    156 
    15779      // __( 'Settings', 'cryptocurrency' ),
    158 
    15980      // __( 'Settings', 'cryptocurrency' ),
    160 
    16181      // 'manage_options',
    162 
    16382      // 'settings',
    164 
    16583      // array('CCPS_Admin', 'cryptocurrency_prices_admin_settings')
    166 
    16784    );
    168 
    16985    add_submenu_page(
    170 
    17186      'settings',
    172 
    17387      __( 'Help', 'cryptocurrency' ),
    174 
    17588      __( 'Help', 'cryptocurrency' ),
    176 
    17789      'manage_options',
    178 
    17990      'cryptocurrency-prices',
    180 
    18191      array('CCPS_Admin', 'cryptocurrency_prices_admin_help')
    182 
    18392    );
    184 
    18593    add_submenu_page(
    186 
    18794      'settings',
    188 
    18995      __( 'Crypto Resources', 'cryptocurrency' ),
    190 
    19196      __( 'Crypto Resources', 'cryptocurrency' ),
    192 
    19397      'manage_options',
    194 
    19598      'resources',
    196 
    19799      array('CCPS_Admin', 'cryptocurrency_prices_admin_resources')
    198 
    199100    );
    200 
    201101    // add_submenu_page(
    202 
    203102    //   'settings',
    204 
    205103    //   __( 'Settings', 'cryptocurrency' ),
    206 
    207104    //   __( 'Settings', 'cryptocurrency' ),
    208 
    209105    //   'manage_options',
    210 
    211106    //   'settings',
    212 
    213107    //   array('CCPS_Admin', 'cryptocurrency_prices_admin_settings')
    214 
    215108    // );
    216 
    217109    global $submenu;
    218 
    219110    $url = 'https://zwaply.com/affiliate-login/';
    220 
    221111    $submenu['settings'][] = array(__( 'Affiliate Panel', 'cryptocurrency' ), 'manage_options', $url);
    222 
    223112    add_submenu_page(
    224 
    225113      'settings',
    226 
    227114      __( 'Premium and Updates', 'cryptocurrency' ),
    228 
    229115      __( 'Premium and Updates', 'cryptocurrency' ),
    230 
    231116      'manage_options',
    232 
    233117      'premium',
    234 
    235118      array('CCPS_Admin', 'cryptocurrency_prices_admin_premium')
    236 
    237119    );
    238 
    239   }
    240 
     120  }
    241121  public static function cryptocurrency_prices_admin(){
    242 
    243122    //self::cryptocurrency_prices_admin_help();
    244 
    245   }
    246 
     123  }
    247124  public static function cryptocurrency_prices_admin_resources(){
    248 
    249125    //check if user has admin capability
    250 
    251126    if (current_user_can( 'manage_options' )){
    252 
    253       echo '
    254 
     127      echo '
    255128      <div class="wrap cryptocurrency-admin">
    256 
    257129        <h1>Cyptocurrency Resources:</h1>
    258 
    259130        <p>You will find a list of resources, specially selected for the users of Cyptocurrency All-in-One.</p>
    260 
    261131        <h2>Buy Bitcoin and other cryptocurrency</h2>
    262 
    263132        <a href="https://accounts.binance.com/en/register?ref=WZH1ARU9">Get 5% off in your commission every time you trade on Binance if you signup with this unique link: https://accounts.binance.com/en/register?ref=WZH1ARU9</a><br />
    264 
    265133        <a href="https://cex.io/r/1/byankov/1">Buy Bitcoin and excnahge it to other cryptocurrency at CEX.IO</a><br />
    266 
    267134        <h2>Create Bitcoin and altcoin wallets</h2>
    268 
    269135        <a href="https://www.ledgerwallet.com/products/ledger-nano-s">Hardware wallet Ledger Nano S. Very secure but costs money.  Works for receiving donations and payments.</a><br />
    270 
    271136        <a href="https://trezor.io/">Hardware wallet TREZOR. Very secure but costs money.  Works for receiving donations and payments.</a><br />
    272 
    273137        <a href="https://bitcoin.org/en/download ">Official bitcoin software wallet (hot wallet). Relatively secure. Works for receiving donations and payments.</a><br />
    274 
    275138        <a href="https://cex.io/r/0/byankov/0">Exchange site CEX.IO - allows one bitcoin wallet and one wallet for every altcoin. Very easy to use. Works for receiving donations.</a><br />
    276 
    277139        <a href="https://yobit.io/?bonus=srtAb">Exchange site YoBit.net - allows one bitcoin wallet and one wallet for every altcoin. Very easy to use. Works for receiving donations.</a><br />
    278 
    279140        <a href="https://accounts.binance.com/en/register?ref=WZH1ARU9">Get 5% off in your commission every time you trade on Binance if you signup with this unique link: https://accounts.binance.com/en/register?ref=WZH1ARU9</a><br />
    280 
    281141        <h2>Trade and exchange cryptocurrency</h2>
    282 
    283142        <a href="https://zwaply.com/">Zwaply.com - a trading solution that delivers on top of IM apps. Instant, non-custodial, secure, and private crypto exchange</a><br />
    284 
    285143        <a href="https://accounts.binance.com/en/register?ref=WZH1ARU9">Get 5% off in your commission every time you trade on Binance if you signup with this unique link: https://accounts.binance.com/en/register?ref=WZH1ARU9</a><br />
    286 
    287144        <a href="https://yobit.io/?bonus=srtAb">Exchange with many coins and low fees for trading - YObit.net</a><br />
    288 
    289145        <a href="https://cex.io/r/0/byankov/0">Trusted exchange site - CEX.IO</a><br />
    290 
    291146        <a href="https://creditstocks.com/cryptocurrency-prices/list-of-all-cryptocurrencies/">List of all cryptocurrencies</a><br />
    292 
    293147        <h2>Publish cryptocurrency article</h2>
    294 
    295148        <a href="https://creditstocks.com/submit-article-creditstocks-com/">Publish cryptocurrency or finance article at CreditStocks.com - free</a><br />
    296 
    297149        <a href="http://satoshijournal.com/submit-an-article/">Publish cryptocurrency or finance article at SatochiJournal.com - free</a><br />
    298 
    299150        <h2>Cryptocurrency mining</h2>
    300 
    301151        <a href="http://www.whattomine.com/">Mining calculator - What to mine</a><br />
    302 
    303152        <a href="https://www.cryptocompare.com/mining/calculator/btc">Mining calculator - Bitcoin</a><br />
    304 
    305153        <a href="https://www.cryptocompare.com/mining/calculator/eth">Mining calculator - Ethereum</a><br />
    306 
    307154        <h2>Development resources</h2>
    308 
    309155        <a href="https://github.com/BoyanBorislavovYankov/Blockchain-Payload-Tools">Publish documents, articles and other data forever on Ethereum blockchain</a><br />
    310 
    311156        <a href="https://theethereum.wiki/w/index.php/ERC20_Token_Standard">ERC20 - Ethereum token standard</a><br />
    312 
    313157        <a href="https://infura.io/">Infura - Open and free to use Ethereum node</a><br />
    314 
    315158        <a href="https://coinmarketcap.com/api/">Free data API about cryptocurrencies - CoinMarketCap</a><br />
    316 
    317159        <a href="https://www.cryptocompare.com/api/">Free data API about cryptocurrencies - CryptoCompare</a><br />
    318 
    319160        <h2>Crypto community</h2>
    320 
    321161        <a href="https://web.facebook.com/groups/469221573283979/">Knights of Satoshi - Facebook group</a><br />
    322 
    323162        <a href="https://bitcointalk.org/">BitcoinTalk.org - the largest Bitcoin and cryptocurrency forum</a>
    324 
    325163        <p><small>* The list is not a recommendation ot the listed services. This is just a list of what we use - you may decide to use them or not at your own risk. Some links may be links to external services, affiliate links, or links that do not work anymore.</small></p>
    326 
    327164      </div>
    328 
    329       ';
    330 
    331     }
    332 
    333   }
    334 
     165      ';
     166    }
     167  }
    335168  public static function cryptocurrency_prices_admin_settings(){
    336 
    337169    //check if user has admin capability
    338 
    339170    if (current_user_can( 'manage_options' )){
    340 
    341171      $admin_message_html = '';
    342 
    343172      if (isset($_POST['cryptocurrency-prices-zwaply-affiliate-id'])){
    344 
    345         //check nonce
    346 
    347         check_admin_referer( self::NONCE );
    348 
     173        //check nonce
     174        check_admin_referer( self::NONCE );
    349175        $sanitized_ethereum_api = sanitize_text_field($_POST['cryptocurrency-prices-zwaply-affiliate-id']);
    350 
    351176        update_option('cryptocurrency-prices-zwaply-affiliate-id', $sanitized_ethereum_api);
    352 
    353         $admin_message_html = '<div class="notice notice-success"><p>Plugin settings have been updated!</p></div>';
    354 
    355       }
    356 
     177        $admin_message_html = '<div class="notice notice-success"><p>Plugin settings have been updated!</p></div>';
     178      }
    357179      if (isset($_POST['cp_coinmarketcap_api_key'])){
    358 
    359         //check nonce
    360 
    361         check_admin_referer( self::NONCE );
    362 
     180        //check nonce
     181        check_admin_referer( self::NONCE );
    363182        $sanitized_coinmarketcap_api_key = sanitize_text_field($_POST['cp_coinmarketcap_api_key']);
    364 
    365183        update_option('cp_coinmarketcap_api_key', $sanitized_coinmarketcap_api_key);
    366 
    367         $admin_message_html = '<div class="notice notice-success"><p>Plugin settings have been updated!</p></div>';
    368 
    369       }
    370 
     184        $admin_message_html = '<div class="notice notice-success"><p>Plugin settings have been updated!</p></div>';
     185      }
    371186      if (isset($_POST['cryptocurrency-prices-default-css']) and $_POST['cryptocurrency-prices-default-css']!=''){
    372 
    373         //check nonce
    374 
    375         check_admin_referer( self::NONCE );
    376 
     187        //check nonce
     188        check_admin_referer( self::NONCE );
    377189        $sanitized_cryptocurrency_prices_default_css = sanitize_text_field($_POST['cryptocurrency-prices-default-css']);
    378 
    379190        update_option('cryptocurrency-prices-default-css', $sanitized_cryptocurrency_prices_default_css);
    380 
    381         $admin_message_html = '<div class="notice notice-success"><p>Plugin settings have been updated!</p></div>';
    382 
    383       }
    384 
     191        $admin_message_html = '<div class="notice notice-success"><p>Plugin settings have been updated!</p></div>';
     192      }
    385193      if (isset($_POST['cryptocurrency-prices-show-trade-button'])){
    386 
    387         //check nonce
    388 
    389         check_admin_referer( self::NONCE );
    390 
     194        //check nonce
     195        check_admin_referer( self::NONCE );
    391196        $show_trade_button = 'yes' === $_POST['cryptocurrency-prices-show-trade-button'] ? 'yes' : 'no';
    392 
    393197        update_option('cryptocurrency-prices-show-trade-button', $show_trade_button);
    394 
    395         $admin_message_html = '<div class="notice notice-success"><p>Plugin settings have been updated!</p></div>';
    396 
    397       }
    398 
     198        $admin_message_html = '<div class="notice notice-success"><p>Plugin settings have been updated!</p></div>';
     199      }
    399200      if (isset($_POST['ethereum-api'])){
    400 
    401         //check nonce
    402 
    403         check_admin_referer( self::NONCE );
    404 
     201        //check nonce
     202        check_admin_referer( self::NONCE );
    405203        $sanitized_ethereum_api = sanitize_text_field($_POST['ethereum-api']);
    406 
    407204        update_option('ethereum-api', $sanitized_ethereum_api);
    408 
    409         $admin_message_html = '<div class="notice notice-success"><p>Plugin settings have been updated!</p></div>';
    410 
    411       }
    412 
     205        $admin_message_html = '<div class="notice notice-success"><p>Plugin settings have been updated!</p></div>';
     206      }
    413207      if (isset($_POST['cryptocurrency-prices-css'])){
    414 
    415         //check nonce
    416 
    417         check_admin_referer( self::NONCE );
    418 
     208        //check nonce
     209        check_admin_referer( self::NONCE );
    419210        $sanitized_cryptocurrency_prices_css = sanitize_text_field($_POST['cryptocurrency-prices-css']);
    420 
    421211        update_option('cryptocurrency-prices-css', $sanitized_cryptocurrency_prices_css);
    422 
    423         $admin_message_html = '<div class="notice notice-success"><p>Plugin settings have been updated!</p></div>';
    424 
    425       }
    426 
     212        $admin_message_html = '<div class="notice notice-success"><p>Plugin settings have been updated!</p></div>';
     213      }
    427214      //delete_option( 'cryptocurrency-prices-default-css' ); //remove setting
    428 
    429215      $default_css_selected_light = '';
    430 
    431216      $default_css_selected_dark = '';
    432 
    433217      if (get_option('cryptocurrency-prices-default-css') == 'light'){
    434 
    435218        $default_css_selected_light = 'selected="selected"';
    436 
    437219      } elseif (get_option('cryptocurrency-prices-default-css') == 'dark'){
    438 
    439220        $default_css_selected_dark = 'selected="selected"';
    440 
    441       }
    442 
     221      }
    443222      $show_trade_button_option_yes = '';
    444 
    445223      $show_trade_button_option_no = '';
    446 
    447224      if (get_option('cryptocurrency-prices-show-trade-button') == 'yes'){
    448 
    449225        $show_trade_button_option_yes = 'selected="selected"';
    450 
    451226      } elseif (get_option('cryptocurrency-prices-show-trade-button') == 'no'){
    452 
    453227        $show_trade_button_option_no = 'selected="selected"';
    454 
    455       }
    456 
    457       echo '
    458 
     228      }
     229      echo '
    459230      <div class="wrap cryptocurrency-admin">
    460 
    461231        '.$admin_message_html.'
    462 
    463232        <h1>Cyptocurrency All-in-One Settings:</h1>
    464 
    465233        <h2>Place the widget on your blog:</h2>
    466 
    467234        <p>Just paste [allcurrencies] in your Theme, and at the bottom of all your posts.</p>
    468 
    469235        <p>This is what you’ll see:</p>
    470 
    471236        <img src="'. plugin_dir_url( __FILE__ ) . 'images/screenshot-9.png' .'">
    472 
    473237        <br><br>
    474 
    475238        <hr>
    476 
    477239        <form action="" method="post">
    478 
    479240          <h2>Affiliate:</h2>
    480 
    481241          <label>Your Zwaply.com username: </label>
    482 
    483242          <div style="display: inline-block;">
    484 
    485243          <label for="cryptocurrency-prices-zwaply-affiliate-id">
    486 
    487244            <input class="cryptocurrency-prices-zwaply-affiliate-id" id="cryptocurrency-prices-zwaply-affiliate-id" name="cryptocurrency-prices-zwaply-affiliate-id" type="text" value="'.get_option('cryptocurrency-prices-zwaply-affiliate-id').'">
    488 
    489245          </label>
    490 
    491246          <span><span class="description"><a href="https://zwaply.com/register/" target="_blank">Get yours here to start earning crypto</a></span></span>
    492 
    493247          </div>
    494 
    495248          <!--
    496 
    497249          <h2>CoinMarketCap Api:</h2>
    498 
    499250          <p>
    500 
    501251            Our plugin uses Coingecko\'s API (www.coingecko.com). If you\'d like to use CoinMarketCap\'s API, please register for a free api key here <a href="https://pro.coinmarketcap.com/" target="_blank">https://pro.coinmarketcap.com</a>  and save the key in the Settings page.
    502 
    503252          </p>
    504 
    505253          <label>Your free CoinMarketCap API key: </label>
    506 
    507254          <div style="display: inline-block;">
    508 
    509255          <label for="cp_coinmarketcap_api_key">
    510 
    511256            <input class="cp_coinmarketcap_api_key" id="cp_coinmarketcap_api_key" name="cp_coinmarketcap_api_key" type="text" value="'.get_option('cp_coinmarketcap_api_key').'">
    512 
    513257          </label>
    514 
    515258          </div>
    516 
    517259          -->
    518 
    519260          <h2>Design:</h2>
    520 
    521261          <label>Show Trade button: </label>
    522 
    523262          <select name="cryptocurrency-prices-show-trade-button">
    524 
    525263            <option value="yes" '.$show_trade_button_option_yes.'>Yes</option>
    526 
    527264            <option value="no" '.$show_trade_button_option_no.'>No</option>
    528 
    529265          </select>
    530 
    531266          <p></p>
    532 
    533267          <label>Use default design (includes default CSS): </label>
    534 
    535268          <select name="cryptocurrency-prices-default-css">
    536 
    537269            <option value="0">no</option>
    538 
    539270            <option value="light" '.$default_css_selected_light.'>light</option>
    540 
    541271            <option value="dark" '.$default_css_selected_dark.'>dark</option>
    542 
    543272          </select>
    544 
    545273          <p>Write your custom CSS code here to style the plugin. Check the <a href="https://wordpress.org/support/plugin/cryptocurrency-prices/" target="_blank">support forum</a> for examples.</p>
    546 
    547274          <textarea name="cryptocurrency-prices-css" rows="5" cols="50">'.get_option('cryptocurrency-prices-css').'</textarea>
    548 
    549275          <!--<h2>Ethereum blockchain node API URL:</h2>
    550 
    551276          <p>You need to set it up, if you will use the ethereum blockchain features. Example URLs http://localhost:8545 for your own node or register for a public node https://mainnet.infura.io/[your key].</p>
    552 
    553277          <input type="text" name="ethereum-api" value="'.get_option('ethereum-api').'" /> -->
    554 
    555278          <br /><br />
    556 
    557279          '.wp_nonce_field( self::NONCE ).'       
    558 
    559280          <input type="submit" value="Save options" />
    560 
    561281        </form>
    562 
    563282        <br />
    564 
    565283        <h4>
    566 
    567284        P.S. IF YOU WANT TO GET 5% OFF FOR A LIFETIME FEES OF TRADES ON BINANCE, USE THIS LINK TO SIGNUP: <a href="https://www.binance.com/en/register?ref=W643BRI2">https://www.binance.com/en/register?ref=W643BRI2</a>
    568 
    569285        </h4>
    570 
    571286      </div>
    572 
    573       ';
    574 
    575     }
    576 
    577   }
    578 
     287      ';
     288    }
     289  }
    579290  public static function cryptocurrency_prices_admin_premium(){
    580 
    581291    echo '
    582 
    583292    <div class="wrap cryptocurrency-admin">
    584 
    585293    <h1>Cyptocurrency All-in-One Premium Version and Updates::</h1>
    586 
    587294    ';
    588 
    589295    echo '
    590 
    591296    <h2>Get premium version</h2>
    592 
    593297    <p>The premium version has a lot more features than the free version + free support. To get the premium version visit this page <a href="https://creditstocks.com/cryptocurrency-one-wordpress-plugin/">https://creditstocks.com/cryptocurrency-one-wordpress-plugin/</a><p>
    594 
    595298    <h2>Premium version updates</h2>
    596 
    597299    <p>The premium version of the plugin is constantly updated. Updates include new features, improvements of existing features and security improvements. It is highly recommended that you keep your plugin updated.</p>
    598 
    599300    <p>Premium version updates are manual. To check your current version, visit the <a href="plugins.php" target="_blank">Plugins page</a>. To purchase updates, visit the plugin web site: <a href="https://creditstocks.com/cryptocurrency-one-wordpress-plugin/" target="_blank">https://creditstocks.com/cryptocurrency-one-wordpress-plugin/</a></p>
    600 
    601301    ';
    602 
    603302    echo '
    604 
    605303    </div>
    606 
    607304    ';
    608 
    609   }
    610 
     305  }
    611306  public static function cryptocurrency_prices_admin_help(){
    612 
    613307    //set the active tab
    614 
    615308    $active_tab = isset( $_GET[ 'tab' ] ) ? $_GET[ 'tab' ] : 'exchange';
    616 
    617309    echo '
    618 
    619310    <div class="wrap cryptocurrency-admin">
    620 
    621311      <h1>Cyptocurrency All-in-One Help:</h1>
    622 
    623312    ';
    624 
    625313    echo '
    626 
    627314      <h2 class="nav-tab-wrapper">
    628 
    629315          <a href="?page=cryptocurrency-prices&tab=exchange" class="nav-tab">Exchange rates</a>
    630 
    631316          <a href="?page=cryptocurrency-prices&tab=calculator" class="nav-tab">Calculator</a>
    632 
    633317          <a href="?page=cryptocurrency-prices&tab=candlestick_chart" class="nav-tab">Price chart</a>
    634 
    635318          <a href="?page=cryptocurrency-prices&tab=ticker_widget" class="nav-tab">Ticker widget</a>
    636 
    637319          <a href="?page=cryptocurrency-prices&tab=list_cryptocurrencies" class="nav-tab">List all cryptocurrencies</a>
    638 
    639320          <a href="?page=cryptocurrency-prices&tab=orders_payments" class="nav-tab">Orders, payments</a>
    640 
    641321          <a href="?page=cryptocurrency-prices&tab=donations" class="nav-tab">Donations</a>
    642 
    643322          <a href="?page=cryptocurrency-prices&tab=ethereum" class="nav-tab">Ethereum Node</a>
    644 
    645323          <a href="?page=cryptocurrency-prices&tab=others" class="nav-tab">Other features</a>
    646 
    647324      </h2>
    648 
    649325    ';
    650 
    651326    if ($active_tab == 'exchange'){
    652 
    653       echo '
    654 
     327      echo '
    655328        <h2>To display cryptocurrency exchange rates (premium version only):</h2>
    656 
    657329        <p>To show cryptocurrency prices, add a shortcode to the text of the pages or posts where you want the cryptocurrency prices to apperar. Exapmle shortcodes:</p>
    658 
    659330        [currencyprice currency1="btc" currency2="usd,eur,ltc,eth,jpy,gbp,chf,aud,cad"]<br />
    660 
    661331        [currencyprice currency1="ltc" currency2="usd,eur,btc"]
    662 
    663332        <p>You can also call the prices from the theme like this:</p>
    664 
    665333        '.htmlspecialchars('<?php echo do_shortcode(\'[currencyprice currency1="btc" currency2="usd,eur"]\'); ?>').'
    666 
    667334        <p>Most cryptocurrencies are supported and the major ones also have icons: Bitcoin BTC, Ethereum ETH, XRP, DASH, LTC, ETC, XMR, XEM, REP, MAID, PIVX, GNT, DCR, ZEC, STRAT, BCCOIN, FCT, STEEM, WAVES, GAME, DOGE, ROUND, DGD, LISK, SNGLS, ICN, BCN, XLM, BTS, ARDR, 1ST, PPC, NAV, XCP, NXT, LANA. Partial suport for over 1000 cryptocurrencies. Fiat currencies conversion supported: AUD, USD, CAD, GBP, EUR, CHF, JPY, CNY.</p>
    668 
    669335        <p><a href="https://creditstocks.com/cryptocurrency-prices/current-litecoin-price/" target="_blank">Live demo</a></p>
    670 
    671       ';
    672 
    673     }
    674 
     336      ';
     337    }
    675338    if ($active_tab == 'calculator'){
    676 
    677       echo '
    678 
     339      echo '
    679340        <h2>To display cryptocurrency calculator (premium version only):</h2>
    680 
    681341        <p>To show cryptocurrency calculator, add a shortcode to the text of the pages or posts where you want the calculator prices to apperar. Exapmle shortcodes:</p>
    682 
    683342        [currencycalculator currency1="btc" currency2="usd,eur,ltc,eth,jpy,gbp,chf,aud,cad"]<br />
    684 
    685343        [currencycalculator currency1="ltc" currency2="usd,eur,btc"]
    686 
    687344        <p>You can also call the calculator from the theme like this:</p>
    688 
    689345        '.htmlspecialchars('<?php echo do_shortcode(\'[currencycalculator currency1="btc" currency2="usd,eur"]\'); ?>').'
    690 
    691346        <p>Most cryptocurrencies are supported and the major ones also have icons: Bitcoin BTC, Ethereum ETH, XRP, DASH, LTC, ETC, XMR, XEM, REP, MAID, PIVX, GNT, DCR, ZEC, STRAT, BCCOIN, FCT, STEEM, WAVES, GAME, DOGE, ROUND, DGD, LISK, SNGLS, ICN, BCN, XLM, BTS, ARDR, 1ST, PPC, NAV, XCP, NXT, LANA. Partial suport for over 1000 cryptocurrencies. Fiat currencies conversion supported: AUD, USD, CAD, GBP, EUR, CHF, JPY, CNY.</p>
    692 
    693347        <p><a href="https://creditstocks.com/cryptocurrency-prices/current-litecoin-price/" target="_blank">Live demo</a></p>
    694 
    695       ';
    696 
    697     }
    698 
     348      ';
     349    }
    699350    if ($active_tab == 'candlestick_chart'){
    700 
    701       echo '
    702 
     351      echo '
    703352        <h2>To display cryptocurrency candlestick price chart (premium version only):</h2>
    704 
    705353        <p>To show cryptocurrency candlestick chart graphic, add a shortcode to the text of the pages or posts where you want the chart to apperar. Set the cryptocurrency that you want on the chart as currency1 and the base currency as currency2. Supported periods are 1hour, 24hours, 7days, 30days, 1year. Exapmle shortcodes:</p>
    706 
    707354        [currencychart currency1="btc" currency2="usd"]<br />
    708 
    709355        [currencychart currency1="dash" currency2="btc" defaultperiod="1year"]
    710 
    711356        <p>You can also call the chart from the theme like this:</p>
    712 
    713357        '.htmlspecialchars('<?php echo do_shortcode(\'[currencychart currency1="btc" currency2="usd"]\'); ?>').'
    714 
    715358        <p><a href="https://creditstocks.com/cryptocurrency-prices/current-bitcoin-price/" target="_blank">Live demo</a></p>
    716 
    717       ';
    718 
    719     }
    720 
     359      ';
     360    }
    721361    if ($active_tab == 'ticker_widget'){
    722 
    723       echo '
    724 
     362      echo '
    725363        <h2>Cryptocurrency ticker widget - a badge with the logo, price, and 24h change of one cryptocurrency:</h2>
    726 
    727364        <p>To show the cryptocurrency ticker widget go to Appearance / Widgets and add the widget to the widget area where you want it to appear. Set the cryptocurrency you wan to show - for example BTC. Or add the following shortcode to the text of the pages or posts where you want the widget to appear. Exapmle shortcodes:</p>
    728 
    729365        [currencyticker currency="eth"]<br />
    730 
    731366        <p><a href="https://creditstocks.com/cryptocurrency-prices/current-bitcoin-price/" target="_blank">Live demo</a></p>
    732 
    733       ';
    734 
    735     }
    736 
     367      ';
     368    }
    737369    if ($active_tab == 'list_cryptocurrencies'){
    738 
    739       echo '
    740 
     370      echo '
    741371        <h2>To display a list of all cryptocurrencies</h2>
    742 
    743372        <p>Add a shortcode to the text of the pages or posts where you want to display CoinMarketCap style list of all cryptocurrencies. The list is paginated, sortable, searchable. The shortcode supports selecting the base currency for showing the prices, default is USD. You can set the total number of cryptocurrencies (default 500), the cryptocurrencies per page (default 100), the number format locale. Exapmle shortcodes:</p>
    744 
    745373        [allcurrencies]<br />
    746 
    747374        [allcurrencies basecurrency="eur"]<br />
    748 
    749375        [allcurrencies limit="100" perpage="10"]<br />
    750 
    751376        [allcurrencies basecurrency="eur" locale="de-DE"]
    752 
    753377        <p>You can also call the list from the theme like this:</p>
    754 
    755378        '.htmlspecialchars('<?php echo do_shortcode(\'[allcurrencies]\'); ?>').'
    756 
    757379        <p><a href="https://creditstocks.com/cryptocurrency-prices/list-of-all-cryptocurrencies/" target="_blank">Live demo</a></p>
    758 
    759       ';
    760 
    761     }
    762 
     380      ';
     381    }
    763382    if ($active_tab == 'orders_payments'){
    764 
    765       echo '
    766 
     383      echo '
    767384        <h2>To accept cryptocurrency orders and payments (premium version only):</h2>
    768 
    769385        <p>Supported currencies for payments are:</p>
    770 
    771386        <ul>
    772 
    773387          <li>Bitcoin (BTC) (default),</li>
    774 
    775388          <li>Ethereum (ETH),</li>
    776 
    777389          <li>Litecoin (LTC),</li>
    778 
    779390          <li>Bitcoin Cash (BCH),</li>
    780 
    781391          <li>Zcash (ZEC).</li>
    782 
    783392        </ul>
    784 
    785393        <p>
    786 
    787394          Open the plugin settings and under "Payment settings" fill in your BTC (or other cryptocurrency) wallet addresses to receive payments and an email for receiving payment notifications.<br /> 
    788 
    789395          The plugin does not store your wallet\'s private keys. It uses one of the addresses from the provided list for every payment, by rotating all addresses and starting over from the first one. The different addresses are used to idenfiry if a specific payment has been made. You must provide enough addresses - more than the number of payments you will receive a day. <br />
    790 
    791396          Add a shortcode to the text of the pages or posts where you want to accept payments (typically these pages would contain a product or service that you are offering). The amount may be in BTC (default), Ethereum (ETH), Litecon (LTC) or in fiat currency (USD, EUR, etc), which will be converted it to the selected cryptocurrency.<br />
    792 
    793397          Exapmle shortcodes:
    794 
    795398        </p>
    796 
    797399        [cryptopayment item="Advertising services" amount="0.003" currency="BTC"]<br />
    798 
    799400        [cryptopayment item="Publish a PR article" amount="50 USD" currency="BTC"]<br />
    800 
    801401        [cryptopayment item="Publish a PR article" amount="10 EUR" currency="ETH"]
    802 
    803402        <p><a href="https://creditstocks.com/payment-demo/" target="_blank">Live demo</a></p>
    804 
    805       ';
    806 
    807     }
    808 
     403      ';
     404    }
    809405    if ($active_tab == 'donations'){
    810 
    811       echo '
    812 
     406      echo '
    813407        <h2>To accept cryptocurrency donations:</h2>
    814 
    815408        <p>Add a shortcode to the text of the pages or posts where you want to accept donations. Supported currencies are:</p>
    816 
    817409        <ul>
    818 
    819410          <li>Bitcoin (BTC) (default),</li>
    820 
    821411          <li>Ethereum (ETH),</li>
    822 
    823412          <li>Litecoin (LTC),</li>
    824 
    825413          <li>Monero (XMR),</li>
    826 
    827414          <li>Bitcoin Cash (BCH),</li>
    828 
    829415          <li>Zcash (ZEC).</li>
    830 
    831416        </ul>
    832 
    833417        <p>Exapmle shortcodes (do not forget to put your wallet address):</p>
    834 
    835418        [cryptodonation address="1ABwGVwbna6DnHgPefSiakyzm99VXVwQz9"]<br />
    836 
    837419        [cryptodonation address="0xc85c5bef5a9fd730a429b0e04c69b60d9ef4c64b" currency="eth"]<br />
    838 
    839420        [cryptodonation address="463tWEBn5XZJSxLU6uLQnQ2iY9xuNcDbjLSjkn3XAXHCbLrTTErJrBWYgHJQyrCwkNgYvyV3z8zctJLPCZy24jvb3NiTcTJ" paymentid="a1be1fb24f1e493eaebce2d8c92dc68552c165532ef544b79d9d36d1992cff07" currency="xmr"]
    840 
    841421        <p>You can also call the donations from the theme like this:</p>
    842 
    843422        '.htmlspecialchars('<?php echo do_shortcode(\'[cryptodonation address="1ABwGVwbna6DnHgPefSiakyzm99VXVwQz9"]\'); ?>').'
    844 
    845423        <p><a href="https://creditstocks.com/donate/" target="_blank">Live demo</a></p>
    846 
    847       ';
    848 
    849     }
    850 
     424      ';
     425    }
    851426    if ($active_tab == 'ethereum'){
    852 
    853       echo '
    854 
     427      echo '
    855428        <h2>Ethereum node integration:</h2>
    856 
    857429        <p>Currently supported features are: check Ethereum address balance, view ethereum block. Before using the shortcodes you need to fill in your Ethereum node API URL in the plugin settings (http://localhost:8545 or a public node at infura.io). Exapmle shortcodes:</p>
    858 
    859430        [cryptoethereum feature="balance"]<br />
    860 
    861431        [cryptoethereum feature="block"]
    862 
    863432        <p>Notice: Beware mixed content browser restriction! If your web site uses https, the node must also use https.</p>
    864 
    865433        <p><a href="https://creditstocks.com/ethereum/" target="_blank">Live demo</a></p>
    866 
    867       ';
    868 
    869     }
    870 
     434      ';
     435    }
    871436    if ($active_tab == 'others'){
    872 
    873       echo '
    874 
     437      echo '
    875438        <h2>Instructions to use the plugin in a widget:</h2>
    876 
    877439        <p>To use the plugin in a widget, use the provided "CP Shortcode Widget" and put the shortcode in the "Content" section, for example:</p>
    878 
    879440        [currencyprice currency1="btc" currency2="usd,eur"]
    880 
    881       ';
    882 
    883     }
    884 
     441      ';
     442    }
    885443    echo '   
    886 
    887444    </div>
    888 
    889445    ';
    890 
    891   }
    892 
     446  }
    893447}
  • cryptocurrency-prices/trunk/includes/currencytickerwidget.class.php

    r2509050 r2509051  
    11<?php
    2 
    3 
    4 
    52class CCPS_Ticker_Widget extends WP_Widget {
    6 
    7 
    8 
    9 
    10 
    11 
    12 
    133    public function __construct() {
    14 
    15 
    16 
    174        $widget_ops = array('classname' => 'cp_ticker_widget', 'description' => __('Shows cryptocurrency ticker.', 'cryptocurrency'));
    18 
    19 
    20 
    215        parent::__construct('cp_ticker_widget', __('CP Ticker Widget', 'cryptocurrency'), $widget_ops);
    22 
    23 
    24 
    256    }
    26 
    27 
    28 
    29 
    30 
    31 
    32 
    337    public function widget( $args, $instance ) {
    34 
    35 
    36 
    378        $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? '' : $instance['title'], $instance, $this->id_base );
    38 
    39 
    40 
    419       
    42 
    43 
    44 
    4510        $currency = strtolower(trim($instance['currency']));
    46 
    47 
    48 
    4911        echo $args['before_widget'];
    50 
    51 
    52 
    5312        if ( ! empty( $title ) ) {
    54 
    55 
    56 
    5713            echo $args['before_title'] . $title . $args['after_title'];
    58 
    59 
    60 
    6114        } ?>
    62 
    63 
    64 
    6515            <div class="textwidget">
    66 
    67 
    68 
    6916        <?php
    70 
    71 
    72 
    7317          echo self::get_badge($currency);
    74 
    75 
    76 
    7718        ?>
    78 
    79 
    80 
    8119      </div>
    82 
    83 
    84 
    8520        <?php
    86 
    87 
    88 
    8921        echo $args['after_widget'];
    90 
    91 
    92 
    9322    }
    94 
    95 
    96 
    97 
    98 
    99 
    100 
    10123    public function update( $new_instance, $old_instance ) {
    102 
    103 
    104 
    10524        $instance = $old_instance;
    106 
    107 
    108 
    10925        $instance['title'] = strip_tags($new_instance['title']);
    110 
    111 
    112 
    11326        $instance['currency'] =  $new_instance['currency'];
    114 
    115 
    116 
    11727        return $instance;
    118 
    119 
    120 
    12128    }
    122 
    123 
    124 
    125 
    126 
    127 
    128 
    12929    public function form( $instance ) {
    130 
    131 
    132 
    13330        $instance = wp_parse_args( (array) $instance, array( 'title' => '', 'text' => '' ) );
    134 
    135 
    136 
    13731        $title = strip_tags($instance['title']);
    138 
    139 
    140 
    14132        $currency = esc_textarea($instance['currency']);
    142 
    143 
    144 
    14533    ?>
    146 
    147 
    148 
    14934        <p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:', 'cryptocurrency'); ?></label>
    150 
    151 
    152 
    15335        <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo esc_attr($title); ?>" /></p>
    154 
    155 
    156 
    157 
    158 
    159 
    160 
    16136        <p><label for="<?php echo $this->get_field_id( 'text' ); ?>"><?php _e( 'Cryptocurrency (i.e BTC):', 'cryptocurrency' ); ?></label>
    162 
    163 
    164 
    16537        <input class="widefat" id="<?php echo $this->get_field_id('currency'); ?>" name="<?php echo $this->get_field_name('currency'); ?> type="text" value="<?php echo esc_attr($currency); ?>" /></p>
    166 
    167 
    168 
    16938    <?php
    170 
    171 
    172 
    17339    }
    174 
    175 
    176 
    17740 
    178 
    179 
    180 
    18141  function get_badge($currency){
    182 
    183 
    184 
    18542     
    186 
    187 
    188 
    18943    $html = '
    190 
    191 
    192 
    19344      <div class="cp-ticker-widget" id="cp-ticker-widget-'.$currency.'">
    194 
    195 
    196 
    19745        <div class="cp-ticker-widget-name">Loading data...</div>
    198 
    199 
    200 
    20146      </div>
    202 
    203 
    204 
    20547      <script type="text/javascript">
    206 
    207 
    208 
    20948        loadTicker(); //load ticker initially
    210 
    211 
    212 
    21349        setInterval(loadTicker, 30000);  //update ticker initially periodically
    214 
    215 
    216 
    21750       
    218 
    219 
    220 
    22151        function loadTicker(){
    222 
    223 
    224 
    22552          //get data
    226 
    227 
    228 
    22953          var apiUrl = \'https://api.coincap.io/v2/assets\';
    230 
    231 
    232 
    23354          jQuery.get( apiUrl, function( dataCurrencies ) {
    234 
    235 
    236 
    23755            //console.log(dataCurrencies);
    238 
    239 
    240 
    24156            console.log("Data loaded");
    242 
    243 
    244 
    24557 
    246 
    247 
    248 
    24958            var currency = \''.$currency.'\';
    250 
    251 
    252 
    25359 
    254 
    255 
    256 
    25760            //find currency
    258 
    259 
    260 
    26161            for (var currencyId in dataCurrencies.data) {
    262 
    263 
    264 
    26562              var data = dataCurrencies.data[currencyId];
    266 
    267 
    268 
    26963             
    270 
    271 
    272 
    27364              if (data.symbol == currency.toUpperCase()){
    274 
    275 
    276 
    27765                //currency found
    278 
    279 
    280 
    28166               
    282 
    283 
    284 
    28567                var currencyName = data.name;
    286 
    287 
    288 
    28968                var currencySymbol = data.symbol;
    290 
    291 
    292 
    29369                var currency_price = parseFloat(data.priceUsd);
    294 
    295 
    296 
    29770                if (currency_price > 10){
    298 
    299 
    300 
    30171                  var currency_price_string = currency_price.toFixed(2);
    302 
    303 
    304 
    30572                } else {
    306 
    307 
    308 
    30973                  var currency_price_string = currency_price.toFixed(8);
    310 
    311 
    312 
    31374                }
    314 
    315 
    316 
    31775                var currency_percent_change_24h = parseFloat(data.changePercent24Hr).toFixed(2);
    318 
    319 
    320 
    32176                if (currency_percent_change_24h > 0){
    322 
    323 
    324 
    32577                  var currency_change_24h_color = \'changes-up\';
    326 
    327 
    328 
    32978                  var currency_change_24h_symbol = \'&#8679;\';
    330 
    331 
    332 
    33379                } else {
    334 
    335 
    336 
    33780                  var currency_change_24h_color = \'changes-down\';
    338 
    339 
    340 
    34181                  var currency_change_24h_symbol = \'&#8681;\';
    342 
    343 
    344 
    34582                }
    346 
    347 
    348 
    34983                var lastPrice = jQuery(\'#cp-ticker-widget-\'+currency+\' .cp-ticker-widget-pricing-price span\').html();
    350 
    351 
    352 
    35384                if (lastPrice !== undefined){
    354 
    355 
    356 
    35785                  //console.log(lastPrice + \' \' + currency_price_string);
    358 
    359 
    360 
    36186                  if (currency_price_string > lastPrice){
    362 
    363 
    364 
    36587                    jQuery(\'#cp-ticker-widget-\'+currency).toggleClass(\'changes-up\');
    366 
    367 
    368 
    36988                    setTimeout(function(){ jQuery(\'#cp-ticker-widget-\'+currency).toggleClass(\'changes-up\') }, 300);
    370 
    371 
    372 
    37389                  } else if (currency_price_string < lastPrice){
    374 
    375 
    376 
    37790                    jQuery(\'#cp-ticker-widget-\'+currency).toggleClass(\'changes-down\');
    378 
    379 
    380 
    38191                    setTimeout(function(){ jQuery(\'#cp-ticker-widget-\'+currency).toggleClass(\'changes-down\') }, 300);                 
    382 
    383 
    384 
    38592                  }
    386 
    387 
    388 
    38993                }
    390 
    391 
    392 
    39394               
    394 
    395 
    396 
    39795                var tickerHtml = \'\'+
    398 
    399 
    400 
    40196                \'<div class="cp-ticker-widget-icon">\'+
    402 
    403 
    404 
    40597                  \'<img src="'.CCPS_URL.'images/coins128x128/\'+currencySymbol.toLowerCase()+\'.png" alt="\'+data.name+\'">\'+
    406 
    407 
    408 
    40998                \'</div>\'+
    410 
    411 
    412 
    41399                \'<div class="cp-ticker-widget-name">\'+currencyName+\'</div>\'+
    414 
    415 
    416 
    417100                \'<div class="cp-ticker-widget-pricing">\'+
    418 
    419 
    420 
    421101                  \'<div class="cp-ticker-widget-pricing-price">\'+
    422 
    423 
    424 
    425102                    \'<i class="fa fa-usd" aria-hidden="true"></i>\'+
    426 
    427 
    428 
    429103                    \'<span>\'+currency_price_string+\'</span>\'+
    430 
    431 
    432 
    433104                  \'</div>\'+
    434 
    435 
    436 
    437105                  \'<div class="cp-ticker-widget-pricing-change">\'+
    438 
    439 
    440 
    441106                    \'<span class="\'+currency_change_24h_color+\'">\'+
    442 
    443 
    444 
    445107                      \'\'+currency_change_24h_symbol+\' \'+currency_percent_change_24h+\'%\'+
    446 
    447 
    448 
    449108                    \'</span>\'+
    450 
    451 
    452 
    453109                    \' <span class="cp-ticker-widget-period">24H</span>\'+
    454 
    455 
    456 
    457110                  \'</div>\'+
    458 
    459 
    460 
    461111                \'</div>\';
    462 
    463 
    464 
    465112                       
    466 
    467 
    468 
    469113                jQuery(\'#cp-ticker-widget-\'+currency).html(tickerHtml);
    470 
    471 
    472 
    473114              }
    474 
    475 
    476 
    477115            }
    478 
    479 
    480 
    481116          });
    482 
    483 
    484 
    485117       
    486 
    487 
    488 
    489118        }
    490 
    491 
    492 
    493119      </script>
    494 
    495 
    496 
    497120    ';
    498 
    499 
    500 
    501121   
    502 
    503 
    504 
    505122    return $html;
    506 
    507 
    508 
    509123  }
    510 
    511 
    512 
    513124 
    514 
    515 
    516 
    517125  public function shortcode( $atts ){
    518 
    519 
    520 
    521126    if (isset($atts['currency']) and $atts['currency']!=''){
    522 
    523 
    524 
    525127      $currency = $atts['currency'];
    526 
    527 
    528 
    529128    } else {
    530 
    531 
    532 
    533129      $currency = 'btc';
    534 
    535 
    536 
    537130    }
    538 
    539 
    540 
    541 
    542 
    543 
    544 
    545131    $html = self::get_badge($currency);
    546 
    547 
    548 
    549132 
    550 
    551 
    552 
    553133    return $html;
    554 
    555 
    556 
    557134  }
    558 
    559 
    560 
    561135}
  • cryptocurrency-prices/trunk/index.php

    r2509050 r2509051  
    11<?php
    2 
    32// Silence is golden.
    4 
  • cryptocurrency-prices/trunk/readme.txt

    r2509050 r2509051  
    11=== Cryptocurrency All-in-One ===
    22
    3 
    4 
    53Contributors: Zwaply
    6 
    74Donate link: https://zwaply.com/
    8 
    95Tags: crypto, crypto price, crypto currencies, crypto ticker, bitcoin, binance, crypto plugin, cryptocurrency plugin, crypto ticker plugin, bitcoin price, ethereum price, btc price
    10 
    116Requires at least: 3.0
    12 
    137Tested up to: 5.7.0
    14 
    158Stable tag: 3.0.19
    16 
    179Requires PHP: 5.6.39
    18 
    1910License: GPLv2 or later
    20 
    2111License URI: http://www.gnu.org/licenses/gpl-2.0.html
    2212
    23 
    24 
    2513Cryptocurrency features: displaying prices and exchange rates, candlestick price chart, calculator, accepting orders and payments, accepting donations.
    2614
    27 
    28 
    2915== Description ==
    3016
    31 
    32 
    3317Update: Finally bloggers can earn crypto with their blogs! In our recent update you’ll see a Trade button next to a crypto currency. When your readers make a crypto-to-crypto exchange, you’ll make a commission (50% of what we make) in the receiving coin.
    3418
    35 
    36 
    3719Because we’re deep believers in the crypto revolution, we’re working around the clock to bring to life new widgets and creative formats to help bloggers like you make lots of crypto.
    3820
    39 
    40 
    4121Signup to create your affiliate account at Zwaply (https://zwaply.com/register) and place your username in your admin panel. That’s it.
    4222
    43 
    44 
    4523P.S. If you don’t want to earn crypto, just remove the Trade button from the Settings page.
    4624
    47 
    48 
    4925Notice: From major version 3.0 some of the old features are only available in the premium version. [Get premium now](https://creditstocks.com/cryptocurrency-one-wordpress-plugin/)
    5026
    51 
    52 
    5327= Cryptocurrency All-in-One free version features: =
    5428
    55 
    56 
    5729* coin market cap - list of all cryptocurrencies with prices and option to earn crypto,
    5830
    59 
    60 
    6131* cryptocurrency ticker widget and shortcode - a live update badge with the logo, price, and 24h change of one cryptocurrency,
    6232
    63 
    64 
    6533* accept donations: Bitcoin (BTC), Ethereum (ETH), Litecon (LTC), Monero (XMR), Bitcoin Cash (BCH), Zcash (ZEC),
    6634
    67 
    68 
    6935* cyptocurrency resources - helpful resources list in your WordPress admin,
    7036
    71 
    72 
    7337* Ethereum node support: address balance, view block,
    7438
    75 
    76 
    7739* custom designs themes: light, dark, and option to write your own CSS.
    7840
    79 
    80 
    8141* plugin translations: German, Italian, .pot file provided.
    8242
    83 
    84 
    8543= Cryptocurrency All-in-One premium version features: =
    8644
    87 
    88 
    8945* all free version features plus:
    9046
    91 
    92 
    9347* coin market cap – full features,
    9448
    95 
    96 
    9749* easily accept orders and payments: Bitcoin (BTC), Ethereum (ETH), Litecon (LTC), Bitcoin Cash (BCH), Zcash (ZEC),
    9850
    99 
    100 
    10151* display prices and exchange rates (all cryptocurrencies),
    10252
    103 
    104 
    10553* cryptocurrency to fiat calculator (all cryptocurrencies),
    10654
    107 
    108 
    10955* display candlestick price charts (all cryptocurrencies),
    11056
    111 
    112 
    11357[Get premium now](https://creditstocks.com/cryptocurrency-one-wordpress-plugin/)
    11458
    115 
    116 
    11759= Instructions to display a "Coin Market Capitalization" list of all cryptocurrencies on your web site. =
    11860
    119 
    120 
    12161Add a shortcode to the text of the pages or posts where you want to display CoinMarketCap style list of all cryptocurrencies. The list is paginated, sortable, searchable. The shortcode supports selecting the base currency for showing the prices, default is USD. You can set the total number of cryptocurrencies (default 500), the cryptocurrencies per page (default 100), the number format locale. Exapmle shortcodes:
    12262
    123 
    124 
    12563`[allcurrencies]`
    12664
    127 
    128 
    12965`[allcurrencies basecurrency="eur"]`
    13066
    131 
    132 
    13367`[allcurrencies limit="100" perpage="10"]`
    13468
    135 
    136 
    13769`[allcurrencies basecurrency="eur" locale="de-DE"]`
    13870
    139 
    140 
    14171[Live demo](https://creditstocks.com/cryptocurrency-prices/list-of-all-cryptocurrencies/)
    14272
    143 
    144 
    14573= Instructions to display a "Cryptocurrency ticker widget" on your web site. =
    14674
    147 
    148 
    14975Cryptocurrency ticker widget - a live update badge with the logo, price, and 24h change of one cryptocurrency. To show the cryptocurrency ticker widget go to Appearance / Widgets and add the widget to the widget area where you want it to appear. Set the cryptocurrency you wan to show - for example BTC. Or add the following shortcode to the text of the pages or posts where you want the widget to appear. Exapmle shortcodes:
    15076
    151 
    152 
    15377`[currencyticker currency="eth"]`
    15478
    155 
    156 
    15779= Instructions to accept cryptocurrency orders and payments on your web site. (Premium version only) =
    15880
    159 
    160 
    16181Supported currencies for payments are: Bitcoin (BTC) (default), Ethereum (ETH), Litecoin (LTC), Bitcoin Cash (BCH), Zcash (ZEC). No middleman - works with any wallet, no exchange or API required and no extra fees. High security - the plugin does not store your wallet's private keys, captcha support.
    16282
    163 
    164 
    16583Setup: Open the plugin settings and under "Payment settings" fill in your BTC (or other cryptocurrency) wallet addresses to receive payments and an email for receiving payment notifications. The plugin uses one of the addresses from the provided list of addresses for every payment, by rotating all of them and starting over from the first one. The different addresses are used to idenfiry if a specific payment has been made. You must provide enough addresses - more than the number of payments you will receive a day. Add a shortcode to the text of the pages or posts where you want to accept payments (typically these pages would contain a product or service that you are offering). The amount may be in BTC (default), altcoins or in fiat currency (USD, EUR, etc), which will be converted it to the selected cryptocurrency. You can also setup the form for GDPR compliance in the plugin settings.
    16684
    167 
    168 
    16985Exapmle shortcodes:
    17086
    171 
    172 
    17387`[cryptopayment item="Advertising services" amount="0.003" currency="BTC"]`
    17488
    175 
    176 
    17789`[cryptopayment item="Publish a PR article" amount="50 USD" currency="BTC"]`
    17890
    179 
    180 
    18191`[cryptopayment item="Publish a PR article" amount="10 EUR" currency="ETH"]`
    18292
    183 
    184 
    18593[Live demo](https://creditstocks.com/payment-demo/)
    18694
    187 
    188 
    18995= Instructions to accept cryptocurrency donations on your web site. =
    19096
    191 
    192 
    19397Add a shortcode to the text of the pages or posts where you want to accept donations.
    19498
    195 
    196 
    19799Supported currencies are: Bitcoin (BTC) (default), Ethereum (ETH), Litecoin (LTC), Bitcoin Cash (BCH), Monero (XMR), Zcash (ZEC). Exapmle shortcodes (do not forget to put your wallet address):
    198100
    199 
    200 
    201101`[cryptodonation address="1ABwGVwbna6DnHgPefSiakyzm99VXVwQz9"]`
    202102
    203 
    204 
    205103`[cryptodonation address="0xc85c5bef5a9fd730a429b0e04c69b60d9ef4c64b" currency="eth"]`
    206104
    207 
    208 
    209105`[cryptodonation address="463tWEBn5XZJSxLU6uLQnQ2iY9xuNcDbjLSjkn3XAXHCbLrTTErJrBWYgHJQyrCwkNgYvyV3z8zctJLPCZy24jvb3NiTcTJ" paymentid="a1be1fb24f1e493eaebce2d8c92dc68552c165532ef544b79d9d36d1992cff07" currency="xmr"]`
    210106
    211 
    212 
    213107[Live demo](https://creditstocks.com/donate/)
    214108
    215 
    216 
    217109= Instructions to display cryptocurrency exchange rates in a nicely formatted table. (Premium version only) =
    218110
    219 
    220 
    221111To show cryptocurrency prices, add a shortcode to the text of the pages or posts where you want the cryptocurrency prices to apperar. Exapmle shortcodes:
    222112
    223 
    224 
    225113`[currencyprice currency1="btc" currency2="usd,eur,ltc,eth,jpy,gbp,chf,aud,cad"]`
    226114
    227 
    228 
    229115`[currencyprice currency1="ltc" currency2="usd,eur,btc"]`
    230116
    231 
    232 
    233117Most cryptocurrencies are supported and the major ones also have icons: Bitcoin BTC, Ethereum ETH, XRP, DASH, LTC, ETC, XMR, XEM, REP, MAID, PIVX, GNT, DCR, ZEC, STRAT, BCCOIN, FCT, STEEM, WAVES, GAME, DOGE, ROUND, DGD, LISK, SNGLS, ICN, BCN, XLM, BTS, ARDR, 1ST, PPC, NAV, NXT, LANA. Fiat currencies conversion supported: AUD, USD, CAD, GBP, EUR, CHF, JPY, CNY.
    234118
    235 
    236 
    237119[Live demo](https://creditstocks.com/cryptocurrency-prices/current-litecoin-price/)
    238120
    239 
    240 
    241121= Instructions to display cryptocurrency calculator. (Premium version only) =
    242122
    243 
    244 
    245123To show cryptocurrency calculator, add a shortcode to the text of the pages or posts where you want the calculator prices to apperar. Exapmle shortcodes:
    246124
    247 
    248 
    249125`[currencycalculator currency1="btc" currency2="usd,eur,ltc,eth,jpy,gbp,chf,aud,cad"]`
    250126
    251 
    252 
    253127`[currencycalculator currency1="ltc" currency2="usd,eur,btc"]`
    254128
    255 
    256 
    257129Most cryptocurrencies are supported and the major ones also have icons: Bitcoin BTC, Ethereum ETH, XRP, DASH, LTC, ETC, XMR, XEM, REP, MAID, PIVX, GNT, DCR, ZEC, STRAT, BCCOIN, FCT, STEEM, WAVES, GAME, DOGE, ROUND, DGD, LISK, SNGLS, ICN, BCN, XLM, BTS, ARDR, 1ST, PPC, NAV, NXT, LANA. Partial suport for over 1000 cryptocurrencies. Fiat currencies conversion supported: AUD, USD, CAD, GBP, EUR, CHF, JPY, CNY.
    258130
    259 
    260 
    261131[Live demo](https://creditstocks.com/cryptocurrency-prices/current-litecoin-price/)
    262132
    263 
    264 
    265133= Instructions to display cryptocurrency candlestick price chart (Premium version only) =
    266134
    267 
    268 
    269135To show cryptocurrency candlestick chart graphic, add a shortcode to the text of the pages or posts where you want the chart to apperar. Set the cryptocurrency that you want on the chart as currency1 and the base currency as currency2. Supported periods are 1hour, 24hours, 7days, 30days, 1year. Exapmle shortcodes:
    270136
    271 
    272 
    273137`[currencychart currency1="btc" currency2="usd"]`
    274138
    275 
    276 
    277139`[currencychart currency1="dash" currency2="btc" defaultperiod="1year"]`
    278140
    279 
    280 
    281141[Live demo](https://creditstocks.com/cryptocurrency-prices/current-bitcoin-price/)
    282142
    283 
    284 
    285143= Instructions for Ethereum node integration =
    286144
    287 
    288 
    289145Currently supported features are: check Ethereum address balance, view ethereum block. Before using the shortcodes you need to fill in your Ethereum node API URL in the plugin settings (http://localhost:8545 or a public node at infura.io). Exapmle shortcodes:
    290146
    291 
    292 
    293147`[cryptoethereum feature="balance"]`
    294148
    295 
    296 
    297149`[cryptoethereum feature="block"]`
    298150
    299 
    300 
    301151Notice: Beware mixed content browser restriction! If your web site uses https, the node must also use https.
    302152
    303 
    304 
    305153[Live demo](https://creditstocks.com/ethereum/)
    306154
    307 
    308 
    309155= Instructions to use the plugin in a widget or from the theme =
    310156
    311 
    312 
    313157To use the plugin in a widget, use the provided "CP Shortcode Widget" and put the shortcode in the "Content" section.
    314158
    315 
    316 
    317159You can also call all plugin features directly from the theme - see the plugin settings page for PHP samples.
    318160
    319 
    320 
    321161This plugin uses data from third party public APIs. By installing this plugin you agree with their terms:
    322162
    323 
    324 
    325163For free and premium versions: [CoinCap.io Public API](https://docs.coincap.io/) - no API key required.
    326164
    327 
    328 
    329165For premium version only: [CryptoCompare Public API](https://www.cryptocompare.com/api/) - no API key required, [Google Charts API](https://developers.google.com/chart/terms).
    330166
    331 
    332 
    333167Special thanks to: Boyan Yankov, Emil Samsarov, theox89, Wayne M.
    334168
    335 
    336 
    337169[Publish your documents on Ethereum blockchain](https://github.com/BoyanBorislavovYankov/Blockchain-Payload-Tools)
    338170
    339 
    340 
    341171== Installation ==
    342172
    343 
    344 
    3451731. Unzip the `cryptocurrency-prices.zip` folder.
    346174
    347 
    348 
    3491752. Upload the `cryptocurrency-prices` folder to your `/wp-content/plugins` directory.
    350176
    351 
    352 
    3531773. In your WordPress dashboard, head over to the *Plugins* section.
    354178
    355 
    356 
    3571794. Activate *Cryptocurrency Prices*.
    358180
    359 
    360 
    361181== Frequently Asked Questions ==
    362182
    363 
    364 
    365183= Can I show the plugin from the theme code or from another plugin? =
    366184
    367 
    368 
    369185Yes. You can use a PHP code, which handles and shows the plugin shortcode - see the plugin settings page for PHP sample.
    370186
    371 
    372 
    373187= Can I show the plugin in a widget? =
    374188
    375 
    376 
    377189Yes! Use the provided "CP Shortcode Widget" and put the shortcode in the "Content" section, for example: [currencyprice currency1="btc" currency2="usd,eur"].
    378190
    379 
    380 
    381191= The plugin does not work - I just see the shortcode? =
    382192
    383 
    384 
    385193Make sure you have activated the plugin. Try to add the shortcode to a page to see if it works. If you use a widget - add the shortcode in the widget provided by the plugin. If you call the plugin from the theme, make sure the code is integrated correctly. Make sure you paste the shortcode as plain text or in text mode, otherwise you may copy and paste invisible html code together with it. 
    386194
    387 
    388 
    389195= Why yhe design / layout / styles are broken or look bad? =
    390196
    391 
    392 
    393197Make sure you paste the shortcode as plain text or in text mode, otherwise you may copy and paste invisible html code together with it. Try with the default theme, maybe there is an issue with the theme. Try to enable / disable the styles from the plugin admin.
    394198
    395 
    396 
    397199= The plugin does not work - I see no data or an error message? =
    398200
    399 
    400 
    401201Try to activate compatibility mode from the plugin settings. It may be due to data provider server downtime.
    402202
    403 
    404 
    405203= How to style the plugin? / I don't like the design? =
    406204
    407 
    408 
    409205This plugin is provided with design styles that you can set in the admin. You can also write CSS code for custom styles - use the "Custom design" field in the plugin settings.
    410206
    411 
    412 
    413207= Can the plugin cache the data? =
    414208
    415 
    416 
    417209The plugin itself does not cache the data. But it is compatible with caching plugins.   
    418210
    419 
    420 
    421211== Screenshots ==
    422212
    423 
    424 
    425213== Changelog ==
    426214
    427 
    428 
    429215= 3.0.18 =
    430216
    431 
    432 
    433217* Back to live
    434 
    435218* Backend messages updates.
    436219
    437 
    438 
    439220= 3.0.17 =
    440221
    441 
    442 
    443222* Bugfixes and minor improvements.
    444223
    445 
    446 
    447224= 3.0.16 =
    448225
    449 
    450 
    451226* Bugfixes and minor improvements.
    452227
    453 
    454 
    455228= 3.0.15 =
    456229
    457 
    458 
    459230* Bugfixes and minor improvements. We changed our API to api.coincap.io.
    460231
    461 
    462 
    463232= 3.0.14 =
    464233
    465 
    466 
    467234* We changed our API to Coingecko.com.
    468235
    469 
    470 
    471236* Fixed some reported bugs on the trade coin URL.
    472237
    473 
    474 
    475238= 3.0.13 =
    476239
    477 
    478 
    479240* CoinMarketCap Public API changed to the Professional API v2
    480241
    481 
    482 
    483242= 3.0.12 =
    484243
    485 
    486 
    487244* Some style changes.
    488245
    489 
    490 
    491246* Added coin trade option via Zwaply.com
    492247
    493 
    494 
    495248= 3.0.11 =
    496249
    497 
    498 
    499250* Bugfixes. Plugin developer changed.
    500251
    501 
    502 
    503252= 3.0.10 =
    504253
    505 
    506 
    507254* Added live update feature for cryptocurrency ticker widget.
    508255
    509 
    510 
    511256= 3.0.9 =
    512257
    513 
    514 
    515258* Coin market cap list is now responsive. Added ticker widget shortcode. Updated list of cryptocurrency resources. Other minor improvements.
    516259
    517 
    518 
    519260= 3.0.8 =
    520261
    521 
    522 
    523262* Added cryptocurrency ticker widget feature that supports bitcoin and almost all altcoins. Improved coin image library.
    524263
    525 
    526 
    527264= 3.0.7 =
    528265
    529 
    530 
    531266* Bugfixes.
    532267
    533 
    534 
    535268= 3.0.6 =
    536269
    537 
    538 
    539270* Bugfixes and minor improvements.
    540271
    541 
    542 
    543272= 3.0.5 =
    544273
    545 
    546 
    547274* Added support of BCH (Bictoin Cash) payments and donations. Added default period parameter support to currencychart shortcode. Improved coin market cap list of cryptocurrencies.
    548275
    549 
    550 
    551276= 3.0.4 =
    552277
    553 
    554 
    555278* Added Cyptocurrency Resources in plugin admin. Improved list of currencies "allcurrencies".
    556279
    557 
    558 
    559280= 3.0.3 =
    560281
    561 
    562 
    563282* Added GDPR compliance of the payment form. Added more settings to "allcurrencies"" shortcode. Improved help section and readme.
    564283
    565 
    566 
    567284= 3.0.2 =
    568285
    569 
    570 
    571286* Improved CoinMarketCap list of currencies. Added CSS styles to the free version.
    572287
    573 
    574 
    575288= 3.0.1 =
    576289
    577 
    578 
    579290* Added volume to price chart. Added admin help to free version.
    580291
    581 
    582 
    583292= 3.0 =
    584293
    585 
    586 
    587294* Refactored plugin to use CoinMarketCap API. Created free plugin version again. Features that rely on CryptoCompare API moved to premium version.
    588295
    589 
    590 
    591296= 2.7 =
    592297
    593 
    594 
    595298* Refactored "allcurrencies" shortcode - coin market cap view with pagination, sorting, search. Discontinied the free plugin version, offered only as a premium plugin.
    596299
    597 
    598 
    599300= 2.6.4 =
    600301
    601 
    602 
    603302* Added DataTables support for the "allcurrencies" shortcode - pagination, sorting, search.
    604303
    605 
    606 
    607304= 2.6.3 =
    608305
    609 
    610 
    611306* Added captcha support for payments.
    612307
    613 
    614 
    615308= 2.6.2 =
    616309
    617 
    618 
    619310* Bugfixes. Added feature for ZCash (ZEC) payments in the premium version.
    620311
    621 
    622 
    623312= 2.6.1 =
    624313
    625 
    626 
    627314* Bugfixes. Added feature for altcoin payments in the premium version (ETH, LTC).
    628315
    629 
    630 
    631316= 2.6 =
    632317
    633 
    634 
    635318* Many improvements. Free and premium plugin versions.
    636319
    637 
    638 
    639320= 2.5.5 =
    640321
    641 
    642 
    643322* Added default CSS.
    644323
    645 
    646 
    647324= 2.5.4 =
    648325
    649 
    650 
    651326* Fixed bugs. Improved plugin styling capabilities.
    652327
    653 
    654 
    655328= 2.5.3 =
    656329
    657 
    658 
    659330* Plugin is now translatable. German translation is provided. Minor improvements.
    660331
    661 
    662 
    663332= 2.5.2 =
    664333
    665 
    666 
    667334* Added support of parameters for [allcurrencies] shortcode.
    668335
    669 
    670 
    671336= 2.5.1 =
    672337
    673 
    674 
    675338* Added support for Ethereum block viewer by connecting to an Ethereum blockchain node. Other minor improvements.
    676339
    677 
    678 
    679340= 2.5 =
    680341
    681 
    682 
    683342* Added Ethereum blockchain node support with web3.js. Removed Counterparty support. Bugfixes.
    684343
    685 
    686 
    687344= 2.4.5 =
    688345
    689 
    690 
    691346* Improved cryptocurrency payments: amount can be specified in fiat currency, multiple payment forms supported on single page, orders can be deleted.  Added a feature for accepting donations in Litecon (LTC), Monero (XMR), Zcash (ZEC).
    692347
    693 
    694 
    695348= 2.4.4 =
    696349
    697 
    698 
    699350* Added a feature for accepting donations in Ethereum (ETH). Improved help section.
    700351
    701 
    702 
    703352= 2.4.3 =
    704353
    705 
    706 
    707354* Bugfixes and improvements of the payments module. Some code rewritten in OOP.
    708355
    709 
    710 
    711356= 2.4.2 =
    712357
    713 
    714 
    715358* Minor improvements of the payments module.
    716359
    717 
    718 
    719360= 2.4.1 =
    720361
    721 
    722 
    723362* Minor improvements.
    724363
    725 
    726 
    727364= 2.4 =
    728365
    729 
    730 
    731366* Added a basic feature for accepting payments in BTC.
    732367
    733 
    734 
    735368= 2.3.4 =
    736369
    737 
    738 
    739370* Added support for multiple charts per page. Added Bitcoin Cash (BCC / BCH) cryptocurrency with its icons supported.
    740371
    741 
    742 
    743372= 2.3.3 =
    744373
    745 
    746 
    747374* Added 30 more cryptocurrencies with their icons supported: dgb, iot, btcd, xpy, prc, craig, xbs, ybc, dank, give, kobo, geo, ac, anc, arg, aur, bitb, blk, xmy, moon, sxc, qtl, btm, bnt, cvc, pivx, ubq, lenin, bat, plbt
    748375
    749 
    750 
    751376= 2.3.2 =
    752377
    753 
    754 
    755378* Added feature to support custom CSS. Fixed minor bugs.
    756379
    757 
    758 
    759380= 2.3.1 =
    760381
    761 
    762 
    763382* Added feature to show only calculator or prices table. Added compatibility mode for servers without CURL support. Fixed minor bugs.
    764383
    765 
    766 
    767384= 2.3 =
    768385
    769 
    770 
    771386* Changed plugin name. Added better widget support. Improved plugin administration. Improved readme.
    772387
    773 
    774 
    775388= 2.2 =
    776389
    777 
    778 
    779390* Added coins list feature. Improved plugin code architecture.
    780391
    781 
    782 
    783392= 2.1.1 =
    784393
    785 
    786 
    787394* Improved price formatting and support of currencies with smaller prices. Added Lana coin icon.
    788395
    789 
    790 
    791396= 2.1 =
    792397
    793 
    794 
    795398* Added cryptocurrency charts feature. Added icons for many currencies: GBP, JPY, XRP, DASH, ZEC, etc.
    796399
    797 
    798 
    799400= 2.0 =
    800401
    801 
    802 
    803402* Major release with many new features: more cryptocurrencies, fiat currencies support, cryptocurrency donations support, counterparty assets explorer support. The new version is backward compatible - you need to update!
    804403
    805 
    806 
    807404= 1.1 =
    808405
    809 
    810 
    811406* Bugs fixed - you need to update.
    812407
    813 
    814 
    815408= 1.0 =
    816409
    817 
    818 
    819410* Plugin released.  Everything is new!
    820411
    821 
    822 
    823412== Upgrade Notice ==
    824413
    825 
    826 
    827414= 3.0.14 =
    828415
    829 
    830 
    831416We changed our API to Coingecko.com.
    832417
    833 
    834 
    835418Fixed some reported bugs on the trade coin URL.
     419
     420= 3.0.19 =
     421
     422Updated for the later version of WordPress, fixed bugs, and minor improvements.
Note: See TracChangeset for help on using the changeset viewer.