Description
Build the script for the graph generation code
Usage
bw_graphviz_generate_graph( $id, $atts, $content );Parameters
- $id
- ( mixed ) required –
- $atts
- ( mixed ) required –
- $content
- ( mixed ) required –
Returns
voidTO DO
support something other than a simple digraph $wpg_graph_spec .= '<script type="text/vnd.graphviz" id="' . $wpg_id . '">'; $wpg_graph_spec .= $wpg_graph_dot; $wpg_graph_spec .= '</script>';Source
File name: oik-bob-bing-wide/shortcodes/oik-graphviz.phpLines:
1 to 15 of 15
function bw_graphviz_generate_graph( $id, $atts, $content ) { stag( "script", null, "bw_gv_id_$id", kv( "type", "text/vnd.graphviz" )); e( "digraph bw_gv_id_$id { " ); // Prepend any special stuff to make it easier $content = str_replace( array('<', '>', '"', '“', '”', ''', '᾽', '᾿', '’', '&', '&', "\n", "\r", "\xa0", '–'), array('<', '>', '"', '"', '"', "'", "'", "'", "'", '&', '&', '', '', '-', ''), $content ); e( $content ); e( "}" ); etag( "script" ); }View on GitHub
Invoked by
Calls
1 to 3 of 3
Call hooks
API Letters:
