public function renderPage()
 {
     include_once 'elrh_page_renderer.php';
     ELRHPageRenderer::renderHTMLStart();
     ELRHPageRenderer::renderHTMLHead($this->page_data["title"]);
     ELRHPageRenderer::renderBodyStart();
     ELRHPageRenderer::renderPageHeader();
     ELRHPageRenderer::renderPageMenu($this->page_data["menu"]);
     ELRHPageRenderer::renderContentStart($this->page_data["navigation"]["top"]);
     if ($this->page_request != "error") {
         include_once getcwd() . '/web/scripts/page-content/elrh_' . $this->page_request . '_content.php';
         ELRHPageContentRenderer::renderContent($this->page_data);
     } else {
         include_once 'elrh_error_page.php';
         ELRHPageContentRenderer::renderContent($this->page_data["request"]);
     }
     ELRHPageRenderer::renderContentEnd($this->page_data["navigation"]["bottom"]);
     ELRHPageRenderer::renderPageFooter($this->page_data["version"], $this->page_data["update"]);
     ELRHPageRenderer::renderHTMLEnd();
 }
Ejemplo n.º 2
0
 public function renderPage()
 {
     include_once getcwd() . '/scripts/elrh_page_renderer.php';
     ELRHPageRenderer::renderHTMLStart();
     ELRHPageRenderer::renderHTMLHead($this->page_data["title"], $this->page_data["texts"]["global_meta_dscr"], $this->page_data["settings"]["fb_image"]);
     ELRHPageRenderer::renderBodyStart($this->page_data["settings"]["ga_id"]);
     // menu is before header in black beat css
     ELRHPageRenderer::renderPageMenu($this->page_data["menu"]["top"]);
     ELRHPageRenderer::renderPageHeader($this->page_data["texts"]["global_site_title"], $this->page_data["texts"]["global_site_motto"]);
     // content itself
     ELRHPageRenderer::renderContentStart($this->page_data["texts"]["global_login"], $this->page_data["texts"]["global_admin"], $this->page_data["texts"]["global_logout"]);
     if ($this->page_data["mysql"] == true) {
         if ($this->page_request != "error") {
             // mysql works and page exists
             include_once getcwd() . '/pages/page-content/elrh_' . $this->page_request . '_content.php';
             ELRHPageContentRenderer::renderContent($this->page_data);
         } else {
             // mysql works but page doesnt exist
             include_once getcwd() . '/scripts/content-helpers/elrh_error_page.php';
             ELRHPageContentRenderer::renderContent($this->page_data["request"]);
         }
     } else {
         // mysql doesnt work
         include_once getcwd() . '/scripts/content-helpers/elrh_nodb_page.php';
         ELRHPageContentRenderer::renderContent();
     }
     ELRHPageRenderer::renderContentEnd($this->page_data["nav"], $this->page_data["settings"]["toplist_id"]);
     // footer
     ELRHPageRenderer::renderPageFooter($this->page_data["settings"]["global_title"], $this->page_data["menu"]["bottom"], $this->page_data["settings"]["ads_left"], $this->page_data["settings"]["ads_right"]);
     ELRHPageRenderer::renderHTMLEnd();
 }