Example #1
0
$HTMLBar->set("BookCategoryForm", $TAG->BookCategoryForm($config["category"], 11));
$HTMLBar->set("MainMenu", $Laisiangtho->MainMenu);
$HTMLBarOutput = $HTMLBar->HTMLPage();
$HTMLSearch = new Template($config['DefaultTemplate'] . 'search.html');
$HTMLSearch->set("message", $diagnosticMessage);
$HTMLSearchOutput = $HTMLSearch->HTMLPage();
$HTMLContents = new Template($config['DefaultTemplate'] . 'content.html');
$HTMLContents->set("Contents", $page_content);
$HTMLContentsOutput = $HTMLContents->HTMLPage();
$HTMLFooter = new Template($config['DefaultTemplate'] . 'footer.html');
$HTMLFooter->set("languages", $current_sil_html);
$HTMLFooterOutput = $HTMLFooter->HTMLPage();
$HTMLLayout = new Template($config['DefaultTemplate'] . 'layout.html');
$HTMLLayout->set("title", $page_title);
$HTMLLayout->set("keywords", $page_keywords);
$HTMLLayout->set("Description", $page_description);
$HTMLLayout->set("author", $config['site_author']);
$HTMLLayout->set("template.directory", $config['www'] . $config['DefaultTemplate']);
$HTMLLayout->set("PageID", $page_id);
$HTMLLayout->set("PageClass", $page_class);
$HTMLLayout->set("CurrentSil", $current_sil);
$HTMLLayout->set("bar", $HTMLBarOutput);
$HTMLLayout->set("header", '');
$HTMLLayout->set("search", $HTMLSearchOutput);
$HTMLLayout->set("windows", '');
$HTMLLayout->set("content", $HTMLContentsOutput);
$HTMLLayout->set("footer", $HTMLFooterOutput);
$HTMLLayout->set("speechplayer", '');
$HTMLPage = new Template($HTMLLayout->HTMLPage());
$HTMLPage->set("www", $config['www']);
echo $HTMLPage->HTMLTag();
 public function BibleMainMenu_html()
 {
     $HTMLBookslist = new Template($this->config['DefaultTemplate'] . 'books-list-menu.html');
     $OldTestament = $this->config["book"]["testament"][$this->sil][1] ? $this->config["book"]["testament"][$this->sil][1] : "Old Testament";
     $NewTestament = $this->config["book"]["testament"][$this->sil][2] ? $this->config["book"]["testament"][$this->sil][2] : "New Testament";
     $HTMLBookslist->set("Old Testament", $OldTestament);
     $HTMLBookslist->set("New Testament", $NewTestament);
     foreach ($this->config["book"]["All"] as $key => $id) {
         $bookname = $this->config["book"][$this->sil][$key] ? $this->config["book"][$this->sil][$key] : $id;
         if ($this->sil == "norsk" or $this->sil == "judson") {
             $bookname_find = mb_convert_case(str_replace("'", "", $bookname), MB_CASE_LOWER, 'UTF-8');
         } else {
             $bookname_find = strtolower($bookname);
         }
         $bookurl = $this->config['abbr'][$bookname_find] ? str_replace(" ", "-", $bookname_find) : strtolower(str_replace(" ", "-", $id));
         $HTMLBookslist->set("www " . $id, $this->config['www'] . $bookurl . $this->isBibleQuery);
         $HTMLBookslist->set($id, $bookname);
     }
     return $HTMLBookslist->HTMLPage();
 }