Changeset 2303199
- Timestamp:
- 05/12/2020 07:31:01 AM (6 years ago)
- Location:
- charts-ninja-graphs-and-charts
- Files:
-
- 2 added
- 7 edited
-
assets/icon-128x128.png (added)
-
assets/icon-256x256.png (added)
-
assets/screenshot-1.png (modified) (previous)
-
assets/screenshot-2.png (modified) (previous)
-
assets/screenshot-3.png (modified) (previous)
-
assets/screenshot-4.png (modified) (previous)
-
assets/screenshot-5.png (modified) (previous)
-
trunk/chartsninja.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
charts-ninja-graphs-and-charts/trunk/chartsninja.php
r2147059 r2303199 4 4 * 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: 2. 0.16 * Version: 2.1.0 7 7 * Author: Common Ninja 8 8 * Author URI: https://www.commoninja.com/ … … 21 21 'chartid' => '95320fe4-2f7a-4b1b-a9b0-4551533dab58' 22 22 ), $atts ) ); 23 24 $siteUrl = "http";25 26 if ($_SERVER["HTTPS"] == "on") {$siteUrl .= "s";}27 $siteUrl .= "://";28 if ($_SERVER["SERVER_PORT"] != "80") {29 $siteUrl .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];30 } else {31 $siteUrl .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];32 }33 23 34 24 $html = "<div class=\"commonninja_component\" comp-type=\"chart\" comp-id=\"$chartid\"></div> … … 47 37 add_shortcode( 'chartsninja', 'chartsninja_shortcode' ); 48 38 49 50 /*51 * Pricer Ninja tinyMCE button registration52 */53 54 function chartsninja_register_button( $buttons ) {55 array_push( $buttons, "|", "chartsninja" );56 return $buttons;57 }58 59 function chartsninja_add_plugin( $plugin_array ) {60 $plugin_array['chartsninja'] = plugins_url() . '/charts-ninja-graphs-and-charts/js/chartsninja.js';61 return $plugin_array;62 }63 64 function chartsninja_add_button() {65 66 if ( ! current_user_can('edit_posts') && ! current_user_can('edit_pages') ) {67 return;68 }69 70 if ( get_user_option('rich_editing') == 'true' ) {71 add_filter( 'mce_external_plugins', 'chartsninja_add_plugin' );72 add_filter( 'mce_buttons', 'chartsninja_register_button' );73 }74 75 }76 77 add_action('init', 'chartsninja_add_button');78 79 39 ?> -
charts-ninja-graphs-and-charts/trunk/readme.txt
r2147059 r2303199 1 === Charts Ninja: Create and add Chart & Graphs to your website on-the-fly===1 === Charts Ninja: Create Beautiful Graphs & Charts and Easily Add Them to Your Website === 2 2 Contributors: CommonNinja 3 Donate link: https:// commoninja.com4 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 Ninja3 Donate link: https://www.commoninja.com 4 Tags: Charts, Graphs, Chart, Graph, Column Chart, Line Chart, Pie Chart, Bar Chart, Area Chart, Stacked Chart, Doughnut Chart, Semi Circle Doughnut Chart, Pyramid Chart, Funnel Chart, Radial Bar, Spiderweb, Radar, 3D Pie Chart, 3D Donut Chart, 3D Column Chart, 3D Stacked Chart, 3D Cylinder Chart, 3D Funnel Chart, 3D Pyramid Chart , Wordpress graphs, Charts and Graphs, Common Ninja 5 5 Requires at least: 4.0 6 Tested up to: 5. 2.27 Stable tag: 2. 0.16 Tested up to: 5.4.1 7 Stable tag: 2.1.0 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 10 11 A great tool for adding charts and graphs to your Wordpress website. 11 Create Beautiful Graphs & Charts with our Charts maker and Easily Add Them to Your Website. All chart types supported! 12 Powered by [Common Ninja](https://www.commoninja.com). 12 13 13 14 == Description == 14 15 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 [Charts Ninja](https://charts.commoninja.com/) is a chart maker that allows you to create and add 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. 17 We support 20+ different chart types including: 18 * Column Chart 19 * Line Chart 20 * Pie Chart 21 * Bar Chart 22 * Area Chart 23 * Stacked Chart 24 * Pyramid Chart 25 * Funnel Chart 26 * Radial Bar 27 * Spiderweb 28 * Radar Chart 29 * 3D Charts 16 30 17 [See thousands of graphs and charts examples created with Charts Ninja.](https://charts.commoninja.com/charts) 31 And more. 18 32 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.** 33 [You may browse our public gallery to see some examples.](https://charts.commoninja.com/gallery) 20 34 21 Got any feedback or question? Contact us via contact{at}chartsninja.com. 35 **IMPORTANT: In order to add a chart to your Wordpress website, you will FIRST need to go to [Charts Ninja](https://charts.commoninja.com), sign up for FREE, and create a new chart in our charts maker.** 36 37 Got any feedback or question? Contact us via contact{at}commoninja.com. 22 38 23 39 ** It's really easy. Get started in 2 minutes tops, no training needed! ** … … 27 43 = Creating a chart = 28 44 29 1. Create a free account at [Charts Ninja](https://charts.commoninja.com). 30 2. Create a new chart by clicking the "Start Now" button on Charts Ninja's homepage. 31 3. Customize your chart. Add data, select chart type, and change colors. 32 4. Click the "Save & Get Code" button. 33 5. Click the "Publish" button, and look for the "Chart ID" section. Copy it, and write it somewhere (we will use it later). 45 1. Create a FREE account at [Charts Ninja](https://charts.commoninja.com). 46 2. Create a new chart by clicking the "Try it now" button on Charts Ninja's homepage. 47 3. Customize the chart. Make it beautiful. Import or set data, change color scheme, play with the settings. 48 4. Click the "Save Changes" button. 49 50 = Extracting the chart ID = 51 52 1. Go to your account's [dashboard](https://user.commoninja.com/dashboard?type=chart). 53 2. Find the chart you want to add, and click the plugin's menu (3 dots icon). 54 3. Look for the "Add to Site" button and click it. 55 4. Under the embeddable code, you'll see a "Plugin ID" section. Copy the ID, and save it for later. 34 56 35 57 = Attach a chart to a Wordpress post = 36 58 37 1. Create a new post and look for the "Chart" button in your editor. 38 2. A popup will appear, enter the relevant chart ID (the same one you copied from Chart Ninja's website). 39 3. If you can't find the "Chart" button, you may also write [chartsninja chartid="YOUR_CHART_ID"] in the editor, and replace "YOUR_CHART_ID" with the relevant chart ID. 59 1. Use Charts Ninja's shortcode directly in the editor: [chartsninja chartid="YOUR_CHART_ID"]. 60 2. Make sure you replace `YOUR_CHART_ID` with the one from "Extracting the chart ID" section above. 40 61 41 62 Arguments provides by the shortcode: … … 64 85 == Screenshots == 65 86 66 1. Charts Ninja button on WP editor 67 2. Charts Ninja shortcode 68 3. Charts Ninja - Pie Chart 69 4. Charts Ninja - Bar Chart 70 5. Charts Ninja - Line Chart 71 6. Charts Ninja - Pyramid Chart 87 1. Charts Ninja shortcode 88 2. Charts Ninja - Pie Chart 89 3. Charts Ninja - Bar Chart 90 4. Charts Ninja - Line Chart 91 5. Charts Ninja - Pyramid Chart 72 92 73 93 74 94 == Changelog == 95 96 = 2.1.0 = 97 * Removing button from editor, updating shortcode 75 98 76 99 = 2.0.1 =
Note: See TracChangeset
for help on using the changeset viewer.