1<?php 2 3class renderer_plugin_flowcharts extends Doku_Renderer_xhtml { 4 function underline_open() { 5 $xhtml = '<em class="u">'; 6 7 $xhtml = htmlentities($xhtml,ENT_NOQUOTES); 8 $xhtml = str_replace(array('"', '='), array(''', '='), $xhtml); 9 10 $this->doc .= $xhtml; 11 } 12 13 function underline_close() { 14 $xhtml = '</em>'; 15 16 $xhtml = htmlentities($xhtml,ENT_NOQUOTES); 17 $xhtml = str_replace(array('"', '='), array(''', '='), $xhtml); 18 19 $this->doc .= $xhtml; 20 } 21 22 function internallink($id, $name = null, $search = null, $returnonly = false, $linktype = 'content') { 23 $xhtml = parent::internallink($id, $name, $search, true, $linktype); 24 25 $xhtml = htmlentities($xhtml,ENT_NOQUOTES); 26 $xhtml = str_replace(array('"', '='), array(''', '='), $xhtml); 27 28 //output formatted 29 if($returnonly) { 30 return $xhtml; 31 } else { 32 $this->doc .= $xhtml; 33 } 34 } 35 36 function externallink($url, $name = null, $returnonly = false) { 37 $xhtml = parent::externallink($url, $name = null, true); 38 39 $xhtml = htmlentities($xhtml,ENT_NOQUOTES); 40 $xhtml = str_replace(array('"', '='), array(''', '='), $xhtml); 41 42 //output formatted 43 if($returnonly) { 44 return $xhtml; 45 } else { 46 $this->doc .= $xhtml; 47 } 48 } 49 50 function internalmedia($src, $title = null, $align = null, $width = null, 51 $height = null, $cache = null, $linking = null, $return = false) { 52 $xhtml = parent::internalmedia($src, $title, $align, $width, $height, $cache, $linking, true); 53 54 $xhtml = htmlentities($xhtml,ENT_NOQUOTES); 55 $xhtml = str_replace(array('"', '='), array(''', '='), $xhtml); 56 57 //output formatted 58 if($return) { 59 return $xhtml; 60 } else { 61 $this->doc .= $xhtml; 62 } 63 } 64 65 /** 66 * Render plain text data 67 * 68 * @param $text 69 */ 70 function cdata($text) { 71 $this->doc .= $text; 72 } 73 74 /** 75 * Open a paragraph 76 */ 77 public function p_open() { 78 //ignore 79 } 80 81 /** 82 * Close a paragraph 83 */ 84 public function p_close() { 85 //ignore 86 } 87} 88