instellingenLaden(); $beheer = false; $url = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; if (stristr($url,'/beheer/')) { $beheer = true; } include ("../functies/sessie.php"); if (INS_SESSIE_BEVEILIGEN) { sessieHerstellen(); } include ("../class/pagina.php"); include ("../class/nieuws.php"); include ("../class/mededeling.php"); include("../class/menu.php"); include("../class/melding.php"); include("../class/form.php"); include("../class/email.php"); include ("../class/cookie.php"); include ("../class/wachtwoord.php"); //beheer klassen include("../class/beheerder.php"); include("../class/beheergroep.php"); include("../class/beheermodule.php"); include("../class/beheerrechten.php"); class Layout { // variabelen aanmaken var $HoofdContent = ""; var $ContentLinks = ""; var $ContentRechts = ""; var $Content = INS_META_CONTENT; var $Keywords = INS_META_KEYWORDS; var $Titel = INS_WEBSITE_TITEL; var $tweeKolommen = false; var $Menu = ""; var $Styles = array(); var $Scripts = array(); var $Css = ""; var $loadEvent = ""; var $IEHack = true; function __construct() { $this->SetScript('../javascript/jquery.js'); $this->SetScript('../javascript/jquery-ui.js'); } function SetHoofdContent($NieuwHoofdContent) { $this->HoofdContent=$NieuwHoofdContent; } function SetContentRechts($NieuwContentRechts) { $this->ContentRechts=$NieuwContentRechts; } function SetContentLinks($NieuwContentLinks) { $this->ContentLinks=$NieuwContentLinks; } function SetMenu($NieuwMenu) { $this -> Menu=$NieuwMenu; } function SetScript($NieuwScript) { $this -> Scripts[ ] = $NieuwScript; } function SetStyle($NieuwStyle, $media="screen") { $this -> Styles[$NieuwStyle] = $media; } function SetLoadEvent($NieuwEvent) { $this->loadEvent=$NieuwEvent; } function Tonen() { //hele pagina ophalen en weergen $this->SetStyle('../styles/default.css'); if (!empty($this -> Css)) { $this->SetStyle('../styles/' . $this -> Css); } if ($this -> tweeKolommen) { $this->SetStyle('../styles/tweekolommen.css'); } $this->SetStyle('../styles/menu.css'); $this->SetStyle('../styles/webshop/webshop.css'); //$this->SetScript('../javascript/jq_laatste.js'); $this->SetScript('../javascript/menu.js'); $this->SetScript('../javascript/javascripts.js'); $this->SetScript('../javascript/popup.js'); $this->ToonBeginHTML(); $this->ToonHead(); $this->ToonBody(); $this->ToonEndHTML(); if (INS_SESSIE_BEVEILIGEN) { sessieVersleutelen(); } } function ToonBeginHTML() { ?> <? echo $this->Titel; ?> Styles as $style=>$media) { ?> Scripts as $script) { ?> IEHack) { ?> loadEvent)) { echo "loadEvent ."mladdevents();\">\n"; } else { echo "\n"; } ?>
"; } ?>
Menu == "") { echo "
\n"; $c_menu = new Menu(); $padding = 512 - (count($c_menu->menuArray) * 50); $c_menu->Style="padding-left: ".$padding."px;"; $c_menu -> Menu = $c_menu->printMenu($c_menu-> menuArray); echo $c_menu -> Menu; echo "
\n"; } ?>
tweeKolommen) { ?>
HoofdContent; ?>
HoofdContent; ?>
ContentRechts)) { echo $this -> ContentRechts; } else { $c_nieuws = new Nieuws(); $c_nieuws->ophalenHeadlines(); echo $c_nieuws->Headlines; } ?>