cvs: phd /themes/pear peartheme.php
| From: | Christian Weiske | Date: | Wed, 08 Oct 2008 21:17:15 +0000 |
| Subject: | cvs: phd /themes/pear peartheme.php | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-2219@lists.php.net to get a copy of this message | ||
cweiske Wed Oct 8 21:17:15 2008 UTC
Modified files:
/phd/themes/pear peartheme.php
Log:
- Close section divs properly
- size section titles down if they are in an info tag
http://cvs.php.net/viewvc.cgi/phd/themes/pear/peartheme.php?r1=1.7&r2=1.8&diff_format=u
Index: phd/themes/pear/peartheme.php
diff -u phd/themes/pear/peartheme.php:1.7 phd/themes/pear/peartheme.php:1.8
--- phd/themes/pear/peartheme.php:1.7 Wed Oct 8 20:19:41 2008
+++ phd/themes/pear/peartheme.php Wed Oct 8 21:17:15 2008
@@ -140,6 +140,19 @@
'chapter' => 'format_container_chunk_title',
//'example' => 'format_example_title',
'part' => 'format_container_chunk_title',
+ 'section' => array(
+ /* DEFAULT */ 'format_container_chunk_title',
+ 'section' => array(
+ 'h2',
+ 'section' => array(
+ 'h3',
+ 'section'=> array(
+ 'h4',
+ 'section'=> 'h5'
+ ),
+ ),
+ ),
+ ),
'warning' => 'format_warning_title',
),
'refsect1' => 'h2',
@@ -150,11 +163,13 @@
'section' => array(
/* DEFAULT */ 'h2',
'section' => array(
- /* DEFAULT */ 'h3',
- 'section' => array(
- /* DEFAULT */ 'h4',
- 'section' => 'h5'
- )))
+ /* DEFAULT */ 'h3',
+ 'section' => array(
+ /* DEFAULT */'h4',
+ 'section' => 'h5'
+ ),
+ ),
+ ),
),
'table' => 'format_table_title',
'warning' => 'format_warning_title',
@@ -245,7 +260,11 @@
public function format_container_chunk($open, $name, $attrs, $props) {
if (!isset($attrs[PhDReader::XMLNS_XML]['id'])) {
- return "<div class=\"{$name}\">";
+ if ($open) {
+ return "<div class=\"{$name}\">";
+ } else {
+ return "</div>\n";
+ }
}
$this->CURRENT_ID = $id = $attrs[PhDReader::XMLNS_XML]["id"];