svn: /phd/trunk/phpdotnet/phd/Package/ Generic/XHTML.php PHP/CHM.php
| From: | Moacir de Oliveira Miranda Júnior | Date: | Sat, 05 Sep 2009 02:50:19 +0000 |
| Subject: | svn: /phd/trunk/phpdotnet/phd/Package/ Generic/XHTML.php PHP/CHM.php | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-4856@lists.php.net to get a copy of this message | ||
moacir Sat, 05 Sep 2009 02:50:19 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=288076
Log:
using the format_imagedata from the Generic XHTML
Changed paths:
U phd/trunk/phpdotnet/phd/Package/Generic/XHTML.php
U phd/trunk/phpdotnet/phd/Package/PHP/CHM.php
Modified: phd/trunk/phpdotnet/phd/Package/Generic/XHTML.php
===================================================================
--- phd/trunk/phpdotnet/phd/Package/Generic/XHTML.php 2009-09-05 02:35:46 UTC (rev 288075)
+++ phd/trunk/phpdotnet/phd/Package/Generic/XHTML.php 2009-09-05 02:50:19 UTC (rev 288076)
@@ -466,7 +466,7 @@
foreach ($this->getChildrens($id) as $child) {
$isLDesc = null;
$isSDesc = null;
- $long = $this->parse($this->getLongDescription($child, $isLDesc));
+ $long = $this->getLongDescription($child, $isLDesc);
$short = $this->getShortDescription($child, $isSDesc);
$link = $this->createLink($child);
Modified: phd/trunk/phpdotnet/phd/Package/PHP/CHM.php
===================================================================
--- phd/trunk/phpdotnet/phd/Package/PHP/CHM.php 2009-09-05 02:35:46 UTC (rev 288075)
+++ phd/trunk/phpdotnet/phd/Package/PHP/CHM.php 2009-09-05 02:50:19 UTC (rev 288076)
@@ -410,25 +410,6 @@
$link = preg_replace($search, $replacement, $link);
return $link;
}
-
- public function format_imagedata($open, $name, $attrs) {
- // The default location of images, relative to the HTML files for the CHM is not ../images,
- // but rather ../../images.
- // If this path is used within the compiled CHM file, it is outside the CHM file and
therefore
- // invalid.
- // To get images working, the location is in the root.
- // The location of the image, relative to the HHP file needs to be added to the HHP file.
- // A "feature" of the MS HTML Help Compiler is that for files added to the
project which are
- // outside of the project's directory and sub-directories, will lose the path and be
placed in
- // the root of the compiled CHM file, making the URL now correct.
- preg_match('
src="([^"]++)"', $image =
parent::format_imagedata($open, $name, $attrs), $imageMatches);
- $image = str_replace($imageMatches[1], '/' . basename($imageMatches[1]), $image);
-
- // Add the image to the hhp project file as the automatic pickup won't find it.
- fwrite($this->hhpStream, '..\\images\\' . basename($imageMatches[1]) .
"\n");
-
- return $image;
- }
}
/*