cvs: phd /themes/pear pearchunkedhtml.php peartheme.php
| From: | Christian Weiske | Date: | Sun, 05 Oct 2008 16:54:03 +0000 |
| Subject: | cvs: phd /themes/pear pearchunkedhtml.php peartheme.php | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-2197@lists.php.net to get a copy of this message | ||
cweiske Sun Oct 5 16:54:03 2008 UTC
Modified files:
/phd/themes/pear pearchunkedhtml.php peartheme.php
Log:
- Switch to XHTML 1.0 transitional for chunkedhtml
- Fix some html errors
http://cvs.php.net/viewvc.cgi/phd/themes/pear/pearchunkedhtml.php?r1=1.2&r2=1.3&diff_format=u
Index: phd/themes/pear/pearchunkedhtml.php
diff -u phd/themes/pear/pearchunkedhtml.php:1.2 phd/themes/pear/pearchunkedhtml.php:1.3
--- phd/themes/pear/pearchunkedhtml.php:1.2 Fri Aug 29 11:20:00 2008
+++ phd/themes/pear/pearchunkedhtml.php Sun Oct 5 16:54:03 2008
@@ -20,8 +20,8 @@
$next = pearweb::createNext($id, $parent, $siblings);
$up = array($parent.".html", PhDHelper::getDescription($parent, false));
}
- $header = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
-<html>
+ $header = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
xml:lang="en" lang="en">
<head>
<title>' . $title . '</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
@@ -40,12 +40,12 @@
$header .= ' </head>
<body>
';
-
+
$nav = <<<NAV
<table style="background-color: #E0E0E0; width: 100%; font-size: 75%; white-space: nowrap;
border-collapse:collapse; border-spacing:0pt;" align="center">
<tbody>
<tr valign="top">
- <td colspan="2" height="1"><hr style="height: 1px; margin:
0px;"></td>
+ <td colspan="2" height="1"><hr style="height: 1px; margin:
0px;"/></td>
</tr>
<tr valign="top">
<td align="left" style="padding: 0px 10px;">
@@ -56,19 +56,19 @@
</td>
</tr>
<tr valign="top">
- <td colspan="2" height="1"><hr style="height: 1px; margin:
0px;"></td>
+ <td colspan="2" height="1"><hr style="height: 1px; margin:
0px;"/></td>
</tr>
<tr valign="top">
<td colspan="2" align="center"><a
href="{$up[0]}">{$up[1]}</a></td>
</tr>
<tr valign="top">
- <td colspan="2" height="1"><hr style="height: 1px; margin:
0px;"></td>
+ <td colspan="2" height="1"><hr style="height: 1px; margin:
0px;"/></td>
</tr>
<tr valign="top">
<td colspan="2" align="center"><a
href="guide.html">PEAR Manual</a></td>
</tr>
<tr valign="top">
- <td colspan="2" height="1"><hr style="height: 1px; margin:
0px;"></td>
+ <td colspan="2" height="1"><hr style="height: 1px; margin:
0px;"/></td>
</tr>
</tbody>
</table>
http://cvs.php.net/viewvc.cgi/phd/themes/pear/peartheme.php?r1=1.4&r2=1.5&diff_format=u
Index: phd/themes/pear/peartheme.php
diff -u phd/themes/pear/peartheme.php:1.4 phd/themes/pear/peartheme.php:1.5
--- phd/themes/pear/peartheme.php:1.4 Sun Oct 5 16:30:03 2008
+++ phd/themes/pear/peartheme.php Sun Oct 5 16:54:03 2008
@@ -102,6 +102,7 @@
'refname' => 'h1',
'refnamediv' => 'format_suppressed_tags',
'refpurpose' => 'format_refpurpose',
+ 'refsection' => 'format_container_chunk',
'refsynopsisdiv' => 'format_refsynopsisdiv',
'row' => 'tr',
'screen' => 'format_screen',
@@ -591,7 +592,7 @@
public function format_funcprototype($open, $name, $attrs, $props) {
if ($open) {
- return "<p><code class=$name>";
+ return '<p><code class="$name">';
}
else return ")</code></p>";
}