Plugin Directory

Changeset 2303199


Ignore:
Timestamp:
05/12/2020 07:31:01 AM (6 years ago)
Author:
CommonNinja
Message:

bumping version to 2.1.0, adding icons, removing editor button

Location:
charts-ninja-graphs-and-charts
Files:
2 added
7 edited

Legend:

Unmodified
Added
Removed
  • charts-ninja-graphs-and-charts/trunk/chartsninja.php

    r2147059 r2303199  
    44 * Plugin URI: https://charts.commoninja.com
    55 * 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.1
     6 * Version: 2.1.0
    77 * Author: Common Ninja
    88 * Author URI: https://www.commoninja.com/
     
    2121        'chartid' => '95320fe4-2f7a-4b1b-a9b0-4551533dab58'
    2222    ), $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     }
    3323   
    3424    $html = "<div class=\"commonninja_component\" comp-type=\"chart\" comp-id=\"$chartid\"></div>
     
    4737add_shortcode( 'chartsninja', 'chartsninja_shortcode' );
    4838
    49 
    50 /*
    51  * Pricer Ninja tinyMCE button registration
    52  */
    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 
    7939?>
  • 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 ===
    22Contributors: CommonNinja
    3 Donate link: https://commoninja.com
    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
     3Donate link: https://www.commoninja.com
     4Tags: 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
    55Requires at least: 4.0
    6 Tested up to: 5.2.2
    7 Stable tag: 2.0.1
     6Tested up to: 5.4.1
     7Stable tag: 2.1.0
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1010
    11 A great tool for adding charts and graphs to your Wordpress website.
     11Create Beautiful Graphs & Charts with our Charts maker and Easily Add Them to Your Website. All chart types supported!
     12Powered by [Common Ninja](https://www.commoninja.com).
    1213
    1314== Description ==
    1415
    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.
     17We 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
    1630
    17 [See thousands of graphs and charts examples created with Charts Ninja.](https://charts.commoninja.com/charts)
     31And more.
    1832
    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)
    2034
    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
     37Got any feedback or question? Contact us via contact{at}commoninja.com.
    2238
    2339** It's really easy. Get started in 2 minutes tops, no training needed! **
     
    2743= Creating a chart =
    2844
    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).
     451. Create a FREE account at [Charts Ninja](https://charts.commoninja.com).
     462. Create a new chart by clicking the "Try it now" button on Charts Ninja's homepage.
     473. Customize the chart. Make it beautiful. Import or set data, change color scheme, play with the settings.
     484. Click the "Save Changes" button.
     49
     50= Extracting the chart ID =
     51
     521. Go to your account's [dashboard](https://user.commoninja.com/dashboard?type=chart).
     532. Find the chart you want to add, and click the plugin's menu (3 dots icon).
     543. Look for the "Add to Site" button and click it.
     554. Under the embeddable code, you'll see a "Plugin ID" section. Copy the ID, and save it for later.
    3456
    3557= Attach a chart to a Wordpress post =
    3658
    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.
     591. Use Charts Ninja's shortcode directly in the editor: [chartsninja chartid="YOUR_CHART_ID"].
     602. Make sure you replace `YOUR_CHART_ID` with the one from "Extracting the chart ID" section above.
    4061
    4162Arguments provides by the shortcode:
     
    6485== Screenshots ==
    6586
    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
     871. Charts Ninja shortcode
     882. Charts Ninja - Pie Chart
     893. Charts Ninja - Bar Chart
     904. Charts Ninja - Line Chart
     915. Charts Ninja - Pyramid Chart
    7292
    7393
    7494== Changelog ==
     95
     96= 2.1.0 =
     97* Removing button from editor, updating shortcode
    7598
    7699= 2.0.1 =
Note: See TracChangeset for help on using the changeset viewer.