Changeset 2147059
- Timestamp:
- 08/28/2019 12:03:55 PM (7 years ago)
- Location:
- charts-ninja-graphs-and-charts/trunk
- Files:
-
- 3 edited
-
chartsninja.php (modified) (3 diffs)
-
js/chartsninja.js (modified) (2 diffs)
-
readme.txt (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
charts-ninja-graphs-and-charts/trunk/chartsninja.php
r845829 r2147059 2 2 /* 3 3 * Plugin Name: Charts Ninja - Graphs and Charts 4 * Plugin URI: http ://chartsninja.com4 * Plugin URI: https://charts.commoninja.com 5 5 * Description: Add & create <strong>Graphs and Charts</strong> for your Wordpress website on-the-fly. No prior knowledge required. Just a simple integration with Charts Ninja. 6 * Version: 1.0.16 * Version: 2.0.1 7 7 * Author: Common Ninja 8 * Author URI: http ://commoninja.com/8 * Author URI: https://www.commoninja.com/ 9 9 * License: GPLv2 or later 10 10 */ … … 19 19 function chartsninja_shortcode( $atts ) { 20 20 extract( shortcode_atts( array( 21 'chartid' => ' d0d6bb681ba34b49b6cb2541f6a6e889'21 'chartid' => '95320fe4-2f7a-4b1b-a9b0-4551533dab58' 22 22 ), $atts ) ); 23 23 … … 32 32 } 33 33 34 $html = "<div id=\"ChartsNinja_$chartid\"></div>34 $html = "<div class=\"commonninja_component\" comp-type=\"chart\" comp-id=\"$chartid\"></div> 35 35 <script type=\"text/javascript\"> 36 36 (function() { 37 var pn = document.createElement('script'); pn.type = 'text/javascript'; 38 pn.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'chartsninja.com/api/chart/$chartid?pnurl=' + window.location.href; 39 var s = document.getElementsByTagName('head')[0].appendChild(pn); 37 var script = document.createElement('script'); 38 script.type = 'text/javascript'; 39 script.src = 'https://cdn.commoninja.com/sdk/latest/commonninja.js'; 40 document.getElementsByTagName('head')[0].appendChild(script); 40 41 })(); 41 42 </script>"; -
charts-ninja-graphs-and-charts/trunk/js/chartsninja.js
r828739 r2147059 6 6 image : url + '/chartsninja.png', 7 7 onclick : function() { 8 var chartID = prompt("Chart ID (from http://chartsninja.com)", ""); 9 if (chartID != null && chartID != '') { 10 ed.execCommand('mceInsertContent', false, '[chartsninja chartid="' + chartID + '"]'); 11 /*var height = prompt("Height (in pixels)", "500"); 12 if(height != null && height != '') { 13 ed.execCommand('mceInsertContent', false, '[chartsninja chartid="' + chartID + '" height="' + height + '"]'); 14 } 15 else { 16 ed.execCommand('mceInsertContent', false, '[chartsninja chartid="' + chartID + '"]'); 17 }*/ 18 } 8 var chartID = prompt("Chart ID (from https://charts.commoninja.com)", ""); 9 if (chartID != null && chartID != '') { 10 ed.execCommand('mceInsertContent', false, '[chartsninja chartid="' + chartID + '"]'); 11 } 19 12 } 20 13 }); … … 25 18 getInfo : function() { 26 19 return { 27 longname : "Charts",20 longname : 'Charts', 28 21 author : 'Common Ninja', 29 authorurl : 'http ://commoninja.com',30 infourl : 'http ://commoninja.com',31 version : "1.0"22 authorurl : 'https://www.commoninja.com', 23 infourl : 'https://charts.commoninja.com', 24 version : '1.0' 32 25 }; 33 26 } -
charts-ninja-graphs-and-charts/trunk/readme.txt
r2031115 r2147059 3 3 Donate link: https://commoninja.com 4 4 Tags: Charts, Graphs, Chart, Graph, HTML5 Chart, HTML5 Graph, Pie, Line chart, Pyramid chart, Bar chart, Stacked chart, Donut chart, Wordpress graphs, Charts and Graphs, Common Ninja 5 Requires at least: 3.06 Tested up to: 5. 17 Stable tag: 1.0.15 Requires at least: 4.0 6 Tested up to: 5.2.2 7 Stable tag: 2.0.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 13 13 == Description == 14 14 15 [ChartsNinja](https:// www.chartsninja.com/about) Charts Ninja is a super powerful tool for adding beautiful graphs and charts to your website. Charts Ninja's charts are responsive, meaning, they will be displayed properly on all devices including smartphones, tablets, laptops, and desktop computers.15 [ChartsNinja](https://charts.commoninja.com/about) Charts Ninja is a super powerful tool for adding beautiful graphs and charts to your website. Charts Ninja's charts are responsive, meaning, they will be displayed properly on all devices including smartphones, tablets, laptops, and desktop computers. 16 16 17 [See thousands of graphs and charts examples created with Charts Ninja.](https:// www.chartsninja.com/charts)17 [See thousands of graphs and charts examples created with Charts Ninja.](https://charts.commoninja.com/charts) 18 18 19 **IMPORTANT: You will FIRST need to go to [Charts Ninja](https:// www.chartsninja.com), sign up for FREE, and create a new chart before you can embed it into your Wordpress website.**19 **IMPORTANT: You will FIRST need to go to [Charts Ninja](https://charts.commoninja.com), sign up for FREE, and create a new chart before you can embed it into your Wordpress website.** 20 20 21 21 Got any feedback or question? Contact us via contact{at}chartsninja.com. … … 27 27 = Creating a chart = 28 28 29 1. Create a free account at [Charts Ninja](https:// www.chartsninja.com).29 1. Create a free account at [Charts Ninja](https://charts.commoninja.com). 30 30 2. Create a new chart by clicking the "Start Now" button on Charts Ninja's homepage. 31 31 3. Customize your chart. Add data, select chart type, and change colors. … … 59 59 = Q: How do I start using Charts Ninja? = 60 60 61 Sign up to [Charts Ninja](https:// www.chartsninja.com), create a new chart and install the Charts Ninja plugin on your Wordpress admin panel.61 Sign up to [Charts Ninja](https://charts.commoninja.com), create a new chart and install the Charts Ninja plugin on your Wordpress admin panel. 62 62 63 63 … … 74 74 == Changelog == 75 75 76 = 2.0.1 = 77 * Updating main script 78 76 79 = 1.0.1 = 77 80 * Editor plugin path fix
Note: See TracChangeset
for help on using the changeset viewer.