cvs: phd /themes/pear peartheme.php

From: Date: Wed, 05 Nov 2008 20:54:59 +0000
Subject: cvs: phd /themes/pear peartheme.php
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-2417@lists.php.net to get a copy of this message
saltybeagle Wed Nov 5 20:54:59 2008 UTC Modified files: /phd/themes/pear peartheme.php Log: Change <b> to <strong>, <i> to <em>, and fix CDATA \n to <br/> replacement. http://cvs.php.net/viewvc.cgi/phd/themes/pear/peartheme.php?r1=1.19&r2=1.20&diff_format=u Index: phd/themes/pear/peartheme.php diff -u phd/themes/pear/peartheme.php:1.19 phd/themes/pear/peartheme.php:1.20 --- phd/themes/pear/peartheme.php:1.19 Wed Nov 5 19:11:16 2008 +++ phd/themes/pear/peartheme.php Wed Nov 5 20:54:59 2008 @@ -23,9 +23,9 @@ 'copyright' => 'format_copyright', 'coref' => 'format_suppressed_tags', 'chapter' => 'format_container_chunk', - 'classname' => 'b', + 'classname' => 'strong', 'colophon' => 'format_chunk', - 'constant' => 'b', + 'constant' => 'strong', 'emphasis' => 'format_emphasis', 'filename' => array( /* DEFAULT */ 'tt', @@ -37,7 +37,7 @@ 'funcsynopsisinfo' => 'format_programlisting', 'funcsynopsis' => 'format_div', - 'function' => 'b', + 'function' => 'strong', 'editor' => 'format_div', 'email' => 'tt', 'glossary' => array( @@ -561,7 +561,7 @@ } if (!$this->role) { return str_replace( - array("\n", ' '), array('<br />', '&nbsp;'), + array("\n", ' '), array('<br/>', '&nbsp;'), htmlspecialchars($str, ENT_QUOTES, 'UTF-8') ); } @@ -650,7 +650,7 @@ { if ($open) { return $this->format->escapePara() - . '<blockquote class="' . $name . '"><b>'.$this->autogen($name, $props['lang']). ': </b>'; + . '<blockquote class="' . $name . '"><strong>'.$this->autogen($name, $props['lang']). ': </strong>'; } return "</blockquote>\n" . $this->format->restorePara(); } @@ -688,25 +688,25 @@ if ($props['empty']) return ''; if ($open) { - return '<caption><b>'; + return '<caption><strong>'; } - return '</b></caption>'; + return '</strong></caption>'; } public function format_userinput($open, $name, $attrs, $props) { if ($open) { - return '<tt class="'.$name.'"><b>'; + return '<tt class="'.$name.'"><strong>'; } - return '</b></tt>'; + return '</strong></tt>'; } public function format_replaceable($open, $name, $attrs, $props) { if ($open) { - return '<tt class="'.$name.'"><i>'; + return '<tt class="'.$name.'"><em>'; } - return '</i></tt>'; + return '</em></tt>'; } public function format_warning($open, $name, $attrs, $props) @@ -754,7 +754,7 @@ { if ($open) { $refnames = implode(' ', $this->cchunk['refname']); - return '<div class="refnamediv">'. $refnames. ' -- '; + return '<div class="refnamediv">'. $refnames. ' &ndash; '; } return "</div>\n"; } @@ -767,7 +767,7 @@ public function format_function_text($value) { - return $this->format->TEXT($value."()"); + return $this->format->TEXT($value.'()'); } public function format_paramdef($open, $name, $attrs, $props) @@ -848,7 +848,7 @@ libxml_use_internal_errors($old); $xpath = new DOMXPath($doc); - $nlist = $xpath->query("//div/dl/dt/strong"); + $nlist = $xpath->query('//div/dl/dt/strong'); $ret = '<div class="qandaset"><ol class="qandaset_questions">'; $i = 0; foreach ($nlist as $node) { @@ -861,7 +861,7 @@ public function format_qandaentry($open, $name, $attrs) { if ($open) { - $this->cchunk['qandaentry'][] = $this->CURRENT_ID . ".entry" . count($this->cchunk['qandaentry']); + $this->cchunk['qandaentry'][] = $this->CURRENT_ID . '.entry' . count($this->cchunk['qandaentry']); return '<dl>'; } return '</dl>'; @@ -897,9 +897,9 @@ public function format_glossterm($open, $name, $attrs) { if ($open) { - return '<dt><b>'; + return '<dt><strong>'; } - return '</b></dt>'; + return '</strong></dt>'; } public function format_glossdef($open, $name, $attrs)

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