/** * Displays a local link to an included page * * @author Michael Hamann <*****@*****.**> */ function render($mode, Doku_Renderer &$renderer, $data) { global $ID; if ($mode == 'xhtml') { /** @var Doku_Renderer_xhtml $renderer */ list($hash, $name, $id) = $data; // construct title in the same way it would be done for internal links $default = $renderer->_simpleTitle($id); $name = $renderer->_getLinkTitle($name, $default, $isImage, $id); $title = $ID . ' ↵'; $renderer->doc .= '<a href="#' . $hash . '" title="' . $title . '" class="wikilink1">'; $renderer->doc .= $name; $renderer->doc .= '</a>'; return true; } return false; }