cvs: phd /formats xhtml.php

From: Date: Fri, 28 Sep 2007 11:00:03 +0000
Subject: cvs: phd /formats xhtml.php
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-67@lists.php.net to get a copy of this message
bjori Fri Sep 28 11:00:03 2007 UTC Modified files: /phd/formats xhtml.php Log: Add image & tag support http://cvs.php.net/viewvc.cgi/phd/formats/xhtml.php?r1=1.23&r2=1.24&diff_format=u Index: phd/formats/xhtml.php diff -u phd/formats/xhtml.php:1.23 phd/formats/xhtml.php:1.24 --- phd/formats/xhtml.php:1.23 Fri Sep 28 10:55:53 2007 +++ phd/formats/xhtml.php Fri Sep 28 11:00:03 2007 @@ -1,5 +1,5 @@ <?php -/* $Id: xhtml.php,v 1.23 2007/09/28 10:55:53 bjori Exp $ */ +/* $Id: xhtml.php,v 1.24 2007/09/28 11:00:03 bjori Exp $ */ class XHTMLPhDFormat extends PhDFormat { protected $elementmap = array( /* {{{ */ @@ -64,6 +64,8 @@ 'filename' => 'var', 'glossterm' => 'span', 'holder' => 'span', + 'imageobject' => 'div', + 'imagedata' => 'format_imagedata', 'index' => array( /* DEFAULT */ 'div', 'article' => 'format_chunk', @@ -138,6 +140,7 @@ 'example' => 'format_example_content', ), 'systemitem' => 'format_systemitem', + 'tag' => 'code', 'table' => 'format_table', 'term' => 'span', 'tfoot' => 'format_th', @@ -419,6 +422,9 @@ return "</b></p>"; } + public function format_imagedata($open, $name, $attrs) { + return sprintf('<img src="%s" />', $attrs[PhDReader::XMLNS_DOCBOOK]["fileref"]); + } public function format_table($open, $name, $attrs) { if ($open) {

« previous php.doc.cvs (#67) next »