cvs: phd(PHD_0_4) /themes/php bightml.php chmsource.php chunkedhtml.php phpfunctions.php

From: Date: Sun, 19 Oct 2008 13:48:16 +0000
Subject: cvs: phd(PHD_0_4) /themes/php bightml.php chmsource.php chunkedhtml.php phpfunctions.php
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-2255@lists.php.net to get a copy of this message
bjori Sun Oct 19 13:48:16 2008 UTC Modified files: (Branch: PHD_0_4) /phd/themes/php bightml.php chmsource.php chunkedhtml.php phpfunctions.php Log: MFH: WS and add "manualnavbar" class to the chunkedhtml navigation http://cvs.php.net/viewvc.cgi/phd/themes/php/bightml.php?r1=1.11&r2=1.11.4.1&diff_format=u Index: phd/themes/php/bightml.php diff -u phd/themes/php/bightml.php:1.11 phd/themes/php/bightml.php:1.11.4.1 --- phd/themes/php/bightml.php:1.11 Sat May 24 14:49:14 2008 +++ phd/themes/php/bightml.php Sun Oct 19 13:48:16 2008 @@ -1,5 +1,5 @@ <?php -/* $Id: bightml.php,v 1.11 2008/05/24 14:49:14 gwynne Exp $ */ +/* $Id: bightml.php,v 1.11.4.1 2008/10/19 13:48:16 bjori Exp $ */ require_once $ROOT . '/themes/php/phpdotnet.php'; class bightml extends phpdotnet { @@ -25,7 +25,8 @@ <title>PHP Manual</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> - <body>'); + <body> +'); } public function footer() { http://cvs.php.net/viewvc.cgi/phd/themes/php/chmsource.php?r1=1.4.2.5&r2=1.4.2.5.2.1&diff_format=u Index: phd/themes/php/chmsource.php diff -u phd/themes/php/chmsource.php:1.4.2.5 phd/themes/php/chmsource.php:1.4.2.5.2.1 --- phd/themes/php/chmsource.php:1.4.2.5 Tue Oct 7 08:31:10 2008 +++ phd/themes/php/chmsource.php Sun Oct 19 13:48:16 2008 @@ -1,5 +1,5 @@ <?php -/* $Id: chmsource.php,v 1.4.2.5 2008/10/07 08:31:10 kalle Exp $ */ +/* $Id: chmsource.php,v 1.4.2.5.2.1 2008/10/19 13:48:16 bjori Exp $ */ require_once $ROOT . '/themes/php/chunkedhtml.php'; class chmsource extends chunkedhtml { @@ -35,7 +35,7 @@ "langcode" => "0x406 Danish", "preferred_charset" => "Windows-1252", "mime_charset_name" => "Windows-1252", - "preferred_font" => self::DEFAULT_FONT, + "preferred_font" => self::DEFAULT_FONT, "title" => "PHP Manualen" ), "de" => array( http://cvs.php.net/viewvc.cgi/phd/themes/php/chunkedhtml.php?r1=1.11.2.1&r2=1.11.2.1.2.1&diff_format=u Index: phd/themes/php/chunkedhtml.php diff -u phd/themes/php/chunkedhtml.php:1.11.2.1 phd/themes/php/chunkedhtml.php:1.11.2.1.2.1 --- phd/themes/php/chunkedhtml.php:1.11.2.1 Thu Jul 24 10:21:06 2008 +++ phd/themes/php/chunkedhtml.php Sun Oct 19 13:48:16 2008 @@ -1,5 +1,5 @@ <?php -/* $Id: chunkedhtml.php,v 1.11.2.1 2008/07/24 10:21:06 loudi Exp $ */ +/* $Id: chunkedhtml.php,v 1.11.2.1.2.1 2008/10/19 13:48:16 bjori Exp $ */ require_once $ROOT . '/themes/php/phpweb.php'; class chunkedhtml extends phpweb { @@ -7,13 +7,13 @@ public function __construct(array $IDs, $filename, $ext = "html") { phpdotnet::__construct($IDs, $filename, $ext, true); - $this->outputdir = $GLOBALS['OPTIONS']['output_dir'] . $this->ext . DIRECTORY_SEPARATOR; + $this->outputdir = $GLOBALS['OPTIONS']['output_dir'] . $this->ext . DIRECTORY_SEPARATOR; if(!file_exists($this->outputdir) || is_file($this->outputdir)) mkdir($this->outputdir) or die("Can't create the cache directory"); elseif (file_exists($this->outputdir . 'index.html')) unlink($this->outputdir . 'index.html'); // preserve back-compat } public function header($id) { $title = PhDHelper::getDescription($id, true); - $header = <<< HEADER + $header = <<<HEADER <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> @@ -31,8 +31,8 @@ $up = array($parent.".html", PhDHelper::getDescription($parent, false)); } - $nav = <<< NAV -<div style="text-align: center;"> + $nav = <<<NAV +<div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="{$prev[0]}">{$prev[1]}</a></div> <div class="next" style="text-align: right; float: right;"><a href="{$next[0]}">{$next[1]}</a></div> <div class="up"><a href="{$up[0]}">{$up[1]}</a></div> http://cvs.php.net/viewvc.cgi/phd/themes/php/phpfunctions.php?r1=1.1.2.4&r2=1.1.2.4.2.1&diff_format=u Index: phd/themes/php/phpfunctions.php diff -u phd/themes/php/phpfunctions.php:1.1.2.4 phd/themes/php/phpfunctions.php:1.1.2.4.2.1 --- phd/themes/php/phpfunctions.php:1.1.2.4 Fri Jul 25 14:12:20 2008 +++ phd/themes/php/phpfunctions.php Sun Oct 19 13:48:16 2008 @@ -77,9 +77,11 @@ $this->cchunk["funcname"][$index], stream_get_contents($stream), 1); $gzfile = gzopen($this->outputdir . $filename, "w9"); + gzwrite($gzfile, $this->header($index)); gzwrite($gzfile, $content); gzclose($gzfile); + v("Wrote %s", $this->outputdir . $filename, VERBOSE_CHUNK_WRITING); } }

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