//content $tpl['rechts'] = getAbout(); $tpl['paginaScripts'] = getScriptElements("js/about.js"); break; case "shop": /*** Planten pagina, PHP, non-ajax ***/ //init zoekvariabelen $soort_id = isset($_GET['soort_id']) ? $_GET['soort_id'] : '%'; $kleur = isset($_GET['kleur']) ? $_GET['kleur'] : '%'; $hoogte_min = isset($_GET['hoogte_min']) ? intval($_GET['hoogte_min']) : 0; $hoogte_max = isset($_GET['hoogte_max']) ? intval($_GET['hoogte_max']) : 5000; $tpl['title'] = "de Plantenshop: ons aanbod"; $tpl['body_id'] = "shop"; //content $tpl['rechts'] = getPlanten($soort_id, $kleur, $hoogte_min, $hoogte_max); $tpl['paginaStylesheets'] = getLinkElements("https://cdn.datatables.net/r/ju-1.11.4/dt-1.10.9,cr-1.2.0/datatables.min.css"); $tpl['paginaScripts'] = getScriptElements(array("js/slider_shop.js", "https://cdn.datatables.net/r/ju-1.11.4/dt-1.10.9,cr-1.2.0/datatables.min.js", "js/ajaxshop.js")); break; /* case "ajaxshop": $soort_id = (isset($_GET['soort_id'])) ?$_GET['soort_id'] :'%'; $kleur = (isset($_GET['kleur'])) ?$_GET['kleur'] :'%'; $hoogte_min = (isset($_GET['hoogte_min'])) ?intval($_GET['hoogte_min']):0; $hoogte_max = (isset($_GET['hoogte_max'])) ?intval($_GET['hoogte_max']):5000; $tpl['title'] = "de Plantenshop: ons aanbod"; $tpl['body_id'] = "shop"; //content $tpl['rechts'] = getAjaxPlanten(); $tpl['paginaStylesheets'] = getLinkElements("https://cdn.datatables.net/r/ju-1.11.4/dt-1.10.9,cr-1.2.0/datatables.min.css"); $tpl['paginaScripts'] = getScriptElements(array("js/slider_shop.js", "https://cdn.datatables.net/r/ju-1.11.4/dt-1.10.9,cr-1.2.0/datatables.min.js", "js/dataTables.fnReloadAjax.js", "js/ajaxshop.js"));
case "zorg": /* * * Verzorging pagina ** */ $tpl['title'] = "de Plantenshop: welke zorg moet je je planten geven?"; $tpl['body_id'] = "zorg"; //content $tpl['rechts'] = getVerzorging(); $tpl['paginaScripts'] = getScriptElements("js/zorg.js"); break; case "galerij": /* * * Fotogalerij ** */ $tpl['title'] = "de Plantenshop: fotogalerij"; $tpl['body_id'] = "galerij"; //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(); }