cvs: phd(PHD_0_4) / package.xml /themes/php phpdotnet.php
| From: | Hannes Magnusson | Date: | Sun, 28 Dec 2008 16:45:13 +0000 |
| Subject: | cvs: phd(PHD_0_4) / package.xml /themes/php phpdotnet.php | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-2856@lists.php.net to get a copy of this message | ||
bjori Sun Dec 28 16:45:13 2008 UTC
Modified files: (Branch: PHD_0_4)
/phd package.xml
/phd/themes/php phpdotnet.php
Log:
Add descriptions of seealso functions
http://cvs.php.net/viewvc.cgi/phd/package.xml?r1=1.74.2.19.2.27&r2=1.74.2.19.2.28&diff_format=u
Index: phd/package.xml
diff -u phd/package.xml:1.74.2.19.2.27 phd/package.xml:1.74.2.19.2.28
--- phd/package.xml:1.74.2.19.2.27 Sun Dec 28 16:20:18 2008
+++ phd/package.xml Sun Dec 28 16:45:13 2008
@@ -53,6 +53,7 @@
<license uri="http://www.opensource.org/licenses/bsd-license.php">BSD
Style</license>
<notes>
- Automatically add anchors for refsect roles. (Hannes)
+ - Added description for seealso links. (Hannes)
- Fixed bug#46941 (FR: Find broken links). (Hannes)
- Fixed bug#46931 (wrong order of the META tag in the HEAD element). (Chen Gang)
- Fixed bug#46714 (change deprecated ereg_replace(Since PHP 5.3.0) to preg_replace). (Chen
Gang)
http://cvs.php.net/viewvc.cgi/phd/themes/php/phpdotnet.php?r1=1.53.2.4.2.4&r2=1.53.2.4.2.5&diff_format=u
Index: phd/themes/php/phpdotnet.php
diff -u phd/themes/php/phpdotnet.php:1.53.2.4.2.4 phd/themes/php/phpdotnet.php:1.53.2.4.2.5
--- phd/themes/php/phpdotnet.php:1.53.2.4.2.4 Sat Dec 27 22:18:55 2008
+++ phd/themes/php/phpdotnet.php Sun Dec 28 16:45:13 2008
@@ -1,5 +1,5 @@
<?php
-/* $Id: phpdotnet.php,v 1.53.2.4.2.4 2008/12/27 22:18:55 bjori Exp $ */
+/* $Id: phpdotnet.php,v 1.53.2.4.2.5 2008/12/28 16:45:13 bjori Exp $ */
abstract class phpdotnet extends PhDTheme {
protected $elementmap = array(
@@ -518,18 +518,20 @@
if ($display_value === null) {
$display_value = $value;
}
- $rel = "";
- if ($this->format->role == "seealso") {
- $rel = ' rel="rdfs-seeAlso"';
- }
$ref = strtolower(str_replace(array("_", "::", "->"),
array("-", "-", "-"), $value));
if (($filename = $this->getRefnameLink($ref)) !== null) {
if ($this->CURRENT_ID !== $filename) {
+ $rel = $desc = "";
+ if ($this->format->role == "seealso") {
+ $rel = ' rel="rdfs-seeAlso"';
+ $desc = " - " . PhDHelper::getDescription($filename, true);
+ }
+
if ($this->chunked) {
- return '<a href="'.$filename. '.' .$this->ext.
'" class="function"'.$rel.'>' .$display_value.($tag ==
"function" ? "()" : ""). '</a>';
+ return '<a href="'.$filename. '.' .$this->ext.
'" class="function"'.$rel.'>' .$display_value.($tag ==
"function" ? "()" : ""). '</a>'.$desc;
}
- return '<a href="#'.$filename. '"
class="function"'.$rel.'>' .$display_value.($tag == "function"
? "()" : ""). '</a>';
+ return '<a href="#'.$filename. '"
class="function"'.$rel.'>' .$display_value.($tag == "function"
? "()" : ""). '</a>'.$desc;
}
} elseif ($this->CURRENT_ID !== $filename) {
v("No link found for $value", VERBOSE_BROKEN_LINKS);