</title> <meta name="description" content="<?php echo $description; ?> "> <meta name="robots" content="<?php echo $robots; ?> "> <meta name="keywords" content="<?php echo $xkeys; ?> "> <link rel="canonical" href="<?php echo X4Route_core::get_uri(); ?> "> <link rel="sitemap" type="application/xml" title="Sitemap" href="/sitemap.xml"> <link rel="shortcut icon" href="<?php echo THEME_URL; ?> favicon.ico" type="images/x-icon"> <link rel="stylesheet" href="<?php echo THEME_URL; ?> css/bootstrap.min.css"> <?php echo !DEVEL && file_exists(PATH . 'themes/' . $this->site->area->theme . '/css/' . $css . '.min.css') ? '<link rel="stylesheet" href="' . THEME_URL . 'css/' . $css . '.min.css">' : '<link rel="stylesheet" href="' . THEME_URL . 'css/' . $css . '.css">'; // if you have to display right-to-left languages
/** * Generic page override __call * * @param string url/controller name * @param array array of arguments * @return void */ public function __call($url, $args) { // dict $this->dict->get_words(); // get page data $page = $this->site->get_page($url); if ($page) { // check login if area is private if ($this->site->area->private && !in_array($url, $this->admitted)) { if (file_exists(APATH . 'controllers/' . X4Route_core::$area . '/login.php')) { X4Utils_helper::logged($page->id_area, X4Route_core::$area . '/login'); } else { X4Utils_helper::logged($page->id_area, 'public/home'); } } // set view $view = new X4View_core(X4Utils_helper::set_tpl($page->tpl)); $view->page = $page; $view->args = $args; // get menus $view->menus = $this->site->get_menus($page->id_area); $view->navbar = array($this->site->get_bredcrumb($page)); // get sections $view->sections = $this->site->get_sections($page->id); $view->render(true); } else { // check for redirects $url = X4Route_core::get_uri(); $mod = new X4Plugin_model(); $redirect = $mod->check_redirect(array('Page_model'), $url); if (!$redirect) { header('HTTP/1.0 404 Not Found'); header('Location: ' . BASE_URL . 'msg/message/_page_not_found'); } else { // redirect to header('Location: ' . $this->site->site->domain . '/' . $redirect->url, true, $redirect->redirect_code); } } }