Beispiel #1
0
            $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;