cvs: phd /formats xhtml.php
| From: | Nilgün Belma Bugüner | Date: | Sat, 03 Jan 2009 12:55:22 +0000 |
| Subject: | cvs: phd /formats xhtml.php | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-2927@lists.php.net to get a copy of this message | ||
nilgun Sat Jan 3 12:55:22 2009 UTC
Modified files:
/phd/formats xhtml.php
Log:
add anchor for table rows
See: Â manual/en/http.configuration.php, link to http.force_exit
http://cvs.php.net/viewvc.cgi/phd/formats/xhtml.php?r1=1.83&r2=1.84&diff_format=u
Index: phd/formats/xhtml.php
diff -u phd/formats/xhtml.php:1.83 phd/formats/xhtml.php:1.84
--- phd/formats/xhtml.php:1.83 Fri Jan 2 14:44:23 2009
+++ phd/formats/xhtml.php Sat Jan 3 12:55:22 2009
@@ -1,5 +1,5 @@
<?php
-/* $Id: xhtml.php,v 1.83 2009/01/02 14:44:23 bjori Exp $ */
+/* $Id: xhtml.php,v 1.84 2009/01/03 12:55:22 nilgun Exp $ */
class XHTMLPhDFormat extends PhDFormat {
protected $elementmap = array( /* {{{ */
@@ -1374,9 +1374,13 @@
}
public function format_row($open, $name, $attrs) {
if ($open) {
+ $idstr = '';
+ if (isset($attrs[PhDReader::XMLNS_XML]['id'])) {
+ $idstr = ' id="'. $attrs[PhDReader::XMLNS_XML]['id'].
'"';
+ }
PhDFormat::initRow();
$valign = PhDFormat::valign($attrs[PhDReader::XMLNS_DOCBOOK]);
- return '<tr valign="' .$valign. '">';
+ return '<tr'.$idstr.' valign="' .$valign.
'">';
}
return "</tr>\n";
}