bjori Sat Aug 25 13:13:49 2007 UTC
Modified files:
/phd/themes/php phpdotnet.php
Log:
Use the short-description as link and print the long description beside it
http://cvs.php.net/viewvc.cgi/phd/themes/php/phpdotnet.php?r1=1.9&r2=1.10&diff_format=u
Index: phd/themes/php/phpdotnet.php
diff -u phd/themes/php/phpdotnet.php:1.9 phd/themes/php/phpdotnet.php:1.10
--- phd/themes/php/phpdotnet.php:1.9 Fri Aug 24 09:11:23 2007
+++ phd/themes/php/phpdotnet.php Sat Aug 25 13:13:49 2007
@@ -1,5 +1,5 @@
<?php
-/* $Id: phpdotnet.php,v 1.9 2007/08/24 09:11:23 bjori Exp $ */
+/* $Id: phpdotnet.php,v 1.10 2007/08/25 13:13:49 bjori Exp $ */
class phpdotnet extends PhDHelper {
protected $elementmap = array(
@@ -199,13 +199,25 @@
$content = '<ul class="chunklist chunklist_'.$name.'">';
foreach($chunks as $chunkid => $junk) {
$href = $this->chunked ? $chunkid .'.'. $this->ext : "#$chunkid";
- $content .= sprintf('<li><a href="%s">%s</a>', $href,
PhDHelper::getDescription($chunkid, true));
+ $long = PhDHelper::getDescription($chunkid, true);
+ $short = PhDHelper::getDescription($chunkid, false);
+ if ($long && $short && $long != $short) {
+ $content .= sprintf('<li><a href="%s">%s</a> â %s', $href,
$short, $long);
+ } else {
+ $content .= sprintf('<li><a href="%s">%s</a>', $href, $long ?
$long : $short);
+ }
$children = PhDHelper::getChildren($chunkid);
if (count($children)) {
$content .= '<ul class="chunklist chunklist_'.$name.'
chunklist_children">';
foreach(PhDHelper::getChildren($chunkid) as $childid => $junk)
{
$href = $this->chunked ? $childid .'.'. $this->ext :
"#$childid";
- $content .= sprintf('<li><a href="%s">%s</a>', $href,
PhDHelper::getDescription($childid, true));
+ $long = PhDHelper::getDescription($childid, true);
+ $short = PhDHelper::getDescription($childid, false);
+ if ($long && $short && $long != $short) {
+ $content .= sprintf('<li><a href="%s">%s</a> â %s',
$href, $short, $long);
+ } else {
+ $content .= sprintf('<li><a href="%s">%s</a>', $href,
$long ? $long : $short);
+ }
}
$content .="</ul>";
}