/** * * @param string $globalstart * @param string $globalend * @param string $elementstart * @param string $elementend * @param string $class * @param string $index * @return string */ public function getCode($globalstart, $globalend, $elementstart, $elementend, $class, $index) { if ($this->type == 0) { $id = DataBase::Current()->EscapeString($this->href); $link = DataBase::Current()->ReadField("SELECT alias FROM {'dbprefix'}pages WHERE id = '" . $id . "'"); if (Page::Current()->alias == $link) { $class .= " current"; } if ($link == "home") { $res = $elementstart . "<a href=\"" . Settings::getInstance()->get("host") . "\" title=\"" . htmlentities($this->title) . "\" \n\t\t\t\tclass=\"" . $class . " menue-" . $id . "-" . $index . "\">" . htmlentities($this->title) . "</a>" . $elementend; } else { $link = UrlRewriting::GetUrlByAlias($link); if ($link != "") { $res = $elementstart . "<a href=\"" . $link . "\" title=\"" . htmlentities($this->title) . "\" \n class=\"" . $class . " menue-" . $id . "-" . $index . "\">" . htmlentities($this->title) . "</a>" . $elementend; } else { //Page doesn't exist $res = ""; } } } else { if ($this->type == 1) { $href = str_replace("{VAR:HOST}", Settings::getInstance()->get("host"), $this->href); $res = $elementstart . "<a href=\"" . $href . "\" title=\"" . htmlentities($this->title) . "\" \n class=\"" . $class . " menue-" . $this->id . "-" . $index . "\">" . htmlentities($this->title) . "</a>" . $elementend; } else { if ($this->type == 2) { $res .= Menu::getCode($this->href, $globalstart, $globalend, $elementstart, $elementend, $class); } else { $res = "<li>" . htmlentities($this->title) . " <div>></div>"; $inside = Menu::getCode($this->href, $globalstart, $globalend, $elementstart, $elementend, $class); if ($inside != "<ul></ul>") { $res .= $inside; } $res .= "</li>"; } } } return $res; }
?> </div> <!-- /title --> <!-- Breadcrumbs --> <p id="breadcrumbs"><strong>Du bist hier:</strong> <?php sys::displayBreadcrumb(" / ", "breadcrumb", "bc"); ?> </p> <!-- Columns --> <div class="cols-top"></div> <div class="cols box"> <!-- Content --> <div class="content"> <!-- Perex --> <div class="perex"> <p><?php echo htmlentities(Page::Current()->title); ?> </p> </div> <!-- /perex --> <?php if (isset($_POST['content']) && $_POST['content']) { echo $_POST['content']; } else { sys::includeContent(); } ?> </div> <!-- /content --> <!-- Sidebar --> <div class="aside"> <h2>Neuigkeiten</h2> <ul class="ul-news">
<?php echo htmlentities(sys::getCurrentUserName()); ?> | <a href="<?php echo UrlRewriting::getUrlByAlias("admin/logout"); ?> ">Logout</a> </div> <div id="breadcrumb"> <?php sys::displayBreadcrumb(" -> ", "breadcrump", "bc"); ?> </div> <div id="content"> <h1><?php echo Page::Current()->title; ?> </h1> <?php sys::includeContent(); ?> </div> <div id="footer"> <div style="padding-right:5px;float:right"> <?php echo sys::getFooter(); ?> <?php if (DEVELOPMENT) { ?>
<!-- Main jumbotron for a primary marketing message or call to action --> <div class="jumbotron"> <h1>Wettbewerb?</h1> <p>Mach mit bei unserem Quiz, du kannst jede Woche tolle Preise gewinnen.</p><p>Unter den Gewinnern werden jeden Sonntag folgende Bücher ausgelost: <ul><li>Wie Reiche denken und lenken von Ueli Mäder</li> <li>1:12-Buch vom Denknetz und JUSO Schweiz</li> </ul> </p> <p><a href="./quiz.html" class="btn btn-danger btn-lg">Quiz starten »</a></p> </div> <?php } ?> <div class="page-header"> <h1><?php echo utf8_encode(htmlentities(Page::Current()->title)); ?> </h1> </div> <p> <?php if (isset($_POST["content"]) && $_POST["content"]) { echo $_POST["content"]; } else { sys::includeContent(); } ?> </p> <p> </p> <div class="row"> <div class="col-sm-4">
public function __destruct() { $alias = Page::Current()->alias; if (!Cache::Contains("language", $this->language . "/" . $alias)) { Cache::setData("language", $this->language . "/" . $alias, $this->cache); } }
<hr /> <nav> <div id="nav"> <strong>Navigation</strong> <?php sys::displayGlobalMenu("<ul>", "</ul>", "<li>", " </li>", ""); ?> </div> </nav> </div> </header> <hr /> <div id="content"> <div class="wrap clearFix"> <h2><?php echo strtoupper(Page::Current()->title); ?> </h2> <div class="clearFix"> <?php if (isset($_POST['content']) && $_POST['content']) { echo $_POST['content']; } else { sys::includeContent(); } ?> </div> <form action="./" method="post"> <fieldset> <label for="email">Für den Newsletter einschreiben</label> <input type="text" class="text" id="email">
<?php include 'const.php'; include 'autoload.php'; if (!DEVELOPMENT) { error_reporting(0); ini_set('display_errors', 0); } else { error_reporting(-1); ini_set('display_errors', 1); } session_start(); sys::parseGetParams(); //Unescape backslashes in $_POST array_walk_recursive($_POST, create_function('&$val', '$val = stripslashes($val);')); if (!isset($_GET['include'])) { $_GET['include'] = ''; } Page::Current()->ExecuteHttpHeader(); EventManager::RaiseEvent("pre_page_load", null); if (file_exists(Settings::getInstance()->get("root") . $_GET['include'] . ".htm")) { include Settings::getInstance()->get("root") . $_GET['include'] . ".htm"; } else { SkinController::displayCurrent(); } Scheduler::runTasks();
/** * * @return boolean */ static function localMenuExists() { if (Page::Current()->menu) { return true; } else { return false; } }