From 0b7c14c22e9810803e87a882cd9b3597b27fe74f Mon Sep 17 00:00:00 2001 From: andi Date: Wed, 4 May 2005 21:22:03 +0200 Subject: local links added #297 darcs-hash:20050504192203-9977f-004cc04b0753fc5d36d4515519c54039e73e77de.gz --- inc/parser/xhtml.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'inc/parser/xhtml.php') diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php index 5b5716a3f..ffacabc7b 100644 --- a/inc/parser/xhtml.php +++ b/inc/parser/xhtml.php @@ -416,6 +416,17 @@ class Doku_Renderer_xhtml extends Doku_Renderer { $this->internallink($link,$link); } + + function locallink($hash, $name = NULL){ + global $ID; + $name = $this->_getLinkTitle($name, $hash, $isImage); + $hash = $this->_headerToLink($hash); + $title = $ID.' ↵'; + $this->doc .= ''; + $this->doc .= $name; + $this->doc .= ''; + } + /** * Render an internal Wiki Link * @@ -935,7 +946,7 @@ class Doku_Renderer_xhtml extends Doku_Renderer { /** * Construct a title and handle images in titles * - * @author Harry Fuecks + * @author Harry Fuecks */ function _getLinkTitle($title, $default, & $isImage, $id=NULL) { global $conf; -- cgit v1.2.3