Last changes before release.

This commit is contained in:
Lars Jung 2011-11-28 00:49:22 +01:00
parent 4e4e654467
commit 3baab50953
5 changed files with 12 additions and 12 deletions

View file

@ -5,7 +5,7 @@
* options, types and localization
*/
H5AI_CONFIG = {
var H5AI_CONFIG = {
"options": {

View file

@ -29,9 +29,6 @@
<?php echo $customize->getHeader(); ?>
<?php echo $extended->toHtml(); ?>
<?php echo $customize->getFooter(); ?>
<?php echo $h5ai->getDocRoot() . "<br/>"; ?>
<?php echo $h5ai->getH5aiRoot() . "<br/>"; ?>
<?php echo $h5ai->getHrefRoot() . "<br/>"; ?>
</section>
<footer class="clearfix">
<span class="left">

View file

@ -1,21 +1,24 @@
<?php
class Customize {
private $h5ai;
private $customHeader, $customFooter;
public function __construct($h5ai) {
$this->h5ai = $h5ai;
$absPath = $h5ai->getAbsPath();
$options = $h5ai->getOptions();
$this->customHeader = $absPath . "/" . $options["customHeader"];
$this->customFooter = $absPath . "/" . $options["customFooter"];
}
public function getHeader() {
return $this->getContent($this->h5ai->getAbsPath() . "/h5ai.header.html", "header");
return $this->getContent($this->customHeader, "header");
}
public function getFooter() {
return $this->getContent($this->h5ai->getAbsPath() . "/h5ai.footer.html", "footer");
return $this->getContent($this->customFooter, "footer");
}
private function getContent($file, $tag) {

View file

@ -114,7 +114,7 @@ class TreeEntry {
$tree = new TreeEntry($this->h5ai, dirname($this->absPath), dirname($this->absHref));
$tree->loadContent();
$tree->content[ $this->absPath ] = $this;
$tree->content[$this->absPath] = $this;
return $tree->getRoot();
}