'wikigraph', 'auto_activate' => false, 'requires_pair' => true, 'load_function' => 'data_wikigraph', 'title' => 'WikiGraph', 'help_page' => 'DataPluginWikiGraph', 'description' => KernelTools::tra( "Inserts a graph for visual navigation. The graph shows the page and every page that can be reached from that page. It requies the Image_GraphViz pear plugin and graphviz to be installed: pear install Image_GraphViz" ), 'help_function' => 'data_wikigraph_help', 'syntax' => "{wikigraph level= title= }".KernelTools::tra( "Wiki page name" )."{/wikigraph}", 'plugin_type' => DATA_PLUGIN, ]; $gLibertySystem->registerPlugin( PLUGIN_GUID_DATAWIKIGRAPH, $pluginParams ); $gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_DATAWIKIGRAPH ); function data_wikigraph_help() { $help = '
| '.KernelTools::tra( "Key" ).' | ' .''.KernelTools::tra( "Type" ).' | ' .''.KernelTools::tra( "Comments" ).' | ' .'
|---|---|---|
| level | ' .''.KernelTools::tra( "numeric").' '.KernelTools::tra( "(optional)" ).' | '
.''.KernelTools::tra( "The number of levels that will be followed from the starting page." ).' '.KernelTools::tra( "Default").': 0 | ' .'
| title | ' .''.KernelTools::tra( "string").' '.KernelTools::tra( "(optional)" ).' | '
.''.KernelTools::tra( "Title of the graph.").' '.KernelTools::tra( "Default ").': Wiki-Graph | ' .'
| nodesep | ' .''.KernelTools::tra( "numeric").' '.KernelTools::tra( "(optional)" ).' | '
.''.KernelTools::tra( "Distance between nodes in inches.").' '.KernelTools::tra( "Default").': 1.2 | ' .'
| rankdir | ' .''.KernelTools::tra( "string").' '.KernelTools::tra( "(optional)" ).' | '
.''.KernelTools::tra( "Direction of graph layout - can be Left to Right (LR), Right to Left (RL), Top to Bottom (TB), Bottom to Top (BT).").' '.KernelTools::tra( "Default").': TB | ' .'
| bgcolor | ' .''.KernelTools::tra( "html colour").' '.KernelTools::tra( "(optional)" ).' | '
.''.KernelTools::tra( "Background colour of the graph.").' '.KernelTools::tra( "Default").': KernelTools::transparent | ' .'