diff options
author | Andreas Gohr <andi@splitbrain.org> | 2007-07-11 23:36:24 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2007-07-11 23:36:24 +0200 |
commit | 4ab889ea63838db0bbb33dd0d316eac03ab69cf2 (patch) | |
tree | a65c09a7a415718463a1ed3bdbd82dc3f5ce7081 /inc/parser | |
parent | 8fe3bb00af38a1790e3c2b30eb655fec12e19653 (diff) | |
download | rpg-4ab889ea63838db0bbb33dd0d316eac03ab69cf2.tar.gz rpg-4ab889ea63838db0bbb33dd0d316eac03ab69cf2.tar.bz2 |
improved feed creation
The feed now can export diff views (unified and HTML) as well as full HTML
page content.
Some things might be broken. Everybody please test it!
darcs-hash:20070711213624-7ad00-49359417127fdbd6e31374738509110271b6b351.gz
Diffstat (limited to 'inc/parser')
-rw-r--r-- | inc/parser/xhtml.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php index 3a1eef3e7..2c1061c69 100644 --- a/inc/parser/xhtml.php +++ b/inc/parser/xhtml.php @@ -101,13 +101,15 @@ class Doku_Renderer_xhtml extends Doku_Renderer { if(count($toc) < 3) return ''; global $lang; - $out = '<div class="toc">'.DOKU_LF; + $out = '<!-- TOC START -->'.DOKU_LF; + $out .= '<div class="toc">'.DOKU_LF; $out .= '<div class="tocheader toctoggle" id="toc__header">'; $out .= $lang['toc']; $out .= '</div>'.DOKU_LF; $out .= '<div id="toc__inside">'.DOKU_LF; $out .= html_buildlist($toc,'toc',array(__CLASS__,'_tocitem')); $out .= '</div>'.DOKU_LF.'</div>'.DOKU_LF; + $out .= '<!-- TOC END -->'.DOKU_LF; return $out; } @@ -928,6 +930,10 @@ class Doku_Renderer_xhtml extends Doku_Renderer { $ret .= '<img src="'.ml($src,array('w'=>$width,'h'=>$height,'cache'=>$cache)).'"'; $ret .= ' class="media'.$align.'"'; + // make left/right alignment for no-CSS view work (feeds) + if($align == 'right') $ret .= ' align="right"'; + if($align == 'left') $ret .= ' align="left"'; + if (!is_null($title)) { $ret .= ' title="'.$this->_xmlEntities($title).'"'; $ret .= ' alt="'.$this->_xmlEntities($title).'"'; |