Changeset 1847708
- Timestamp:
- 03/27/2018 12:08:07 PM (8 years ago)
- Location:
- kades-crypto-widgets/trunk
- Files:
-
- 3 edited
-
js/kades-crypto.js (modified) (4 diffs)
-
kades-crypto-widgets.php (modified) (6 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kades-crypto-widgets/trunk/js/kades-crypto.js
r1795522 r1847708 2 2 // where data come from 3 3 baseUrl = "https://widgets.cryptocompare.com/"; 4 4 5 5 6 // Crypto market index … … 18 19 cryptoheader.appendChild(s); 19 20 })(); 20 21 21 } 22 23 24 22 25 23 // Crypto converter … … 39 37 } 40 38 41 // Crypto tabbed widget s39 // Crypto tabbed widget 42 40 var cryptotabbed = document.getElementById("kadescrypto-tabbed"); 43 41 if( cryptotabbed !== null && cryptotabbed !== '' ) { … … 55 53 } 56 54 55 // Crypto ICOs widget 56 57 function add_iwl_list_widget(){ 58 var widget_divs = document.getElementsByClassName("icowatchlist_list_widget"); 59 for(var i = 0; i < widget_divs.length; i++) 60 { 61 if (!widget_divs.item(i).getElementsByTagName('iframe').length) 62 { 63 var link = "https://api.icowatchlist.com/widget/v1/"; 64 if (widget_divs.item(i).getAttribute("data-type")=='nolink') link += "widget2.php"; 65 link += "?items="+widget_divs.item(i).getAttribute("data-num")+"&color="+widget_divs.item(i).getAttribute("data-color"); 66 67 frame_height = (parseInt(widget_divs.item(i).getAttribute("data-num"))*75)+128; 68 var iframe = document.createElement('iframe'); 69 iframe.style.cssText='width:100%;height:'+frame_height+'px;border:1px solid #000;border: 1px solid #b5b4b4;'; 70 iframe.setAttribute("src", link); 71 72 widget_divs.item(i).appendChild(iframe); 73 } 74 } 75 } 76 if(window.addEventListener){ 77 window.addEventListener('load', add_iwl_list_widget) 78 }else{ 79 window.attachEvent('onload', add_iwl_list_widget) 80 } 57 81 58 82 83 -
kades-crypto-widgets/trunk/kades-crypto-widgets.php
r1795522 r1847708 2 2 /* 3 3 Plugin Name: Kades Crypto Widgets 4 Plugin URI: https://kadesthemes.com/wordpress-plugins/ 5 Description: Displays cryptocurrency widgets and chart4 Plugin URI: https://kadesthemes.com/wordpress-plugins/kades-crypto-widgets/ 5 Description: Displays Cryptocurrency widgets and chart 6 6 Author: Kimi 7 7 Author URI: http://phankimi.com 8 Version: 1.0. 28 Version: 1.0.3 9 9 Text Domain: kades-crypto-widgets 10 10 License: GPL2 … … 29 29 $widget_option = array( 30 30 'classname' => 'kades_crypto_converter', 31 'description' => 'Display cryptocurrency converter widget'31 'description' => esc_html__( 'Display cryptocurrency converter widget', 'kades-crypto-widgets' ) 32 32 ); 33 33 parent::__construct( 'kades_crypto_converter', 'Kades Crypto Converter', $widget_option ); … … 49 49 $widget_option = array( 50 50 'classname' => 'kades_crypto_header', 51 'description' => 'Display cryptocurrency header widget'51 'description' => esc_html__( 'Display cryptocurrency header widget', 'kades-crypto-widgets' ) 52 52 ); 53 53 parent::__construct( 'kades_crypto_header', 'Kades Crypto Header', $widget_option ); … … 69 69 $widget_option = array( 70 70 'classname' => 'kades_crypto_tabbed', 71 'description' => 'Display cryptocurrency tabbed widget'71 'description' => esc_html__( 'Display cryptocurrency tabbed widget', 'kades-crypto-widgets' ) 72 72 ); 73 73 parent::__construct( 'kades_crypto_tabbed', 'Kades Crypto Tabbed', $widget_option ); … … 82 82 echo $args['after_widget']; 83 83 } 84 } 85 86 class Kades_Crypto_ICO_Widgets extends WP_Widget { 87 88 public function __construct() { 89 $widget_option = array( 90 'classname' => 'kades_crypto_icos', 91 'description' => esc_html__( 'Display Upcoming ICOs widget', 'kades-crypto-widgets' ) 92 ); 93 parent::__construct( 'kades_crypto_icos', 'Kades Crypto Upcoming ICO ', $widget_option ); 94 } 95 96 public function widget( $args, $instance ) { 97 echo $args['before_widget']; 98 99 // display the widget 100 echo '<div id="kadescrypto-ico"><div class="icowatchlist_list_widget" data-color="FF9F1C" data-num="5" data-type="regular"></div></div>'; 101 102 echo $args['after_widget']; 103 } 84 104 } 85 105 … … 89 109 register_widget( 'Kades_Crypto_Header_Widgets' ); 90 110 register_widget( 'Kades_Crypto_Tabbed_Widgets' ); 111 register_widget( 'Kades_Crypto_ICO_Widgets' ); 91 112 } -
kades-crypto-widgets/trunk/readme.txt
r1795522 r1847708 2 2 Contributors: phankimi, kadesthemes 3 3 Donate link: https://paypal.me/phankimi 4 Tags: bitcoin, ethereum, crypto, cryptocurrency, widget 4 Tags: bitcoin, ethereum, crypto, cryptocurrency, widget, ico, cryptocurrencies, blockchain 5 5 Requires at least: 4.0 6 Tested up to: 4.9. 16 Tested up to: 4.9.4 7 7 Requires PHP: 5.2 8 Stable tag: 1.0. 28 Stable tag: 1.0.3 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html 11 11 12 Displays crypto currency widgets. More widgets and chart to come. Crypto market data from https://www.cryptocompare.com/dev/widget/wizard/You can make your own widgets as well.12 Displays Cryptocurrency widgets. More widgets and chart to come. Crypto market data from https://www.cryptocompare.com/dev/widget/wizard/ and ICOs information from https://icowatchlist.com/. You can make your own widgets as well. 13 13 14 14 == Description == 15 15 16 Displays crypto currency widgets. More widgets and chart to come. Crypto market data from https://www.cryptocompare.com/dev/widget/wizard/ You can make your own widgets as well.16 Displays Cryptocurrency widgets. More widgets and chart to come. Crypto market data from https://www.cryptocompare.com/dev/widget/wizard/ and ICOs information from https://icowatchlist.com/. You can make your own widgets as well. Learn more at [KadesThemes.com](https://kadesthemes.com/wordpress-plugins/kades-crypto-widgets/). 17 17 18 19 = Theme Compatible With KADES CRYPTO WIDGETS = 20 [Bitcoinee - free Cryptocurrency WordPress Theme](https://kadesthemes.com/wordpress-themes/bitcoinee/) by Kades Themes. 21 22 Kades Crypto Widgets plugin will work with any theme, but it may require some styling to make it match. We always here to support you if any problems happen. 18 23 19 24 == Installation == … … 36 41 == Changelog == 37 42 43 = 1.0.3 = 44 * New widget: ICOs upcoming 45 * Fix: widget Header on small device responsive 46 * Update: plugin's description 38 47 = 1.0.2 = 39 48 * add Kades Crypto Tabbed widget & fix bug.
Note: See TracChangeset
for help on using the changeset viewer.