Index: include/pear-format-html.php =================================================================== RCS file: /repository/pearweb/include/pear-format-html.php,v retrieving revision 1.94 diff -u -r1.94 pear-format-html.php --- include/pear-format-html.php 26 Apr 2004 19:06:47 -0000 1.94 +++ include/pear-format-html.php 30 Apr 2004 15:10:41 -0000 @@ -24,10 +24,12 @@ require_once 'layout.php'; $encoding = "iso-8859-1"; +$extra_styles = array(); // Handling things related to the manual if (substr($_SERVER['PHP_SELF'], 0, 7) == '/manual') { require_once "pear-manual.php"; + $extra_styles[] = '/style-manual.css'; // The Japanese manual translation needs UTF-8 encoding if (preg_match("=^/manual/ja=", $_SERVER['PHP_SELF'])) { @@ -77,7 +79,7 @@ function response_header($title = 'The PHP Extension and Application Repository', $style = false) { - global $_style, $_header_done, $SIDEBAR_DATA, $encoding; + global $_style, $_header_done, $SIDEBAR_DATA, $encoding, $extra_styles; if ($_header_done) { return; } @@ -115,6 +117,11 @@
'; + echo ' | ';
echo "\n ";
if ($PREV[1]) {
- print_link($PREV[0],
- make_image('caret-l.gif', 'previous') .
- @htmlspecialchars($PREV[1], ENT_QUOTES, $CHARSET),
- false,
+ $link = @htmlspecialchars($PREV[1], ENT_QUOTES, $CHARSET);
+ if (strlen($link) > 30) {
+ $link = str_replace('::', ':: ', $link); + } + make_image('caret-l.gif', 'previous'); + print_link($PREV[0], $link, false, ($loc == 'top' ? 'accesskey="r"' : false) ); - echo ' (Previous)'; + echo ' (Previous)'; } echo "\n"; echo ' | ';
echo "\n";
- echo ' '; + echo ' | ';
echo "\n";
if ($NEXT[1]) {
- echo '(Next) ';
- print_link($NEXT[0],
- @htmlspecialchars($NEXT[1], ENT_QUOTES, $CHARSET) .
- make_image('caret-r.gif', 'next'),
- false,
+ $link = @htmlspecialchars($NEXT[1], ENT_QUOTES, $CHARSET);
+ if (strlen($link) > 30) {
+ $link = str_replace('::', ':: ', $link); + } + echo '(Next) '; + print_link($NEXT[0], $link, false, ($loc == 'top' ? 'accesskey="x"' : false) ); + make_image('caret-r.gif', 'next'); } echo "\n"; echo ' | ';
@@ -148,9 +152,9 @@
echo ' ||||||||||||
'; + echo ' | '; echo "\n"; spacer(1,1); echo "\n"; @@ -159,13 +163,13 @@ echo ' | ||||||||||||||
'; + echo ' | ';
echo "\n";
- echo '
|