Plugin Directory

Changeset 718186


Ignore:
Timestamp:
05/25/2013 12:48:44 PM (13 years ago)
Author:
figurebelow
Message:

New fix version 1.1, d3 charts are now rendered in correct place

Location:
wp-d3
Files:
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • wp-d3/tags/1.1/readme.txt

    r671971 r718186  
    44Tags: d3, visualization, javascript
    55Requires at least: 3.0
    6 Tested up to: 3.4
    7 Stable tag: 1.0.0
     6Tested up to: 3.5
     7Stable tag: 1.1
    88
    99A plugin to integrate D3 into your Wordpress post/pages.
     
    4646= 1.0.0 =
    4747* First commit. Basic tag functionality, [d3-link], [d3 canvas="canvas"]
     48= 1.1 =
     49* Fixed d3 snippet insertion, now the code output is shown where it has been inserted inside the post.
    4850
  • wp-d3/tags/1.1/wp-d3.php

    r669428 r718186  
    55Description: D3 is a very popular visualization library written in Javascript. This plugins provides a set of tags to link page/post content to d3.js libraries in order to visualize the javascript snippets inside Wordpress.
    66All javascript code can be update as "Media" to the Wordpress blog and then refere
    7 Version: 1.0.0
     7Version: 1.1
    88Author: Ruben Afonso
    99Author URI: http://www.figurebelow.com
     
    5656          'canvas' => 'canvas'), $attr));
    5757    $chart = $canvas;
    58     echo '<div class="' . $chart . '">';
    59     echo '<script type="text/javascript">';
    60     echo $content . '</script>' . '</div>';
     58  $result = '<div class="' . $chart . '">' . '<script type="text/javascript">' . $content . '</script>' . '</div>';
     59  return str_replace("\r\n", '', $result); // remove any newline because worpress may convert it to <p> tags
    6160}
    6261
  • wp-d3/trunk/readme.txt

    r671971 r718186  
    44Tags: d3, visualization, javascript
    55Requires at least: 3.0
    6 Tested up to: 3.4
    7 Stable tag: 1.0.0
     6Tested up to: 3.5
     7Stable tag: 1.1
    88
    99A plugin to integrate D3 into your Wordpress post/pages.
     
    4646= 1.0.0 =
    4747* First commit. Basic tag functionality, [d3-link], [d3 canvas="canvas"]
     48= 1.1 =
     49* Fixed d3 snippet insertion, now the code output is shown where it has been inserted inside the post.
    4850
  • wp-d3/trunk/wp-d3.php

    r669428 r718186  
    55Description: D3 is a very popular visualization library written in Javascript. This plugins provides a set of tags to link page/post content to d3.js libraries in order to visualize the javascript snippets inside Wordpress.
    66All javascript code can be update as "Media" to the Wordpress blog and then refere
    7 Version: 1.0.0
     7Version: 1.1
    88Author: Ruben Afonso
    99Author URI: http://www.figurebelow.com
     
    5656          'canvas' => 'canvas'), $attr));
    5757    $chart = $canvas;
    58     echo '<div class="' . $chart . '">';
    59     echo '<script type="text/javascript">';
    60     echo $content . '</script>' . '</div>';
     58  $result = '<div class="' . $chart . '">' . '<script type="text/javascript">' . $content . '</script>' . '</div>';
     59  return str_replace("\r\n", '', $result); // remove any newline because worpress may convert it to <p> tags
    6160}
    6261
Note: See TracChangeset for help on using the changeset viewer.