$tpl['title'] = "de Plantenshop: fotogalerij"; $tpl['body_id'] = "galerij"; //content $tpl['rechts'] = getGalerij(); break; case "registreer": /*** Registreer formulier pagina ***/ $tpl['title'] = "de Plantenshop: registreer u als klant"; $tpl['body_id'] = "registreer"; //content $tpl['rechts'] = getRegistreer(); $tpl['paginaScripts'] = getScriptElements(array("js/vendor/jquery/jquery-validation-1.14.0/dist/jquery.validate.min.js", "js/registreer.js")); break; default: //foutieve pagina gaat nr home? $tpl['title'] = "de Plantenshop: fout"; $tpl['body_id'] = "fout"; $tpl['rechts'] = getFoutePagina(); } //einde switch } else { /*** homepagina ***/ $tpl['body_id'] = "home"; //content $tpl['rechts'] = getHome(); $tpl['paginaScripts'] = getScriptElements("js/accordion_home.js"); } //***** uitvoering ******************* $tm = new TemplateManager(); $html = $tm->template($tpl); echo $html;
//content $tpl['rechts'] = getGalerij(); $tpl['paginaScripts'] = getScriptElements(array("js/vendor/jquery/lightbox/js/lightbox.js", "js/vendor/jquery/js/jquery.ui.knipoog.js", "js/galerij.js")); $tpl['paginaStylesheets'] = getLinkElements("js/vendor/jquery/lightbox/css/lightbox.css"); break; case "registreer": /* * * Registreer formulier pagina ** */ $tpl['title'] = "de Plantenshop: registreer u als klant"; $tpl['body_id'] = "registreer"; //content $tpl['rechts'] = getRegistreer(); $tpl['paginaScripts'] = getScriptElements(array("js/vendor/jquery/jquery-validation-1.14.0/dist/jquery.validate.min.js", "js/registreer.js")); break; default: //foutieve pagina gaat nr home? $tpl['title'] = "de Plantenshop: fout"; $tpl['body_id'] = "fout"; $tpl['rechts'] = getFoutePagina(); } //einde switch } else { /* * * homepagina ** */ $tpl['body_id'] = "home"; //content $tpl['rechts'] = getHome(); $tpl['paginaScripts'] = getScriptElements("js/home.js"); } //***** uitvoering ******************* $tm = new TemplateManager(); $html = $tm->template($tpl); echo $html;